From 3ca7f71376447b63de224125352bbfab45e48e91 Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Tue, 6 Jan 2026 23:28:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(typo):=20=E8=B0=83=E6=95=B4=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 +++++++++++++++++++++++++++++++ _conf_schema.json | 4 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdede21..16d7768 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,16 @@ retro_futurism 模板效果图 - `status`: 查看当前群的启用状态 - 例如:`/分析设置 enable` +#### 模板设置 +``` +/查看模板 +/设置模板 [模板名称或序号] +``` +- `/查看模板`: 查看所有可用模板及预览图 +- `/设置模板`: 查看当前模板和可用模板列表 +- `/设置模板 [序号]`: 切换到指定序号的模板 +- 例如:`/设置模板 1` 或 `/设置模板 scrapbook` + ## 安装要求 > [!CAUTION] @@ -275,6 +285,27 @@ retro_futurism 模板效果图 +### 开发环境设置 + +为了保持代码质量,本项目使用 [pre-commit](https://pre-commit.com/) 钩子进行代码规范检查和自动修复。所有的贡献代码都必须通过 pre-commit 检查。 + +#### 1. 安装 pre-commit +```bash +pip install pre-commit +``` + +#### 2. 安装 git hook +在项目根目录下运行,这将确保在每次提交时自动运行检查: +```bash +pre-commit install +``` + +#### 3. 手动运行检查 +如果需要手动触发所有文件的检查(推荐在提交前运行一次): +```bash +pre-commit run --all-files +``` + ### 模板贡献指南
diff --git a/_conf_schema.json b/_conf_schema.json index f5ecb9c..39b43fe 100644 --- a/_conf_schema.json +++ b/_conf_schema.json @@ -70,7 +70,7 @@ "type": "string", "description": "报告模板", "default": "scrapbook", - "hint": "分析报告使用的HTML模板名称,使用 `/设置模板` 查看使用指南,效果见 README(文档)" + "hint": "分析报告使用的HTML模板名称,使用 `/设置模板` 查看使用指南,使用`/查看模板` 命令查看模板样式效果" }, "min_messages_threshold": { @@ -182,7 +182,7 @@ "pdf_output_dir": { "type": "string", "description": "PDF输出目录", - "default": "data/plugins/astrbot-qq-group-daily-analysis/reports", + "default": "data/plugins/astrbot_qq_group_daily_analysis/reports", "hint": "PDF报告文件的保存目录" }, "pdf_filename_format": {