mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-03 17:54:14 +02:00
Document how to build the search index locally
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
parent
e9a29f27dc
commit
de25ba5265
12
README.md
12
README.md
|
|
@ -79,6 +79,18 @@ We use a highly customized [Docsy](https://www.docsy.dev/) theme for our generat
|
||||||
Awesome. If you're looking at making design-related changes to the spec site, please coordinate with us in
|
Awesome. If you're looking at making design-related changes to the spec site, please coordinate with us in
|
||||||
[#matrix-docs:matrix.org](https://matrix.to/#/#matrix-docs:matrix.org) before opening a PR.
|
[#matrix-docs:matrix.org](https://matrix.to/#/#matrix-docs:matrix.org) before opening a PR.
|
||||||
|
|
||||||
|
## Page search
|
||||||
|
|
||||||
|
The spec uses [Pagefind](https://pagefind.app/) to provide a page search widget. To test this locally, you'll need to generate the
|
||||||
|
search index _after_ building the static site.
|
||||||
|
|
||||||
|
```
|
||||||
|
hugo build && npx -y pagefind --site public && hugo serve
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that while `hugo serve` supports hot reloading, changes made to the site content won't reflect in the search index without
|
||||||
|
rebuilding it.
|
||||||
|
|
||||||
## Building the specification
|
## Building the specification
|
||||||
|
|
||||||
If for some reason you're not a CI/CD system and want to render a static version of the spec for yourself, follow the above
|
If for some reason you're not a CI/CD system and want to render a static version of the spec for yourself, follow the above
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue