Skip to content

Publish search.json for the family's search - #22

Merged
oblomov-dev merged 2 commits into
mainfrom
claude/beautiful-gauss-3dlvr3
Nov 1, 2026
Merged

oblomov-dev merged 2 commits into
mainfrom
claude/beautiful-gauss-3dlvr3

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

Part of the family-wide search on https://abap2ui5.github.io/ (abap2UI5/abap2UI5.github.io, abap2UI5/docs).

scripts/search-feed.mjs runs after astro build and writes dist/search.json from 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

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
@oblomov-dev
oblomov-dev merged commit 4879b4f into main Nov 1, 2026
2 checks passed
@oblomov-dev
oblomov-dev deleted the claude/beautiful-gauss-3dlvr3 branch November 1, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants