You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,40 @@ This should install jekyll and start a local webserver at:
16
16
17
17
Start editing markdown `.md` files. Jekyll will auto-detect changes and reload the website. Some changes require a restart (e.g. changes to `_config.yml`)
18
18
19
+
## Local development with Pagefind search
20
+
21
+
We use https://pagefind.app/ for our search field full text search.
22
+
But it is currently not automatically working when using `./run.sh` above, because it works on the
23
+
actual build-output on the `_site` folder (which contains the actual `.html` pages).
24
+
25
+
To test the search locally based on the `_site` folder content, run:
26
+
27
+
28
+
`./run-pagefind-linux.sh`
29
+
30
+
or
31
+
32
+
`run-pagefind-macos.sh`
33
+
34
+
depending on which operating system you are using.
35
+
36
+
The result should look like:
37
+
38
+
`Serving "_site" at http://localhost:1414`
39
+
40
+
41
+
The script will download and execute the pagefind executable binary after the build.
42
+
Then it will start a small server where you test the result.
43
+
Note, that this is different than the `./run.sh` and does not support real-time editing of the content.
44
+
45
+
Feel free to adjust / extend the start-scripts if you have a different architecture
46
+
or to use a different `pagefind` version.
47
+
48
+
### pagefind for production build via github actions
49
+
50
+
See the files `.github/workflows/cibuild.yml` and `.github/scripts/docs.sh` for how
51
+
building the site and executing `pagefind` is done in the final build on github.
0 commit comments