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:
+9
-9
@@ -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`)。
|
||||
|
||||
## 组件库
|
||||
|
||||
|
||||
Reference in New Issue
Block a user