refactor: simplify DocDialog and move documentation to markdown body

Simplify the `DocDialog` component by removing hardcoded property
tables and syntax blocks. Instead, rely on the raw markdown body
provided in the `DocEntry` to render documentation content. This
shifts the responsibility of formatting (syntax, props, etc.) from
the component to the individual markdown files, allowing for more
flexible and detailed documentation.
This commit is contained in:
2026-07-13 15:29:08 +08:00
parent 7cb28e631e
commit 99dd49b077
20 changed files with 362 additions and 316 deletions
+13 -26
View File
@@ -2,20 +2,12 @@
tag: journal-gm
icon: 🎭
title: 主持人指南
description: 作为 GM 创建会话、管理玩家、使用动态表单和消息类型。
syntax: '点击导航栏 📋 图标打开 Journal 面板'
props:
- name: 会话管理
type: —
desc: 创建、切换、删除会话;通过邀请链接添加玩家
- name: 消息类型
type: —
desc: 发送叙述、掷骰、表单等多种消息类型
- name: 动态表单
type: —
desc: 创建自定义表单收集玩家输入
---
作为 GM 创建会话、管理玩家、使用命令与玩家互动。
点击顶部导航栏的 📋 按钮打开 Journal 面板。
## 快速开始
1. 点击顶部导航栏的 📋 按钮打开 Journal 面板
@@ -32,25 +24,20 @@ props:
玩家通过邀请链接加入后会自动以玩家身份连接。
## 消息类型
## 消息与命令
Journal 支持多种消息类型,通过输入框上方的标签切换:
Journal 使用斜杠命令来发送不同类型的消息。在输入框中输入命令,按 Enter 发送:
- **叙述**:普通的文字描述,用于推进剧情
- **掷骰**:发送掷骰结果,可附带公式
- **表单**:创建动态表单,收集玩家选择或输入
- **聊天**:直接输入文字,按 Enter 发送普通叙述消息
- **`/roll 表达式`**:掷骰或抽取火花表。传入骰子表达式(如 `/roll 3d6`)则掷骰;传入火花表键名(如 `/roll npc`)则抽取火花表
- **`/link 路径#章节`**:发送可点击的文档链接
- **`/set $key 值`**:设置变量值,支持数值、标签映射和随机标签
## 动态表单
表单消息允许你创建交互式问卷:
- 添加文本输入、选择框、复选框等字段
- 玩家提交后,GM 可以看到汇总结果
- 适用于投票、决策、角色创建等场景
输入 `/` 后按 Tab 可打开命令补全下拉菜单。
## 撤回消息
GM 可以撤回自己发送的最新消息,点击消息旁的撤回按钮即可。
GM 可以撤回自己发送的最新消息,点击消息卡片右上角的 × 按钮即可。
## 连接状态
@@ -59,4 +46,4 @@ GM 可以撤回自己发送的最新消息,点击消息旁的撤回按钮即
- 🔴 红色:连接错误
- ⚪ 灰色:未连接
断开连接可点击标题栏的 ⏻ 按钮。
断开连接可点击标题栏的 ⏻ 按钮。