Support multisite search on pagefind #2856
XREvo
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
Hey @XREvo! Sure, this seems reasonable to add to config object I guess if you’re happy to make a PR 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
What version of
starlight
are you using?0.31.1
What is your idea?
We are looking to use Starlight in federated mode (aka with one root site on "/" and multile sub-sites on dedicated sub-paths) and we are looking for a way to merge the multiple pagefind index.
Right now, pagefind allow this with mergeIndex options : https://pagefind.app/docs/multisite/
But this option is not provided in the PagefindConfigSchema object.
Why is this feature necessary?
Adding thoses propreties to the PagefindConfigSchema object :
No need to update the Search.astro component since the config is already spread on the PagefindUI instantiation
Do you have examples of this feature in other projects?
This would be configured like that on the configuration:
Participation
Beta Was this translation helpful? Give feedback.
All reactions