feat(about): 用户选定方案 A——关于页改「白纸直编」单字段(5k T1/T2 落地)
用户在 /about-preview/ 五案中选 A。落地:
- siteAbout schema 增 `doc`(双语整页 markdown);about.yaml 现有内容已合成
doc(身份语 + 关于我 + 找到我 + 本站如何构建,双语齐备)
- AboutPage 四级回落:**doc 白纸直编 → blocks 块式 → intro → 内置默认**
(doc 非空时整页只渲染它,IdCard 仍在顶部;blocks 降为 legacy 通道)
- 后台「关于页」最顶部即「整页正文」markdown 字段(这就是方案 A 的编辑模型),
块式结构标注 legacy
- 删除两个已完成的预览路由(/about-preview/、/heatmap-preview/)与 HeatGrid
预览组件、content-lint 白名单整体移除
- docs/管理台 新增「关于页正文」一节(四级回落说明)
验证: 构建 50 页 exit 0;content-lint 51 页 0/0/0;config-check 234 字段/74 hint;
产物断言 doc 渲染(汇文+红身份语 / 找到我链接 / mono 小标题);
E2E 56/56(含书架开合翻转与 5j 数据板口径更新)
Spec: 2026-11-04_blog-5k-about-designs (T1/T2)
Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
b41b4ba8a5
commit
4153c6d33f
11 files changed
+108
-793
No files matched your search
@@ -6,12 +6,12 @@
|
||||
|
||||
## 阶段一:实现
|
||||
|
||||
- [ ] T1 预览页五案
|
||||
- [x] T1 预览页五案
|
||||
- claim: orchestrator
|
||||
- boundary: src/pages/about-preview.astro(新)、scripts/build-perf/content-lint.mjs(SKIP_ALL 加该路由)、content/site/about.yaml(若某案需要演示字段则补,双语)
|
||||
- verify: `test -f src/pages/about-preview.astro && python3 -c "import pathlib;assert '/about-preview/' in pathlib.Path('dist/index.html').read_text() or True" && E2E_BASE=http://127.0.0.1:18925 node tests/e2e.mjs 2>&1 | grep -qE "汇总: [0-9]+/[0-9]+ PASS"`
|
||||
- verify: `! test -f src/pages/about-preview.astro && grep -q "doc:" content/site/about.yaml && E2E_BASE=http://127.0.0.1:18925 node tests/e2e.mjs 2>&1 | grep -qE "汇总: [0-9]+/[0-9]+ PASS"`(终态:预览路由已删、doc 已落地)
|
||||
|
||||
- [ ] T2 选型落地(manual: 等用户在预览页点选)
|
||||
- [x] T2 选型落地(manual: 等用户在预览页点选)
|
||||
- claim: orchestrator
|
||||
- boundary: src/components/pages/AboutPage.astro、content/site/about.yaml、删除预览路由与 lint 白名单
|
||||
- verify: manual: 落地后人工核验 /about 渲染正确且预览路由 404
|
||||
|
||||
Reference in new issue
Block a user