docs(adr): cph 的 nested-manifest / batch-export 改号 0036/0037

上游 0029/0030 与本地 filelib 侧同号 ADR 相撞,cph 两份改到本地空闲号段,
代码锚点引用一并跟随。
This commit is contained in:
2026-08-06 00:51:33 +08:00
parent e878b46701
commit ecc92c9a87
27 changed files with 100 additions and 100 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
# Default export templates (ADR-0011, outline shape ADR-0029)
# Default export templates (ADR-0011, outline shape ADR-0036)
`student.typ` / `teacher.typ` are the **framework default templates**. In a real
engineering file they live at `exports/student.typ` / `exports/teacher.typ`; the
@@ -9,7 +9,7 @@ offline smoke test below.
Each template:
1. reads the injected manifest: `toml(sys.inputs.manifest)`;
2. loops `manifest.outline` (ADR-0029's depth-first rendering order — elements
2. loops `manifest.outline` (ADR-0036's depth-first rendering order — elements
interleaved with section headings at their DFS-open position). For an
`type = "element"` entry: `include`-ing each content field via a computed
**root-relative absolute** path `/<part.path>/<field>.typ`, and reading
@@ -46,7 +46,7 @@ content and hands `render-lesson` an already-assembled `outline` array;
disk. *(OPEN: the exact manifest shape for this is for the Rust/manifest
contract to pin.)*
- **Sections carry no content fields.** A `type = "section"` outline entry
(ADR-0029) has only `kind`/`title`/`depth`/`path`; the template passes it
(ADR-0036) has only `kind`/`title`/`depth`/`path`; the template passes it
through untouched — no `include`, no `element.toml` read.
## Offline smoke test