Skip to content

docs: assemble the generated API references at build time - #16

Merged
ronaldtse merged 1 commit into
mainfrom
docs/generated-api-reference
Oct 22, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
docs/generated-api-reference

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

The website half of pubid#577: the library reference pages are now
generated from the sources themselves and assembled at build time.

  • scripts/fetch-api-reference.mjs fetches each repo's generated
    reference (the gem's YARD output, pubid-ts's TypeDoc output) from
    main into the content collection — nothing generated is committed
    here, so the pages cannot drift from the code. Wired as prebuild;
    a missing source fails the build.
  • The hand-written api.md becomes the overview (parse/render/serialize
    tour + the relations doctrine) and links the two generated pages. The
    fabricated Pubid::IdentifierRegistry section is removed — no such
    API exists.

Sources: pubid#579 (YARD, drift-gated) and pubid-ts#127 (TypeDoc,
drift-gated).

pubid#577: the library reference pages are generated from the sources
(the gem's YARD output and pubid-ts's TypeDoc output) and fetched at
build time from each repo's main — nothing generated is committed
here, so the pages cannot drift from the code. The hand-written
api.md becomes the overview and links the two generated pages; the
fabricated IdentifierRegistry section is gone (no such API).

The fetch fails the build if a source disappears.
@ronaldtse
ronaldtse merged commit c05604f into main Oct 22, 2026
2 checks passed
@ronaldtse
ronaldtse deleted the docs/generated-api-reference branch October 22, 2026 07:54
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.

1 participant