Commit Graph

228 Commits

Author SHA1 Message Date
github-actions[bot]
64ec655631 chore: Auto Templates Optimization
Triggered by 35cf87547c

[skip changelog]
2025-10-08 23:09:46 +00:00
github-actions[bot]
35cf87547c chore: Auto Update Game Resources - 2025-10-08
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/18360388224

[skip changelog]
2025-10-08 23:08:38 +00:00
Lucien Shaw
e461208bf9 chore: 完善容器配置及依赖安装 (#14208)
格式化工具部分:
1. pre-commit 引入 python 的格式化工具,包括 black(代码格式化)和 isort(对“包导入顺序”的规范)
2. 允许 prettier 对文档站的 markdown 文件格式化
3. 不允许 prettier 对 markdown 文件中的代码块的代码本身进行格式化
4. 升级了 pre-commit 的各个 hook 的版本
5. 优化了 pre-commit 的日志文本显示

容器总览部分:
1. 由原来的单一轻量环境转为区分空环境、轻量环境和全量环境
2. 空环境是裸 Linux 镜像(Ubuntu),为默认环境
3. 轻量环境适合开发文档站前端
4. 全量环境适合开发 MaaCore
5. 目前,全量环境完整包含了轻量环境,轻量环境完整包含了空环境
6. 在仓库 README.md 中更新了三个环境的描述,并将链接分别设置为对应环境的创建链接
   **注意:没有修改文档站中的对应文件**
7. 在各个语言的开发指南的最后,移除了 Codespace 部分的“安装额外依赖”相关描述,且将链接设置为全量环境的创建链接
   **注意:没有添加“开发文档站”的指南和对应 codespace 的使用方式**

容器的轻量环境和全量环境共有部分:
1. 安装 black 和 isort 包
2. 调整 VS Code 设置,取消先前(对 markdown 文件单独指定 markdownlint 扩展作为格式化工具)的错误设置,现在 markdown 文件仍然使用默认的 prettier 扩展作为格式化工具
3. 引入 markdown-all-in-one 扩展作为语法提示工具
4. 将 node_modules 和 3rdparty 排除在 VS Code 的文本的搜索路径之外

容器的全量环境部分:
1. 为 tools 下的所有 python 脚本安装依赖
2. 使用 tools/maadeps-download.py 下载 maadeps,且将必要二进制文件软链接到 /usr/local/bin/
3. 使用 apt 安装 cmake 和 clangd-20,将后者通过 update-alternatives 设置为系统 clangd 的默认版本
4. 使用 cmake tools 扩展,并按照 Linux 编译方法进行配置
5. 使用 clang-format 作为 c/cpp 的格式化工具,clang-format 程序主体来自 maadeps(已经软链接到 /usr/local/bin/)
6. 使用 clangd 作为 c/cpp 的语法提示工具
7. 将 MaaDeps、install 和 build 排除在 VS Code 的文本搜索路径之外

其它手动调整:
1. 更新文档站的 package.json,指定 pnpm 包管理器的版本
2. 手动保证 markdown 文件中的列表前后有空行(注意到 MarkdownLint 官方规则不一定能精准定位所有“列表前后空行”的问题,详见:https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md032---lists-should-be-surrounded-by-blank-lines )
3. 修改了部分 markdown 文件中的 json 代码块的语法问题
   **注意:相同的问题并未全部发现,仅修改了两处**
4. 在 tools 目录中,一处 python 脚本的包名误用(本地包名和某个 pip 包重名),这里修改了相应代码
5. 在 tools 目录中,一处 python 脚本使用了弃用的包 cchardet 的问题,这里更换了推荐使用的功能相近的包并修改了相应代码

自动化脚本提交的修改:
1. 自动格式化了大量 tools 中的 python 脚本
2. 自动格式化了大量 docs 中的 markdown 文件

Commits:

* chore: pre-commit引入black和isort规范py文件

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: devcontainer添加isort扩展,排序python导入

* chore: pre-commit任务命名及更名

* style: isort fix

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: 更新pre-commit的hook版本

* fix: 模块名与第三方库重名,大忌

* chore: 容器构建时额外安装isort

* docs: md -> markdown

* chore: 容器安装python包和maadeps

* fix: 修复过时python包

* chore: 指定pnpm版本

* chore: container支持选择轻量环境

* chore: 去掉rust

* chore: add plain env

* chore: 使用clangd语言服务器

* chore: 无需单独设置markdown的格式化工具

* chore: 更新安装的clangd版本

* docs: 简易文档适配

* docs: 在仓库README中重新编排codespaces相关指引

* chore: Auto update by pre-commit hooks [skip changelog]

* style: 调整缩进

* chore: 格式化工具不用特意排除被gitignore忽略的文件

* chore: sh文件在gitattributes中单列一类

* chore: 格式化docs下的markdown文件

* chore: 暂时不修改md文件中的代码块

* style: 人为明确markdown中的部分列表相关格式

* docs: 补上部分markdown的json代码块中缺失的逗号

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: Auto update by pre-commit hooks [skip changelog]

* fix: 补上tools的服务器排序相关代码中缺失的逗号

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: 使用maadeps的clangd

* build: 更新maadeps工具链版本

* style: prettier fix

* revert: 还原maadeps版本

* revert: 取消使用maadeps的clangd依赖,改用系统apt安装

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-30 19:39:48 +08:00
github-actions[bot]
634ebb55db chore: Auto Templates Optimization
Triggered by 5ac171d40c

[skip changelog]
2025-09-26 05:58:00 +00:00
github-actions[bot]
caed828770 chore: Auto Templates Optimization
Triggered by 3f252eb12e

[skip changelog]
2025-09-25 08:50:39 +00:00
github-actions[bot]
3f252eb12e chore: Auto Update Game Resources - 2025-09-25
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/18002097304

[skip changelog]
2025-09-25 08:49:14 +00:00
github-actions[bot]
8da2271af1 chore: Auto Templates Optimization
Triggered by 7b58ddee5b

[skip changelog]
2025-09-18 07:01:41 +00:00
github-actions[bot]
01a36cf0be chore: Auto Templates Optimization
Triggered by c0da8956f8

[skip changelog]
2025-09-09 11:52:56 +00:00
github-actions[bot]
890fce3567 chore: Auto Templates Optimization
Triggered by cc0b229cdf

[skip changelog]
2025-09-07 07:22:48 +00:00
github-actions[bot]
bec3394521 chore: Auto Templates Optimization
Triggered by 9749c858f7

[skip changelog]
2025-09-04 02:34:18 +00:00
github-actions[bot]
9749c858f7 chore: Auto Update Game Resources - 2025-09-04
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/17451555281

[skip changelog]
2025-09-04 02:33:49 +00:00
github-actions[bot]
5245bd6fbc chore: Auto Templates Optimization
Triggered by bfb5deca88

[skip changelog]
2025-09-01 22:51:45 +00:00
github-actions[bot]
79e32af4eb chore: Auto Templates Optimization
Triggered by 9d8dbe80cc

[skip changelog]
2025-08-31 15:08:30 +00:00
Constrat
aca317e67e fix: update Infrast templates for EN 2025-08-30 17:03:01 +02:00
github-actions[bot]
51a073221b chore: Auto Templates Optimization
Triggered by a267cc5f66

[skip changelog]
2025-08-29 14:31:06 +00:00
Constrat
3d88182c44 fix: OfficeMini template for EN 2025-08-29 01:50:18 +02:00
github-actions[bot]
887574aa6e chore: Auto Templates Optimization
Triggered by 5676a2df3b

[skip changelog]
2025-08-28 22:55:34 +00:00
github-actions[bot]
3359fa618e chore: Auto Templates Optimization
Triggered by 1691f828ff

[skip changelog]
2025-08-28 09:33:13 +00:00
github-actions[bot]
351ce45a52 chore: Auto Update Game Resources - 2025-08-28
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/17291207437

[skip changelog]
2025-08-28 09:09:22 +00:00
github-actions[bot]
29fca06687 chore: Auto Templates Optimization
Triggered by ef1fd744d1

[skip changelog]
2025-08-19 06:46:41 +00:00
github-actions[bot]
e1ebfb255d chore: Auto Templates Optimization
Triggered by 48cb4ad49d

[skip changelog]
2025-08-08 09:54:45 +00:00
github-actions[bot]
01fd697276 chore: Auto Templates Optimization
Triggered by df880a55fa

[skip changelog]
2025-08-06 10:27:56 +00:00
Constrat
df880a55fa fix: EN Phantom IS updated Drop templates 2025-08-06 12:26:27 +02:00
github-actions[bot]
52cc4971ff chore: Auto Templates Optimization
Triggered by 35fb0e0f4e

[skip changelog]
2025-08-05 15:42:02 +00:00
github-actions[bot]
d20212dea0 chore: Auto Templates Optimization
Triggered by 788d9293a6

[skip changelog]
2025-08-04 13:13:12 +00:00
Constrat
e2a6b6644b fix: update YostarEN IS3 templates
fix #13502
2025-08-04 13:41:38 +02:00
github-actions[bot]
a1025fa2c7 chore: Auto Templates Optimization
Triggered by 40163dacf4

[skip changelog]
2025-08-04 07:11:13 +00:00
github-actions[bot]
6dba614726 chore: Auto Templates Optimization
Triggered by 3ebc095d37

[skip changelog]
2025-08-02 19:03:11 +00:00
github-actions[bot]
5ec8bbf5a0 chore: Auto Templates Optimization
Triggered by 8ffbf4e053

[skip changelog]
2025-08-02 03:01:56 +00:00
github-actions[bot]
8ffbf4e053 chore: Auto Update Game Resources - 2025-08-02
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/16689151708

[skip changelog]
2025-08-02 03:01:27 +00:00
github-actions[bot]
d2c159590d chore: Auto Templates Optimization
Triggered by c85849651f

[skip changelog]
2025-07-31 18:05:00 +00:00
github-actions[bot]
64c349b75f chore: Auto Templates Optimization
Triggered by 7e8cc2d137

[skip changelog]
2025-07-31 15:02:09 +00:00
github-actions[bot]
948ad064e3 chore: Auto Templates Optimization
Triggered by fd71f70d22

[skip changelog]
2025-07-31 11:32:58 +00:00
github-actions[bot]
5a0c35d4e7 chore: Auto Templates Optimization
Triggered by 950952e16c

[skip changelog]
2025-07-27 01:26:10 +00:00
github-actions[bot]
4e65ce5635 chore: Auto Templates Optimization
Triggered by 5586c00385

[skip changelog]
2025-07-22 18:52:44 +00:00
github-actions[bot]
e85813902d chore: Auto Update Game Resources - 2025-07-22
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/16439905362

[skip changelog]
2025-07-22 09:11:34 +00:00
github-actions[bot]
51fe97b5ac chore: Auto Templates Optimization
Triggered by 3be1dda845

[skip changelog]
2025-07-21 07:27:17 +00:00
github-actions[bot]
f2b34b29a3 chore: Auto Templates Optimization
Triggered by 29d66dc202

[skip changelog]
2025-07-17 01:58:10 +00:00
github-actions[bot]
0273f1a940 chore: Auto Templates Optimization
Triggered by c52d6d66ce

[skip changelog]
2025-07-17 00:31:48 +00:00
github-actions[bot]
6819e05642 chore: Auto Update Game Resources - 2025-07-16
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/16328097180

[skip changelog]
2025-07-16 19:07:51 +00:00
github-actions[bot]
6721a575e7 chore: Auto Templates Optimization
Triggered by 13c7d43920

[skip changelog]
2025-07-16 13:16:27 +00:00
github-actions[bot]
688d036b34 chore: Auto Templates Optimization
Triggered by aa948748e9

[skip changelog]
2025-07-16 07:31:13 +00:00
github-actions[bot]
a2de7ac376 chore: Auto Templates Optimization
Triggered by 8cff328e92

[skip changelog]
2025-07-15 09:34:47 +00:00
github-actions[bot]
8cff328e92 chore: Auto Update Game Resources - 2025-07-15
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/16289549499

[skip changelog]
2025-07-15 09:34:17 +00:00
Constrat
12b8f46bd8 fix: optimize templates run
[skip changelog]
2025-07-13 16:14:08 +02:00
Constrat
5bb12ce6e8 ci: manual optimize templates 2025-07-13 12:59:55 +02:00
github-actions[bot]
9c0c4e6da0 chore: Auto Templates Optimization
Triggered by cfc7bfd02e

[skip changelog]
2025-07-11 07:42:34 +00:00
github-actions[bot]
4850da4acb chore: Auto Templates Optimization
Triggered by ba161b98eb

[skip changelog]
2025-07-08 03:00:12 +00:00
github-actions[bot]
ba161b98eb chore: Auto Update Game Resources - 2025-07-08
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/16132825324

[skip changelog]
2025-07-08 02:59:47 +00:00
github-actions[bot]
89969d2101 chore: Auto Templates Optimization
Triggered by 73f53e1f9c

[skip changelog]
2025-07-01 15:07:20 +00:00