Skip to content

Optimize/cleanup with retidy#94

Merged
Charliechen114514 merged 2 commits into
mainfrom
optimize/cleanup_with_retidy
Jul 5, 2026
Merged

Optimize/cleanup with retidy#94
Charliechen114514 merged 2 commits into
mainfrom
optimize/cleanup_with_retidy

Conversation

@Charliechen114514

Copy link
Copy Markdown
Member

下线了一些过时的脚本,给仓库减减重量!
同时修复了 @Leon19960120 反馈的 #91

下线(零 CI/hook 依赖,coverage.py 独立保留):scripts/translate.py / fix_frontmatter.py / cppref_card_generator.py / cppref_manifest.json;.env / .env.example / .cache/translations/;pre-commit 剪 2 死钩子(check-bold-rendering 死门禁 + validate-frontmatter 试点残留)。

ch05 article 1(CN+EN)试点:5 标题改名(writing-style L123 禁'第一步/第二步')+ 4 真实实验织入(+id 整型提升 / 三种语义 copy-vs-ref / zero-overhead 汇编 diff / tuple-proto 运行)+ EN faithful 重译(旧 EN 例子 MyContainer 与 CN SensorData 分叉,整体换齐)。结构 parity 完美(10 H2 / 19 cpp / 4 text / 1 bash 中英一致),coverage Vol.2 仍 100%。

doc 清理:.claude/rules/documents-frontmatter.md 去 stale 的 documents/hooks/meta.py 引用(该文件不存在);.gitignore 删 .env 条目。
Leon19960120 在 #91 指出 Ubuntu 20.04+ 已从源里移除 gdb-arm-none-eabi 包,apt install 会报 Unable to locate package。修正:Ubuntu 安装命令换成 gdb-multiarch(多架构 GDB;注意装出的可执行名是 gdb-multiarch 不是 arm-none-eabi-gdb),并在散文里加替换说明——本教程凡是写到 arm-none-eabi-gdb 处,Ubuntu 用户在命令行换成 gdb-multiarch,Arch 用户保持原样。CN+EN 同步。Arch 路径(pacman 的 arm-none-eabi-gdb 包)不动。

顺带修正 Arch 段一处不准:原文称 Ubuntu 把 gdb 也打包进 gcc-arm-none-eabi,实际 gdb 是单独的 gdb-multiarch 包。05-debugging-guide.md 还有 2 处 arm-none-eabi-gdb 命令,已被替换说明覆盖,留作后续单独清理。
@Charliechen114514 Charliechen114514 added bug Something isn't working documentation Improvements or additions to documentation labels Jul 5, 2026
@Charliechen114514 Charliechen114514 merged commit b1e27bb into main Jul 5, 2026
4 checks passed
@Charliechen114514 Charliechen114514 deleted the optimize/cleanup_with_retidy branch July 5, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

1 participant