Skip to content

Pagefind on Github Pages? #126

Answered by bglw
ndeville asked this question in Q&A
Oct 31, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hello 👋

There are a few paths here.

The best possible path is to use the GitHub Pages via Actions workflow that is somewhat recent. This replaces the default Deploy from a branch pages setup, and instead gives you an action that can run arbitrary commands that then deploy to pages as normal.

If that isn't possible/desirable, some people will run Pagefind locally before pushing: If you check out Bryce Wray's Pagefind article, in the update section he covers a way to run Pagefind and output the index directory somewhere that the site build can then re-ingest it. This would make your local flow:

  1. Build site locally
  2. Index the built site with Pagefind
  3. Place the _pagefind bundle directory somew…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ndeville
Comment options

@bglw
Comment options

@ndeville
Comment options

Answer selected by ndeville
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants