fix: Simplify Mermaid diagram for GitHub compatibility in README.md
This commit refactors the Mermaid diagram in README.md to improve GitHub rendering compatibility. Key changes include: - Removing classDef styling definitions. - Simplifying subgraph titles and node labels. - Standardizing arrow types to solid lines. - Removing cross-cutting concerns and legend sections. These adjustments aim to ensure the diagram displays correctly across various GitHub environments.
This commit is contained in:
parent
016acbfe43
commit
6f4b7fd6d3
62
README.md
62
README.md
|
|
@ -200,22 +200,20 @@ backups/
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
graph TB
|
graph TB
|
||||||
classDef dataFlow stroke:#1565c0,stroke-width:2px;
|
%% GitHub 兼容简化版(仅使用基础语法)
|
||||||
classDef control stroke-dasharray: 3 3,stroke:#8e24aa,stroke-width:1.6px;
|
|
||||||
classDef async stroke-dasharray: 2 4,stroke:#2e7d32,stroke-width:1.6px;
|
|
||||||
|
|
||||||
subgraph ext_layer[外部系统与数据源层]
|
subgraph ext_layer[外部系统与数据源层]
|
||||||
ext_contrib[社区贡献者]
|
ext_contrib[社区贡献者]
|
||||||
ext_sheet[Google表格 / 外部表格数据]
|
ext_sheet[Google 表格 / 外部表格]
|
||||||
ext_md[外部 Markdown 提示词]
|
ext_md[外部 Markdown 提示词]
|
||||||
ext_api[未来可扩展数据源 / API]
|
ext_api[预留:其他数据源 / API]
|
||||||
ext_contrib --> ext_sheet
|
ext_contrib --> ext_sheet
|
||||||
ext_contrib --> ext_md
|
ext_contrib --> ext_md
|
||||||
ext_api -.-> ext_sheet
|
ext_api --> ext_sheet
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph ingest_layer[数据接入与采集层]
|
subgraph ingest_layer[数据接入与采集层]
|
||||||
excel_raw[prompt_excel/*.xlsx 原始表]
|
excel_raw[prompt_excel/*.xlsx]
|
||||||
md_raw[prompt_docs/外部MD输入]
|
md_raw[prompt_docs/外部MD输入]
|
||||||
excel_to_docs[prompts-library/scripts/excel_to_docs.py]
|
excel_to_docs[prompts-library/scripts/excel_to_docs.py]
|
||||||
docs_to_excel[prompts-library/scripts/docs_to_excel.py]
|
docs_to_excel[prompts-library/scripts/docs_to_excel.py]
|
||||||
|
|
@ -229,49 +227,37 @@ graph TB
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph core_layer[数据处理与智能决策层 / 核心]
|
subgraph core_layer[数据处理与智能决策层 / 核心]
|
||||||
validate[字段校验与规范化] --> transform[格式映射转换引擎]
|
ingest_bus --> validate[字段校验与规范化]
|
||||||
transform --> artifacts_md[生成 prompt_docs/规范MD]
|
validate --> transform[格式映射转换]
|
||||||
transform --> artifacts_xlsx[生成 prompt_excel/导出XLSX]
|
transform --> artifacts_md[prompt_docs/规范MD]
|
||||||
orchestrator[main.py · scripts/start_convert.py 调度] -.-> validate
|
transform --> artifacts_xlsx[prompt_excel/导出XLSX]
|
||||||
orchestrator -.-> transform
|
orchestrator[main.py · scripts/start_convert.py] --> validate
|
||||||
ingest_bus --> validate
|
orchestrator --> transform
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph consume_layer[执行与消费层]
|
subgraph consume_layer[执行与消费层]
|
||||||
artifacts_md --> catalog_coding[prompts/coding_prompts 编程链路提示词]
|
artifacts_md --> catalog_coding[prompts/coding_prompts]
|
||||||
artifacts_md --> catalog_system[prompts/system_prompts 行为约束提示词]
|
artifacts_md --> catalog_system[prompts/system_prompts]
|
||||||
artifacts_md --> catalog_assist[prompts/assistant_prompts 辅助提示词]
|
artifacts_md --> catalog_assist[prompts/assistant_prompts]
|
||||||
artifacts_md --> catalog_user[prompts/user_prompts 用户提示词]
|
artifacts_md --> catalog_user[prompts/user_prompts]
|
||||||
artifacts_md --> docs_repo[documents/* 知识库引用]
|
artifacts_md --> docs_repo[documents/*]
|
||||||
artifacts_md -.-> new_consumer[其他下游/发布渠道]
|
artifacts_md --> new_consumer[预留:其他下游渠道]
|
||||||
catalog_coding --> ai_flow[AI 结对编程流程]
|
catalog_coding --> ai_flow[AI 结对编程流程]
|
||||||
ai_flow --> deliverables[项目上下文 / 计划 / 代码产出]
|
ai_flow --> deliverables[项目上下文 / 计划 / 代码产出]
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph ux_layer[用户交互与接口层]
|
subgraph ux_layer[用户交互与接口层]
|
||||||
cli[CLI: python main.py] --> orchestrator
|
cli[CLI: python main.py] --> orchestrator
|
||||||
makefile[Makefile 任务封装] -.-> cli
|
makefile[Makefile 任务封装] --> cli
|
||||||
readme[README.md 使用指南] -.-> cli
|
readme[README.md 使用指南] --> cli
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph infra_layer[基础设施与横切能力层]
|
subgraph infra_layer[基础设施与横切能力层]
|
||||||
git[Git 版本控制] -.-> orchestrator
|
git[Git 版本控制] --> orchestrator
|
||||||
backups[backups/一键备份.sh · backups/快速备份.py] -.-> artifacts_md
|
backups[backups/一键备份.sh · backups/快速备份.py] --> artifacts_md
|
||||||
deps[requirements.txt · scripts/requirements.txt 依赖] -.-> orchestrator
|
deps[requirements.txt · scripts/requirements.txt] --> orchestrator
|
||||||
config[prompts-library/scripts/config.yaml 配置] -.-> orchestrator
|
config[prompts-library/scripts/config.yaml] --> orchestrator
|
||||||
monitor[日志/监控 (外部接入预留)] -.-> orchestrator
|
monitor[预留:日志与监控] --> orchestrator
|
||||||
end
|
|
||||||
|
|
||||||
%% 横切覆盖示意
|
|
||||||
backups -.-> catalog_coding
|
|
||||||
git -.-> validate
|
|
||||||
config -.-> validate
|
|
||||||
|
|
||||||
%% Legend
|
|
||||||
subgraph Legend[Legend]
|
|
||||||
legend_data[实线箭头:主数据流]
|
|
||||||
legend_ctrl[虚线:控制/配置/调度]
|
|
||||||
legend_async[点虚线:外部/异步接口]
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue