Appearance
Living 文档工具与站点镜像
模块登记信息
json
{
"id": "docs-site.living-docs",
"domain": "docs-site",
"name": "Living 文档工具与站点镜像",
"status": "reviewed",
"owners": [
"tools/living_docs/",
"docs/living/",
"website/scripts/living-docs-site.mjs"
],
"related": []
}职责与边界
维护 docs/living 真相源、generate/check/impact,以及镜像到 website/docs/dev/living/ 与源码预览/Markdown 增强。不改写用户图片引导生成主流程(仍属 tools/website_docs)。
功能与规则
- 人工正文与
<!-- generated -->分离;禁止手改 generated 索引。 registered/reviewed语义见 module-maintenance。- 检查覆盖:元数据、owners 路径、链接、禁止依赖、索引过期、镜像存在。
- 文档站侧栏「域目录」由
generate写出docs/living/generated/sidebar.json,buildLivingSidebar只读该文件展开模块卡。 - 镜像把构建发布模块卡中的
../../../../scripts/client_update/README.md改写为/dev/client-update。该页由 generate 从scripts/client_update/README.md复制,供上传后的静态站打开。
验证与待确认
- 已核对范围:命令入口与镜像策略(本卡与 maintenance 文档);侧栏数据由 generate 维护。
- 自动测试:
tests/test_living_docs.py。
自动索引
本页由
uv run python -m tools.living_docs generate自动生成。请勿手改;人工规则写在模块卡正文。
代码归属
tools/living_docs/docs/living/website/scripts/living-docs-site.mjs
归属文件(扫描)
- tools/living_docs/init.py
- tools/living_docs/main.py
- tools/living_docs/cards.py
- tools/living_docs/check.py
- tools/living_docs/constants.py
- tools/living_docs/generate.py
- tools/living_docs/impact.py
- tools/living_docs/imports.py
直接依赖
- packages/game_fanxiu/src/game_fanxiu/plugin_manifest.py
- tools/living_docs/cards.py
- tools/living_docs/constants.py
- tools/living_docs/generate.py
- tools/living_docs/imports.py
直接调用方
- tools/living_docs/init.py
- tools/living_docs/cards.py
- tools/living_docs/check.py
- tools/living_docs/generate.py
- tools/living_docs/impact.py
- tools/living_docs/imports.py
关联测试候选
以下按导入链与命名启发推导,可能扩大范围;需阅读测试断言确认覆盖。
已声明的关联
- 暂无额外声明;静态依赖见上方,业务关联仍需按需求核对。
被哪些模块声明关联
- 构建与发布:发布流程可含文档部署;活文档 generate 属文档站工具链