content: document composition (compose.sx) + 17 tests (502/502)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 59s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 59s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ injected adapter, not core.
|
||||
|
||||
## Status (rolling)
|
||||
|
||||
`bash lib/content/conformance.sh` → **485/485** (Phases 1–4 COMPLETE + extensions: HTML/SX escaping, Markdown render + import/export incl. tables & frontmatter (full round-trip), CRDT replication, tree-aware validation, snapshot cache, doc metadata, plain-text render, nested block trees, doc stats, table block, HTML page wrapper + SEO page)
|
||||
`bash lib/content/conformance.sh` → **502/502** (Phases 1–4 COMPLETE + extensions: HTML/SX escaping, Markdown render + import/export incl. tables & frontmatter (full round-trip), CRDT replication, tree-aware validation, snapshot cache, doc metadata, plain-text render, nested block trees, doc stats, table block, HTML page wrapper + SEO page, doc composition)
|
||||
|
||||
## Ground rules
|
||||
|
||||
@@ -91,9 +91,15 @@ lib/content/api.sx ── (content/edit) (content/render) (content/history) ─
|
||||
- [x] table block (`table.sx`: CtTable, renders html/sx/text/md, validated)
|
||||
- [x] HTML page wrapper (`page.sx`: content/page, escaped title from metadata)
|
||||
- [x] SEO page (`page-full.sx`: content/page-full, lang + meta description from excerpt)
|
||||
- [x] document composition (`compose.sx`: concat/prepend/concat-all/wrap-section)
|
||||
|
||||
## Progress log
|
||||
|
||||
- 2026-06-07 — Extension: document composition (`compose.sx`). `content/concat`
|
||||
/ `content/prepend` / `content/concat-all` combine documents (keeping the
|
||||
first's id + metadata, concatenating blocks, immutable); `content/wrap-section`
|
||||
collapses a doc's blocks into a single nested section. For assembling pages
|
||||
from header/body/footer parts and templates. 17 tests; suite 502/502.
|
||||
- 2026-06-07 — Extension: SEO-complete page (`page-full.sx`). `content/page-full`
|
||||
extends content/page with `<html lang="en">` and a `<meta name="description">`
|
||||
drawn from the document excerpt (plain text, escaped, 160 chars), composing the
|
||||
|
||||
Reference in New Issue
Block a user