docs: correct stale routing and url references

Document that the CLI mounts the content directory at the URL root and
that the app uses History API routing, not the old /content hash scheme.
Replace the removed <Article> iconPath prop with the actual upward
assets/ lookup, and fix the deck_preview preview_url example.
This commit is contained in:
2026-09-13 14:24:34 +08:00
parent e0e7250180
commit c81cf221ef
4 changed files with 33 additions and 24 deletions
+9 -9
View File
@@ -100,19 +100,19 @@
**注意:** CSS class 名称始终使用不带扩展名的图标名称(如 `icon-attack`),方便统一样式控制。
### 配置图标前缀
### 图标查找路径
可通过 `iconPath` 属性指定图标目录:
图标没有单独的配置项。`:[name]` 会从当前文档所在目录开始,逐级向上查找 `assets/` 目录,
直到内容目录根:
```markdown
<Article src="/content/page.md" iconPath="./assets/icons" />
```text
rules/combat.md 中的 :[attack]
→ rules/assets/attack.png
→ assets/attack.png
```
或使用空字符串禁用图标前缀:
```markdown
<Article src="/content/page.md" iconPath="" />
```
因此把图标放在内容目录(或其子目录)的 `assets/` 下即可。`tttk check` 会用同样的规则
校验图标是否存在(诊断 `TTTK-A001`)。
## 组件库