Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: InvolutionHell/involutionhell
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: InvolutionHell/involutionhell
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/zh-doc-titles
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 33 files changed
  • 1 contributor

Commits on Aug 2, 2026

  1. fix(docs): 修回 33 篇中文文档被机翻毁掉的 title

    这批文档的 frontmatter title 是早期机翻残留,正文是中文、标题却是
    乱码英文,最离谱的几个:
    
      213.Hiccup II                    → 213. 打家劫舍 II(打嗝…)
      Sword finger Offer II 021. …     → 剑指 Offer II 021. 删除链表的倒数第 n 个结点
      2679.In the matrix and the harmony.md → 2679. 矩阵中的和
      76Minimum cover string.md        → 76. 最小覆盖子串
    
    title 是页面 <h1> 和 <title>、sitemap.xml、站内搜索索引、以及新加的
    /llms.txt 索引的取值来源,所以这批坏标题同时在坑人和坑搜索/AI 抓取。
    还有一批标题干脆把文件名连 .md 后缀一起塞了进去。
    
    正确标题不用外部查询,仓库自己就有:
    - 30 篇的 description 已经写成 "LeetCode <编号>. <中文标题> 题解 — …"
      (lib/seo-description.ts 那轮补全的产物),直接从里面取
    - 3 篇从文件名里的中文还原
    
    description 比文件名更可信:[121] 那篇文件名写的是"最佳时期",
    description 里是官方译名"最佳时机",取了后者。
    
    只改 title,其余 frontmatter(docId / abbrlink / tags / date)一个字节没动,
    .en.md 英文版保持英文标题不动。33 篇全部通过 YAML 解析校验。
    
    注:这些文件的正文同样是机翻残留("Today's daily question is too difficult,
    So find the problem by yourself。"),且部分与 .en.md 重复;那是另一件事,
    本次不碰。
    github-actions[bot] committed Aug 2, 2026
    Configuration menu
    Copy the full SHA
    f9e2d80 View commit details
    Browse the repository at this point in the history
Loading