feat(numbering): publish canonical numbering API
Add a public numbering module and route fragmenting, validation, and scaffold preparation through the canonical numbering entry. Rewrite the repository entry docs around the fixed numbering contract, add MkDocs landing pages, and document the mirror mapping used for medicinal-chemistry comparisons. Also refresh the validation analysis reports to explain the canonical-versus-mirrored numbering relationship.
This commit is contained in:
19
docs/development/index.md
Normal file
19
docs/development/index.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# 开发者指南
|
||||
|
||||
这里给维护者看:项目结构、入口和约束。
|
||||
|
||||
## 先看什么
|
||||
|
||||
- [项目结构](project-structure.md)
|
||||
- 仓库根目录的 `AGENTS.md` 是唯一权威 agent 入口
|
||||
|
||||
## 维护原则
|
||||
|
||||
- 入口文档只保留真实存在、持续维护的页面。
|
||||
- 编号规则只使用 canonical numbering。
|
||||
- 不引入 `clockwise` / `anticlockwise` 参数。
|
||||
|
||||
## 适合继续往下看的内容
|
||||
|
||||
- 如果你在找包和脚本分别负责什么,去 [project-structure.md](project-structure.md)
|
||||
- 如果你在找 agent 约束,直接查看仓库根目录 `AGENTS.md`
|
||||
29
docs/development/project-structure.md
Normal file
29
docs/development/project-structure.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# 项目结构
|
||||
|
||||
这是当前仓库里真正承担职责的目录划分。
|
||||
|
||||
## 顶层目录
|
||||
|
||||
- `src/macro_lactone_toolkit/`: 正式 Python 包,包含分析、编号、裂解、可视化、工作流和验证模块。
|
||||
- `scripts/`: 薄封装和批处理脚本,基于正式包接口运行。
|
||||
- `tests/`: pytest 测试,覆盖入口、脚本和核心行为。
|
||||
- `docs/`: 面向使用者和维护者的入口文档。
|
||||
- `notebooks/`: 探索性或归档性的 notebook,不作为权威接口说明。
|
||||
- `validation_output/`: 生成的验证产物和报告,属于输出,不是核心源码。
|
||||
|
||||
## 关键入口
|
||||
|
||||
- `macro_lactone_toolkit.analyzer.MacroLactoneAnalyzer`
|
||||
- `macro_lactone_toolkit.fragmenter.MacrolactoneFragmenter`
|
||||
- `macro-lactone-toolkit` CLI
|
||||
|
||||
## 结构约束
|
||||
|
||||
- 代码和文档都只认 canonical numbering。
|
||||
- 16 元环镜像映射按 `p_mirror = ring_size - p + 3` 处理。
|
||||
- 不用 `clockwise` / `anticlockwise` 参数来表达编号方向。
|
||||
|
||||
## 维护提示
|
||||
|
||||
- `scripts/README.md` 解释脚本层的现状。
|
||||
- `docs/project-docs/AGENTS.md` 只是项目文档入口,不是权威 agent 入口。
|
||||
Reference in New Issue
Block a user