-
I am currently using Stork (with Pelican as SSG) but running into issues with a large index file for a 500 pages site. Pagefind looks like a potential great alternative. Before I go ahead and switch, can someone confirm if it can be deployed on Github Pages? I'm puzzled by this part:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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 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:
Ultimately, the workflow is very similar to Stork (or other frontend search libraries) in that Pagefind outputs some static files to host, so whatever your current setup is should work fine for Pagefind. The main differences are:
Hopefully that helps explain things! If need be I can look at putting an example together for the GitHub Pages via Actions workflow, as it's definitely the best experience and this question comes up enough that it would be good to have an example on hand 🙂 Let me know |
Beta Was this translation helpful? Give feedback.
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:
_pagefind
bundle directory somew…