Unify frontmatter imports as import bind:target and drop > imports.

`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-13 10:03:21 +08:00
1 parent 56b9bfa5a3
commit ecc92f473a
163 files changed
+577 -593

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
---
title: Bell state
description: H then CX; probabilities ≈ 1/2; circuit SVG.
> ext/quantum/quantum.mq.md
> lib/math.mq.md
> lib/json.mq.md
import quantum:ext/quantum/quantum.mq.md
import math:lib/math.mq.md
import json:lib/json.mq.md
---
# Bell |Φ+⟩
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: GHZ state
description: 3-qubit GHZ; |000⟩/|111⟩ ≈ 1/2; probs + H matrix heatmap.
> ext/quantum/quantum.mq.md
import quantum:ext/quantum/quantum.mq.md
---
# GHZ
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: db/index
description: 打开 sqlite、建表、幂等种子。
> ext/web/网页.mq.md
> articles.mq.md as articles
导入 网页:ext/web/网页.mq.md
import articles:articles.mq.md
---
## open
+7 -7
View File
@@ -1,13 +1,13 @@
---
title: 中文站点示例
description: Home + /about + /new(表单嵌入)+ 后台;只用 ext/web/网页.mq.md。
> ext/web/网页.mq.md
> styles/shell.mq.md
> components/nav.mq.md
> components/side.mq.md
> components/foot.mq.md
> db/articles.mq.md
> db/index.mq.md as db
导入 网页:ext/web/网页.mq.md
import shell:styles/shell.mq.md
import nav:components/nav.mq.md
import side:components/side.mq.md
import foot:components/foot.mq.md
import articles:db/articles.mq.md
import db:db/index.mq.md
---
# main
+3 -3
View File
@@ -1,9 +1,9 @@
---
title: db/index
description: Open sqlite, init articles, seed once.
> ext/web/web.mq.md
> articles.mq.md as articles
> lib/fs.mq.md
import web:ext/web/web.mq.md
import articles:articles.mq.md
import fs:lib/fs.mq.md
---
## open
+7 -7
View File
@@ -1,13 +1,13 @@
---
title: web-site
description: Home + /about + /new (form in page slot) + admin.
> ext/web/web.mq.md
> styles/shell.mq.md
> components/nav.mq.md
> components/side.mq.md
> components/foot.mq.md
> db/articles.mq.md
> db/index.mq.md as db
import web:ext/web/web.mq.md
import shell:styles/shell.mq.md
import nav:components/nav.mq.md
import side:components/side.mq.md
import foot:components/foot.mq.md
import articles:db/articles.mq.md
import db:db/index.mq.md
---
# main