postdoc pagefind


Writes the Pagefind search index without a full build, for example to inspect it or to serve it from somewhere else. The build command writes the index into the output directory, and the dev server builds its own in memory.

Options:

  • --path <outputPath> - where to write the index. Without this option, PostDoc asks for it, or, when there's no terminal to ask in, stops with an error.

Example

sh
npx postdoc pagefind --path ./search-index