Skip to content

feat(docs): Docusaurus documentation site + generated API reference + doc tests (Step 7.5) - #178

Merged
officialCodeWork merged 1 commit into
mainfrom
build/phase-7/step-7.5-documentation-site
Jun 9, 2026
Merged

feat(docs): Docusaurus documentation site + generated API reference + doc tests (Step 7.5)#178
officialCodeWork merged 1 commit into
mainfrom
build/phase-7/step-7.5-documentation-site

Conversation

@officialCodeWork

Copy link
Copy Markdown
Owner

Step 7.5 — Documentation site

A Docusaurus 3 site (website/) that serves the repo docs/ tree in place
docs/ stays the single source of truth, the site renders it (no copy step).

What's here

  • website/ — Docusaurus scaffold (config, autogenerated sidebar, theme, tsconfig). markdown.format: 'detect' so the existing hand-written .md renders as CommonMark.
  • Generated, drift-gated REST API referencescripts/gen_api_reference.py renders dist/openapi.jsondocs/reference/rest-api.md (43 paths). CI regenerates + diffs it like dist/schemas and the proto stubs, so published API docs always match the gateway.
  • Doc-honesty teststests/docs/ asserts every ragctl <cmd> and /v1/... path in a quickstart is a real CLI command / OpenAPI path. Deterministic, no services.
  • docs CI workflow — api-ref drift · doc-tests · codespell · lychee --offline link-check · npm run build.
  • task docs:api / docs:dev / docs:build, a guide, and ADR-0047.

Verification (local)

  • ruff + ruff format ✅ · tests/docs (3 tests) ✅ · generator runs (43 paths) ✅ · 208-link relative check ✅
  • The npm site build is a CI job (heavy install); config is scaffolded correct.

Housekeeping

Also records the missing PR-history rows for #175#177 in TRACKER.md.

Org-wide Actions startup failures (billing) are unrelated; verified locally.

🤖 Generated with Claude Code

… doc tests (Step 7.5)

Publish the docs as a Docusaurus 3 site that sources the repo docs/ tree in
place (single source of truth, no copy step; markdown.format 'detect' so the
hand-written .md renders as CommonMark).

- website/: Docusaurus scaffold (config, sidebars, theme, tsconfig).
- scripts/gen_api_reference.py: renders dist/openapi.json -> docs/reference/
  rest-api.md (43 paths). Drift-gated like dist/schemas + the proto stubs.
- tests/docs/: asserts every ragctl subcommand and /v1 path in a quickstart is
  real (registered CLI command / OpenAPI path). No services needed.
- .github/workflows/docs.yml: api-ref drift, doc tests, codespell, lychee
  offline link-check, npm run build.
- task docs:api / docs:dev / docs:build.

Deferred: Algolia search, versioned docs, the deploy workflow. Also records the
backlog PR-history rows for #175-#177. ADR-0047.

Verified locally: ruff, ruff format, tests/docs (3), gen_api_reference run,
208-link relative check. (npm site build is a CI step.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@officialCodeWork
officialCodeWork force-pushed the build/phase-7/step-7.5-documentation-site branch from d771f07 to 6ba32a6 Compare June 9, 2026 21:12
@officialCodeWork
officialCodeWork merged commit 184994d into main Jun 9, 2026
13 of 23 checks passed
@officialCodeWork
officialCodeWork deleted the build/phase-7/step-7.5-documentation-site branch June 9, 2026 21:13
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