Repository navigation
Publish search.json for the family's search - #22
Merged
Merged
Conversation
After astro build, scripts/search-feed.mjs writes dist/search.json from the built pages: one entry per section with an id and per FAQ question, in the shape every site of the family publishes. abap2UI5/docs fetches it into the one search index the home page and the playground read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014YZFmFLTfBmZJXKPuRQWci
The h3 of a section have no id of their own; listed as headings with the section's id they made a box that appends a heading's anchor send the reader to #id#id. Their words go into terms instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014YZFmFLTfBmZJXKPuRQWci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the family-wide search on https://abap2ui5.github.io/ (abap2UI5/abap2UI5.github.io, abap2UI5/docs).
scripts/search-feed.mjsruns afterastro buildand writesdist/search.jsonfrom the built pages: one entry per section with an id (home page and Community, the hit lands on the section) and one per FAQ question (38 entries, ~28 kB). abap2UI5/docs fetches it into the one search index the home page and the playground read. A page that yields nothing fails the build, so a markup change cannot empty the feed silently.Shape, the same on every site of the family:
{ site, url, entries: [{ title, text, headings, terms, url }] }.Test: every entry points at a page and a section id that exist; the three addressed sections are findable.
npm run check: 13 pass.Generated by Claude Code