Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ jobs:

# Compiled-output freshness gate (issue #1052). The compile above
# regenerates every generated file under docs/guide — 72 topic pages,
# README.md, and ~117 pages under reference/. Until this gate existed, CI
# README.md, and the API reference under reference/. Until this gate existed, CI
# did all of that work and then checked exactly two of those files, so a
# source edit that changed a `snippet="source:..."` region left the
# published page stale and the job stayed green. The evidence was being
Expand Down Expand Up @@ -1317,7 +1317,7 @@ jobs:
# so it fails here instead.
#
# The other class — Phase 5.7 bailing on a missing Microsoft.UI.Reactor.xml or
# reference-map.yaml and leaving ~117 reference pages unwritten — used to
# reference-map.yaml and leaving the reference pages unwritten — used to
# be checked here too, by grepping stdout for those two "not found"
# strings. That was the wrong owner and the wrong direction of failure: a
# reword in CompileCommand.cs would have made the check silently stop
Expand Down
32 changes: 14 additions & 18 deletions docs/_pipeline/ai-author-skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ The state hook (<!-- ref:UseState -->) is the building block.
The marker accepts either a short name (`<!-- ref:UseState -->`) or a
full XML-doc cref (`<!-- ref:M:Microsoft.UI.Reactor.Hooks.UseState -->`).
The compiler resolves it to a relative link into
`docs/guide/reference/<category>/<name>.md` and also feeds the reverse
"Featured in" callout that appears on the reference page. Use the marker
`docs/guide/reference/<category>/<page>.md` and also feeds the reverse
"Learn more" links that appear on the reference page. Use the marker
inline in prose — it is the only Reactor-specific syntax for cross-axis
linking; everything else is standard XML doc `<see cref="..."/>` /
`<seealso cref="..."/>` in the source.
Expand Down Expand Up @@ -894,22 +894,18 @@ unless the file basename indicates otherwise (e.g. `recipes/login.md.dt`).

### 10. API Reference (auto-generated — spec §7.1.2)

Section 10 is generated from XML doc comments in `src/Reactor*/` and
landed in Phase 1 for the Hooks category. Authors do **not** hand-write
template files for the leaves — they author `<summary>`, `<remarks>`,
`<param>`, `<returns>`, `<example>`, and `<seealso cref="..."/>` in the
canonical C# source, and the pipeline emits one MD page per public
member into `docs/guide/reference/<category>/<name>.md`. The hand-
written part is the per-category `index.md` (e.g.
`docs/guide/reference/hooks/index.md`).

Categories (driven by `docs/_pipeline/reference-map.yaml`):

- **factories** — every element factory
- **hooks** — every `Use*` hook (Phase 1 prototype: 73 pages)
- **modifiers** — every chainable modifier
- **elements** — every Element record type
- **system** — App, Window, Navigation, Context, Command primitives
Section 10 is generated from the XML doc comments and the built
`Microsoft.UI.Reactor.dll`. Authors do **not** hand-write any reference
page — they author `<summary>`, `<remarks>`, `<param>`, `<returns>`,
`<example>`, and `<seealso cref="..."/>` in the canonical C# source, and
the pipeline writes grouped pages under
`docs/guide/reference/<category>/`: one page per public type with its
members on it, one page per hook, and area pages that group related
factories and modifiers (for example `factories/buttons.md`). Each
category's `index.md` is generated too.

Categories and groups are driven by `docs/_pipeline/reference-map.yaml`
(hooks, factories, modifiers, elements, hosting, and more).

Cross-axis linking: write `<!-- ref:UseState -->` in a guide template to
link into the reference axis; write `<seealso cref="UseState"/>` in XML
Expand Down
Loading
Loading