feat(parse): use nested YAML import: maps instead of one-liner binds

Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-10-23 19:33:58 +08:00
1 parent 8bbe017a5e
commit 687c168014
364 files changed
+1870 -1004

No files matched your search

+3 -2
View File
@@ -1,8 +1,9 @@
---
title: ext/web/_capability
description: Internal — load native web plugin once. Authors must not call this; import web = capability (ADR 0007).
import plugin:lib/plugin.mq.md
import sys:lib/sys.mq.md
import:
plugin: lib/plugin.mq.md
sys: lib/sys.mq.md
---
## load
+3 -2
View File
@@ -1,8 +1,9 @@
---
title: ext/web/client
description: Browser Runtime helpers (WASM bridge). Prefer lib/browser for effect tables (ADR 0007).
import cap:ext/web/_capability.mq.md
import table:lib/table.mq.md
import:
cap: ext/web/_capability.mq.md
table: lib/table.mq.md
---
## embed
+2 -1
View File
@@ -1,7 +1,8 @@
---
title: ext/web/component
description: Reusable Document fragments as View node tables (ADR 0007).
import table:lib/table.mq.md
import:
table: lib/table.mq.md
---
## nodes
+3 -2
View File
@@ -1,8 +1,9 @@
---
title: ext/web/dom
description: DOM Artifact — Markdown/body to structure; raw HTML is escape hatch only (ADR 0007).
import cap:ext/web/_capability.mq.md
import table:lib/table.mq.md
import:
cap: ext/web/_capability.mq.md
table: lib/table.mq.md
---
## from_markdown
+3 -2
View File
@@ -1,8 +1,9 @@
---
title: ext/web/page
description: Document → View. Sole compose path is render(nodes=) with unified View schema (ADR 0007).
import cap:ext/web/_capability.mq.md
import table:lib/table.mq.md
import:
cap: ext/web/_capability.mq.md
table: lib/table.mq.md
---
# page
+3 -2
View File
@@ -1,8 +1,9 @@
---
title: ext/web/route
description: Declared Endpoint / Document route registration (ADR 0007).
import cap:ext/web/_capability.mq.md
import table:lib/table.mq.md
import:
cap: ext/web/_capability.mq.md
table: lib/table.mq.md
---
# route
+7 -6
View File
@@ -3,12 +3,13 @@ title: ext/web/web
description: >-
Web Artifact facade (ADR 0007) — page · route · serve · render · inspect · use.
Document/Endpoint first-class. No compose_* / configure / author ensure_plugin.
import cap:ext/web/_capability.mq.md
import page_mod:ext/web/page.mq.md
import route_mod:ext/web/route.mq.md
import dom_mod:ext/web/dom.mq.md
import client_mod:ext/web/client.mq.md
import table:lib/table.mq.md
import:
cap: ext/web/_capability.mq.md
page_mod: ext/web/page.mq.md
route_mod: ext/web/route.mq.md
dom_mod: ext/web/dom.mq.md
client_mod: ext/web/client.mq.md
table: lib/table.mq.md
---
Importing this module is the web **capability** (native plugin loads on first facade call).
+2 -1
View File
@@ -3,7 +3,8 @@ title: ext/web/网页
description: >-
Web Artifact 中文 facade(ADR 0007)— 页面 · 路由 · 服务 · 渲染 · 检视 · 使用。
禁止 compose_* / configure / 作者侧确保插件。
import web:ext/web/web.mq.md
import:
web: ext/web/web.mq.md
---
## 页面