feat(knowledge): 项目名改 zncm + 去除元链接噪音 + 创建人显示人名
- project_name 默认 deerflow → zncm(config.yaml + 配置默认 + 模块内字面量)
- related_links() 返回空:笔记 Related 不再注入 index/_meta/taxonomy/hub 结构链接,
只保留真实相关笔记的可点 [[标题]];无相关笔记且无来源时不再渲染 ## Related 段
- 移除随之多余的项目 hub 页脚手架(index.md/_meta/taxonomy.md 仍由 obsidian 脚手架保留,可解析)
- GET /notes/{id} 用 auth provider 把 created_by/updated_by(UUID) 解析为邮箱
(created_by_name/updated_by_name),前端 footer 显示人名、解析不到才显示短 id
- 仅对新沉淀笔记生效,现有笔记不动
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
df3fac1032
commit
e7ff07debd
11 files changed
+83
-61
No files matched your search
-15
@@ -116,21 +116,6 @@ class MarkdownVault:
|
||||
base = self.root / "projects" / slugify(project_name)
|
||||
for d in ("concepts", "references", "synthesis", "journal"):
|
||||
(base / d).mkdir(parents=True, exist_ok=True)
|
||||
# Project hub page — the structural target every note links to under
|
||||
# ``## Related`` (``[[projects/<project>/synthesis/product-knowledge-base]]``).
|
||||
# Materialize it so that wikilink is always navigable, not a dangling
|
||||
# placeholder.
|
||||
hub = base / "synthesis" / "product-knowledge-base.md"
|
||||
if not hub.exists():
|
||||
hub.write_text(
|
||||
f"---\ntitle: 产品知识库总览\ncategory: synthesis\n---\n\n"
|
||||
f"# 产品知识库总览\n\n"
|
||||
f"本页是 **{project_name}** 项目知识库的入口枢纽(hub)。每条知识都会在 `## Related` 中链接回这里。\n\n"
|
||||
"- [[index]] — 全部页面索引\n"
|
||||
"- [[_meta/taxonomy]] — 分类体系\n\n"
|
||||
"## 主题\n\n_随着知识沉淀,这里会逐步链接到各主题页面。_\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
# Base vault files.
|
||||
index = self.root / "index.md"
|
||||
if not index.exists():
|
||||
|
||||
Reference in new issue
Block a user