-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔍 Add client-side search index generation #1530
Conversation
🦋 Changeset detectedLatest commit: e97f56b The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Making a change to expose a version. |
parts: string[]; | ||
}; | ||
|
||
export function toSectionedParts(content: GenericNode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This naively sections a document upon encountering a heading. Seems to work well so far.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments! I think at least a few tests on the integration or the toText stuff would be good.
Might be a weird out-of-order bug in the async list generator. I think we might just want to avoid those, they are the worst to track down later...!
b340152
to
01e3008
Compare
Just working on improving the AST to text transform. |
790c407
to
f8260b2
Compare
This PR tackles #100 by adding support for generation of
myst.search.json
indices. These can currently be consumed by a webapp onhttps://agoose77.github.io/myst-search-experiments/?url=http://...
, which tries to usemyst.search.json
, and falls back on using the xref data.We need jupyter-book/myst-theme#467 to be merged for this to actually be deployed to static builds.
Warning
This PR should merge alongside the other search-related PRs; it is likely that changes in the frontend may warrant modifications to this PR.