Skip to content

feat: rework docs corpus generator and add related links#53

Merged
trichardswp merged 3 commits into
mainfrom
corpus-facets-and-related-links
Jun 25, 2026
Merged

feat: rework docs corpus generator and add related links#53
trichardswp merged 3 commits into
mainfrom
corpus-facets-and-related-links

Conversation

@trichardswp

Copy link
Copy Markdown
Collaborator

Summary

Reworks the documentation corpus generator and adds curated "Related"
links that surface both on the docs site and in the generated corpus.

Changes

  • Normalize corpus slugs to a consistent all-dashes scheme (still
    path-derived).
  • Reshape catalog.json: short-summary descriptions, a kind facet
    (guide / reference / endpoint), an endpoint facet carrying
    operationId, path, and method, and path-derived topics so no doc is
    left uncategorized.
  • Drop nav-shell pages (index, references, guides) and strip the
    generated <APIPage> bodies while keeping the endpoint catalog
    entries.
  • Add curated related links. Each page declares related URLs in
    frontmatter; the generator resolves internal links to doc ids and
    emits per-doc outbound edges. The docs site renders these as
    "Related" cards at the bottom of every page.
  • Emit a taxonomy block in catalog.json (distinct topics, kinds,
    and lifecycles with human labels and counts).

Notes

The catalog manifest contract changed — new kind, endpoint,
edges, and taxonomy fields, and version is bumped to 3. Corpus
consumers must update their model and pinned version to match.

Normalize corpus slugs to a consistent all-dashes scheme and reshape
the catalog: short-summary descriptions, a kind facet
(guide/reference/endpoint), an endpoint facet carrying operationId,
path, and method, and path-derived topics so no doc is left
uncategorized. Drop nav-shell pages and strip the generated APIPage
bodies while keeping the endpoint catalog entries.

Add curated related links. Each page declares related URLs in
frontmatter; the generator resolves internal links to doc ids, emits
per-doc outbound edges, and renders a Related section in the corpus.
The docs site renders the same links as Related cards at the bottom
of every page.
The generator now owns the facet vocabularies. catalog.json carries a
taxonomy of the distinct topics, kinds, and lifecycles present, each
as a value, a human label, and a document count, so consumers read it
instead of reconstructing the vocabularies and labels themselves.

Manifest contract change: bump the catalog version to 3.
@trichardswp trichardswp requested a review from lhagenWP June 25, 2026 14:41
Rename CLAUDE.md to AGENTS.md as the canonical agent-instructions file
and leave CLAUDE.md as a symlink to it.

Document that every new page under content/docs must declare a related
list of site-relative URLs. These power the Related cards on the docs
site and the per-document edges in the generated corpus, and generated
endpoint pages curate them in the openapi facets generator.
@trichardswp trichardswp merged commit 5ad6892 into main Jun 25, 2026
1 check passed
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