Skip to content

docs: rearchitect API reference into grouped multi-symbol pages#3205

Open
bartlomieju wants to merge 2 commits into
mainfrom
reference-rearchitecture
Open

docs: rearchitect API reference into grouped multi-symbol pages#3205
bartlomieju wants to merge 2 commits into
mainfrom
reference-rearchitecture

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

The API reference generated one page per symbol (~11,000 thin pages), which
hurt SEO, scattered feedback issues across stray property pages, and made
the reference hard to browse. This regroups the @deno/doc output into ~95
pages — one per Deno/Web category and per Node module — with every symbol
documented inline under a stable anchor, in the spirit of bun.com/reference.

The landing pages become dense find-in-page-friendly symbol indexes, /api/
becomes a tile hub, and the hand-written guides move to /api//about/.
Every old per-symbol URL 301s to its exact anchor via a generated redirect
map (11k entries, served by the redirects middleware), cross-symbol links
are rewritten to the new anchors, and ~330 dead links that silently shipped
before are now logged at build time. Orama search documents point at the
new anchored URLs, and all reference pages now carry titles, descriptions,
and sitemap entries. Also includes a small inert prototype
(/api/preview/node-http/, built only when its raw doc-node input exists
locally) exploring a prose-first renderer fed by raw deno doc --json output
as a possible next step.

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