Skip to content

feat(docs-site): theme reference diagrams and render @components / GUIDE prose#2260

Merged
mariechatfield merged 4 commits into
mainfrom
docs/marie/add-guide-content-review
Jun 24, 2026
Merged

feat(docs-site): theme reference diagrams and render @components / GUIDE prose#2260
mariechatfield merged 4 commits into
mainfrom
docs/marie/add-guide-content-review

Conversation

@mariechatfield

@mariechatfield mariechatfield commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Extracts the stable doc-generation engine + supporting tooling from the larger guide-content effort (docs/marie/add-guide-content) so it can be reviewed and merged independently while per-workflow content keeps being refined.

Source only — docs/reference/ is regenerated by CI's derive-commit.

Engine (feat)

Extends the typedoc-custom plugin so generated reference pages:

  • render Mermaid step-flow diagrams with the brand palette (handDrawn, base/accent theming) via @docusaurus/theme-mermaid
  • render a Sub-components table from the @components block tag
  • slot GUIDE.md prose into flow/hook pages with provenance fences

Tooling (build)

  • register @components as a TSDoc block tag and teach the tsdoc-sort-tags eslint rule to give it its own group
  • exempt **/GUIDE.md from prettier (authored prose, not generated)
  • derive-commit clears docs/reference before applying artifacts so renamed/removed pages are staged as deletions

The engine renders harmlessly empty until source files carry @components tags and GUIDE.md prose — those land in follow-up content PRs.

Verification

  • 114 typedoc-custom plugin tests pass
  • tsdoc-sort-tags rule tests pass
  • pre-commit build/lint/commitlint passed

🤖 Generated with Claude Code

mariechatfield and others added 4 commits June 24, 2026 12:28
…in reference

Extend the typedoc-custom plugin so generated reference pages:
- render Mermaid step-flow diagrams with the brand palette (handDrawn,
  base/accent theming) via @docusaurus/theme-mermaid
- render a Sub-components table from the @components block tag
- slot GUIDE.md prose into flow/hook pages with provenance fences

The @components tag is registered in typedoc.config so TypeDoc keeps the
built-in tags alongside it. Renders harmlessly empty until source files
carry @components tags and GUIDE.md prose (follow-up content PRs).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- register @components as a TSDoc block tag (tsdoc.json) and teach the
  tsdoc-sort-tags eslint rule to place it in its own group
- exempt **/GUIDE.md from prettier (authored prose, not generated)
- derive-commit clears docs/reference before applying artifacts so pages
  whose path changed are staged as deletions rather than lingering

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mariechatfield mariechatfield marked this pull request as ready for review June 24, 2026 20:46
@mariechatfield mariechatfield requested a review from a team as a code owner June 24, 2026 20:46
mariechatfield added a commit that referenced this pull request Jun 24, 2026
Prepares the skill for the doc-generation engine landing in #2260:

- @components block tag: registered TSDoc tag listing a flow's composed
  blocks/hooks as {@link} refs; renders a Sub-components table. Documented
  in SKILL.md (tag order: own group after @remarks, before @param) and in
  the flows guide as the primary user
- GUIDE.md prose slot: note in flows and hooks guides that long-form
  narrative lives in a colocated, Prettier-exempt GUIDE.md slotted into the
  generated reference page, kept distinct from concise @remarks. Flagged
  that GUIDE.md authoring conventions are still being set in follow-up
  guide-content PRs, so don't backfill prose speculatively

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mariechatfield mariechatfield added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit 2b38422 Jun 24, 2026
35 checks passed
@mariechatfield mariechatfield deleted the docs/marie/add-guide-content-review branch June 24, 2026 22:22
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