feat(markup): finish v0.3 stock migration and green gold

Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-13 23:43:44 +08:00
1 parent bfb10d172b
commit b5c07385e9
324 files changed
+4572 -4339

No files matched your search

+1 -1
View File
@@ -6,4 +6,4 @@
|------|-----|------|
| Marqdo | https://github.com | |
**`foot`**
*`foot`*
+1 -1
View File
@@ -9,4 +9,4 @@
| 写文章 | /new | |
| 后台 | /admin | |
**`nav`**
*`nav`*
+1 -1
View File
@@ -7,4 +7,4 @@
| 笔记 | / | |
| 文档 | https://github.com | |
**`side`**
*`side`*
+2 -2
View File
@@ -8,7 +8,7 @@
| title | text | false |
| body | text | true |
**`fields`**
*`fields`*
## seed
@@ -19,4 +19,4 @@
| 1 | 你好 Marqdo | 第一篇来自 GFM 表格。 |
| 2 | 代码即文档 | 页面表就是程序。 |
**`rows`**
*`rows`*
+6 -6
View File
@@ -7,13 +7,13 @@ import articles:articles.mq.md
## open
*store = > 网页.数据库 地址="sqlite:data/site-zh.db"*
*fields = > articles.schema*
**store = > 网页.数据库 地址="sqlite:data/site-zh.db"**
**fields = > articles.schema**
> `store`.初始化 名=articles 字段=`fields`
*rows = > store.查询 表="articles" 上限=1*
**rows = > store.查询 表="articles" 上限=1**
1. `rows`
**store**
*store*
2. *
*seed = > articles.seed*
**seed = > articles.seed**
> `store`.插入 表=articles 行=`seed`
**store**
*store*
+16 -16
View File
@@ -42,24 +42,24 @@ import db:db/index.mq.md
| title | max:120 | 标题太长 |
| body | max:8000 | 正文太长 |
*store = > db.open*
*page = > 网页.页面 标题="Marqdo 中文站" 引言="<h1>中文站</h1><p>表格 + 类方法。</p>"*
*page = > page.组件装配 组件=home*
*page = > page.主体装配 主体=index*
**store = > db.open**
**page = > 网页.页面 标题="Marqdo 中文站" 引言="<h1>中文站</h1><p>表格 + 类方法。</p>"**
**page = > page.组件装配 组件=home**
**page = > page.主体装配 主体=index**
*about = > 网页.页面 标题="关于" 引言="<h1>关于</h1><p>导入网页.mq.md 即用中文 API。</p>"*
*about = > about.组件装配 组件=home*
**about = > 网页.页面 标题="关于" 引言="<h1>关于</h1><p>导入网页.mq.md 即用中文 API。</p>"**
**about = > about.组件装配 组件=home**
*article_form = > 网页.表单 表="articles" 动作="插入"*
*article_form = > article_form.字段 字段=article_fields*
*article_form = > article_form.规则 规则=article_rules*
**article_form = > 网页.表单 表="articles" 动作="插入"**
**article_form = > article_form.字段 字段=article_fields**
**article_form = > article_form.规则 规则=article_rules**
*new = > 网页.页面 标题="写文章" 引言="<h1>写文章</h1><p>表单嵌在主区。</p>"*
*new = > new.组件装配 组件=home*
*new = > new.表单装配 id="article" 表单=article_form*
**new = > 网页.页面 标题="写文章" 引言="<h1>写文章</h1><p>表单嵌在主区。</p>"**
**new = > new.组件装配 组件=home**
**new = > new.表单装配 id="article" 表单=article_form**
*app = > 网页.应用 页面=page 数据库=store 后台=True 主机="127.0.0.1" 端口=18082*
*app = > app.路由 路径="/about" 页面=about*
*app = > app.路由 路径="/new" 页面=new*
*app = > app.静态 目录="public" 挂载="/static"*
**app = > 网页.应用 页面=page 数据库=store 后台=True 主机="127.0.0.1" 端口=18082**
**app = > app.路由 路径="/about" 页面=about**
**app = > app.路由 路径="/new" 页面=new**
**app = > app.静态 目录="public" 挂载="/static"**
> `app`.监听
+4 -4
View File
@@ -7,7 +7,7 @@
| background | #ffffff |
| border-bottom | 1px solid #e7e5e4 |
**`topnav`**
*`topnav`*
## side_panel
@@ -17,7 +17,7 @@
|------|-----|
| background | #f5f5f4 |
**`side_panel`**
*`side_panel`*
## card_title
@@ -28,7 +28,7 @@
| font-size | 1.15rem |
| margin | 0 0 0.35rem |
**`card_title`**
*`card_title`*
## card_body
@@ -39,4 +39,4 @@
| color | #57534e |
| margin | 0 |
**`card_body`**
*`card_body`*