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
README: document how to use the configured Pagefind version locally
This can be potentially crucial when trying to debug failures of CI
builds that are caused by diverging Pagefind versions.
Signed-off-by: Johannes Schindelin <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,12 @@ $ HUGO_UGLYURLS=false hugo
93
93
$ npx -y pagefind --site public --serve
94
94
```
95
95
96
+
If you want to make sure that the same Pagefind version is used as when the site is deployed, use this command:
97
+
98
+
```console
99
+
$ npx -y pagefind@$(sed -n 's/^ *pagefind_version: //p'<./hugo.yml) --site public
100
+
```
101
+
96
102
Note that running Pagefind will make the process about 7 times slower, and the site will not be re-rendered and live-reloaded in the browser when you change files in `content/` (unlike with `hugo serve -w`).
0 commit comments