Skip to content

docs(metadata): doc-type authoring guide + objectstack-ui skill (ADR-0046)#1807

Merged
xuyushun441-sys merged 2 commits into
mainfrom
docs/adr-0046-doc-guide-and-skill
Jun 13, 2026
Merged

docs(metadata): doc-type authoring guide + objectstack-ui skill (ADR-0046)#1807
xuyushun441-sys merged 2 commits into
mainfrom
docs/adr-0046-doc-guide-and-skill

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

What

ADR-0046 (package docs as metadata) landed framework-side — DocSchema, CLI collection/lint, kernel registration — and a showcase example shipped in #1793. But the developer docs site and the AI skills never mentioned the doc metadata type. This closes that documentation gap.

Changes

  • New content/docs/guides/metadata/doc.mdx — authoring guide mirroring the other metadata-type guides: flat src/docs/*.md, namespace-prefixed naming, the platform-level /docs/<name> routing model, cross-references, Markdown support (anchors / highlight / GitHub alerts) and the MDX/image build bans.
  • Listed doc in the metadata index table + sidebar meta.json.
  • objectstack-ui skill — new "Docs — Package Documentation" section so AI agents author src/docs/*.md correctly (flat dir, namespace prefix, CommonMark+GFM, link-don't-embed for dynamic content), plus description/tags coverage.

Routing model documented (matches ADR-0046)

The viewer is platform-level: one global /docs/<name> route, single-coordinate URL (no package/app prefix). App-level entry is opt-in — a url nav item linking into that global URL. Per-app/per-package doc URLs are explicitly not the model (one doc → many URLs would break cross-references). A platform docs portal is a later additive concern.

Scope

Docs + skill only — no package code. The frontend /docs/<name> route + DocView + nav entry in objectui remain the P2 follow-up (objectui does not yet consume doc metadata).

Changeset

Non-user-facing (docs/skill) — skip-changeset.

🤖 Generated with Claude Code

…age (ADR-0046)

Package docs (ADR-0046) shipped framework-side (collection + render) and a
showcase example (#1793), but the developer docs site and AI skills never
mentioned the `doc` metadata type. Close that gap:

- New guide content/docs/guides/metadata/doc.mdx — flat src/docs/*.md
  authoring, namespace-prefixed naming, the platform-level /docs/<name>
  routing model (no per-app/per-package URL nesting), cross-references,
  and the MDX/image build bans.
- List `doc` in the metadata index table + sidebar (meta.json).
- objectstack-ui skill: new "Docs — Package Documentation" section so AI
  agents author src/docs/*.md correctly (flat dir, prefix, CommonMark+GFM,
  link-don't-embed for dynamic content), plus description/tags coverage.

Docs/skill only — no package code. Frontend /docs route + nav entry remain
the objectui P2 follow-up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 13, 2026 3:21am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation size/m labels Jun 13, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@xuyushun441-sys
xuyushun441-sys merged commit c865eaf into main Jun 13, 2026
12 checks passed
@xuyushun441-sys
xuyushun441-sys deleted the docs/adr-0046-doc-guide-and-skill branch June 13, 2026 03:21
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 size/m tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants