docs(declare): document the YAML declare format

Update the journal-set doc entry, the CLI diagnostic table, and the
authoring skill, along with the in-app empty-state hint and the var
message comment.
This commit is contained in:
hyper
2026-09-12 22:51:12 +08:00
parent 0ac9a833e4
commit 0b029b325e
5 changed files with 59 additions and 41 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ content/adventures/hollow-mill/adventure.md
| `TTTK-D002` | error | 属性块畸形(例如未加引号的值中含空格) |
| `TTTK-R001` | error | 未知的代码块 `role=`(块内容会被静默丢弃) |
| `TTTK-R002` | warning | `role=spark-table` 首列表头不是骰点公式 |
| `TTTK-R003` | error | `role=declare` 解析失败(缺少 `key`/`expr` 等) |
| `TTTK-R004` | warning | `role=declare` 中 `key`/`expr` 为空的行被跳过 |
| `TTTK-R003` | error | `role=declare` 解析失败(YAML 非法或结构不符) |
| `TTTK-R004` | warning | `role=declare` 块没有声明任何变量或标签修饰符 |
| `TTTK-R005` | error | `role=tag` 的 YAML 无法解析 |
| `TTTK-R006` | error | `role=tag` 缺少 `tag:` 或元素未知 |
| `TTTK-C001` | error | 内容引用无法解析(文件不存在,或内联 id 未定义) |