Skip to content

docs: group CLI and API reference feature docs under schema-support/#3652

Open
Mpdreamz wants to merge 2 commits into
mainfrom
feature/document-api-docset
Open

docs: group CLI and API reference feature docs under schema-support/#3652
Mpdreamz wants to merge 2 commits into
mainfrom
feature/document-api-docset

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

Why

The feature documentation for the two schema-driven reference generators (CLI schema and API Explorer) was scattered across unrelated locations (docs/cli/, docs/configure/content-set/), the shared "generate + extend with markdown" model was never explained in one place, and the gap between the two — the API Explorer only supports page-level intro/outro markdown while the CLI reference supports fine-grained per-command/flag/argument overrides — was completely undocumented.

What

Moves the feature how-to pages into a new docs/schema-support/ section and adds an overview page that covers both generators side by side.

The overview compares the two on source format, config key, generated output, markdown-extension granularity, file discovery mechanism, and validation behaviour, then states the current gap plainly: API Explorer markdown is page-level only — you cannot override an individual operation, tag, schema, or parameter description today.

The moved API Explorer page gains a "What you can extend (and what you can't)" section, a naming and validation subsection (slug derivation rule, reserved types/tags segments, operation-moniker collision detection, one-spec-per-product constraint), and the gap statement with a forward reference to the CLI supplemental mechanism.

The moved CLI supplemental page gains accuracy fixes verified against the implementation: the root index.md match pattern (not only ns-root.md), the cmd-index exception for a command literally named index, a note that non-ns-/cmd- files are silently ignored, and a deeper three-level flat-prefix example.

Redirects are added for all three moved pages. The generated CLI reference section (docs/cli/, folder: cli) and its existing ~40 redirects are untouched.

Move cli-reference-how-to.md and cli-supplemental-docs.md out of docs/cli/
and api-explorer.md out of docs/configure/content-set/ into a new
docs/schema-support/ folder covering both schema-driven reference generators.

New structure:
  docs/schema-support/index.md               overview + comparison + gap statement
  docs/schema-support/cli-schema/index.md    CLI schema setup and docset.yml config
  docs/schema-support/cli-schema/supplemental.md  naming, validation, overrides
  docs/schema-support/api-explorer/index.md  API Explorer config, intro/outro, extensions

- Overview page contrasts fine-grained CLI extension (per-command/flag/argument
  overrides, convention-based discovery, schema validation) with page-level API
  extension (intro/outro pages only, one spec per product, slug/collision validation)
  and documents the current gap: no per-operation/tag/schema overrides in API Explorer.
- api-explorer/index.md gains a "What you can extend (and what you can't)" section,
  naming/validation subsection (slug rules, reserved types/tags segments,
  operation-moniker collisions, one-spec-per-product rule stated plainly).
- cli-schema/supplemental.md gains: root index.md pattern, cmd-index exception,
  note on ignored non-ns-/cmd- files, deeper flat-nesting example.
- docs/_docset.yml: rewire toc entries; add schema-support folder block.
- docs/_redirects.yml: add three redirects for moved pages.
- Fix relative links in moved files; update inbound links in navigation.md,
  content-set/index.md, CONTRIBUTING.md, and AGENTS.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Mpdreamz Mpdreamz requested review from a team as code owners July 14, 2026 16:50
@Mpdreamz Mpdreamz added the documentation Improvements or additions to documentation label Jul 14, 2026
@Mpdreamz Mpdreamz requested a review from reakaleek July 14, 2026 16:50
Add the three new schema-support pages to the links section and the three
new redirects to the redirects section of the links.json snapshot test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant