Skip to content

fix: dark-mode Ch01 SVG logos, broken contributors image, and Ch05/config fixes - #121

Merged
taoky merged 5 commits into
ustclug:masterfrom
Minsecrus:fix/site-issues-and-dark-mode-logos
Nov 26, 2026
Merged

taoky merged 5 commits into
ustclug:masterfrom
Minsecrus:fix/site-issues-and-dark-mode-logos

Conversation

@Minsecrus

@Minsecrus Minsecrus commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

本次 PR 修复了几处页面渲染、裂图与配置冗余问题(已按主题拆分为 4 个独立 commit):

改动说明

  1. Ch01 透明底 Logo 深色模式适配(矢量 SVG)

    • 原 Ch01 中 Debian、Ubuntu、Red Hat、Fedora、CentOS、Arch Linux、Manjaro、Windows Server、Android TV、Xubuntu 共 10 张透明底 PNG 在深色模式(slate)下文字与暗色背景融合、辨识度较差。
    • 全部替换为未改动品牌色值的原版矢量 SVG(仅调整尺寸 / 补齐 viewBox),删除旧 PNG:
      • Ubuntu、Red Hat、Fedora、CentOS、Arch Linux、Manjaro、Xubuntu 7 组采用官方原版浅/深双色 SVG,通过 Material 原生 #only-light / #only-dark 自动切换。
      • Debian、Windows Server、Android TV 3 组采用原版 SVG,并在深色模式下通过 .logo-light-bg 浅色圆角底板保证可读性(浅色模式样式不变)。
  2. 修复 /credits/ 贡献者头像墙裂图

    • 原 cf.ustclug.org 反代已因 TLS 握手失败不可用,导致线上 /credits/#contributors 裂图;更新为 contrib.rocks 官方地址(https://contrib.rocks/image?repo=ustclug/Linux101-docs)。
  3. Ch05 脚注顺序、Mermaid 语法规范与废弃旧图清理

    • 调整 docs/Ch05/index.md 文末 [^2] / [^3] 定义顺序,修复正文上标显示为 1 → 3 → 2 的编号错位。
    • 将 #fhs Mermaid 图中的裸根节点 / 改为 slash["/"],提升在 GitHub 网页及第三方 Markdown 预览器中的兼容性。
    • 删除 PR Ch05: fix filesystem structure figure to mermaid.js drawing for dark … #75 切换为 Mermaid 后遗留的未引用旧图 docs/Ch05/assets/unix_filesystem.png。
  4. 杂项清理

    • 移除 mkdocs.yml 中重复声明的 - pymdownx.superfences。
    • 移除 README.md 中重复的 ## Star History 标题。

本地验证

  • mkdocs build / mkdocs serve 构建通过,无新增报错。
  • 在浏览器中逐一验证了 /Ch01/ 10 组 Logo 在浅色/深色模式下的切换、圆角底板与对比度、/credits/ 贡献者头像墙,以及 /Ch05/#fhs 的 Mermaid 图表与脚注顺序。
  • Prettier 3.6.2 风格检查通过。

AI 工具使用声明

本次 PR 的站点排查、SVG 整理、配置清理及本地验证使用了 Google Antigravity(Gemini 模型)辅助,所有改动均已人工逐项核对并在本地浏览器确认效果。

@iBug

iBug commented Nov 25, 2026

Copy link
Copy Markdown
Member

除了第 2 点之外都没问题,我们对 mkdocs-material 目前的做法是自己维护一个 fork(https://github.com/ustclug/mkdocs-material),用法可以参考 https://github.com/ustclug/Linux201-docs/blob/master/requirements.txt#L2。因此第二点我倾向于从此 PR 中剥离,另行修改主题仓库。

@taoky

taoky commented Nov 25, 2026

Copy link
Copy Markdown
Member

我们计划在 101 中使用和 201 一致的 AI policy:https://201.ustclug.org/spec/writing/#copyright-and-ai

请在 PR 中标注你所使用的 AI 工具。

@Minsecrus

Copy link
Copy Markdown
Contributor Author

除了第 2 点之外都没问题,我们对 mkdocs-material 目前的做法是自己维护一个 fork(https://github.com/ustclug/mkdocs-material),用法可以参考 https://github.com/ustclug/Linux201-docs/blob/master/requirements.txt#L2。因此第二点我倾向于从此 PR 中剥离,另行修改主题仓库。

OK

@Minsecrus
Minsecrus force-pushed the fix/site-issues-and-dark-mode-logos branch from 01bc9fa to 9bc6326 Compare November 25, 2026 12:18
@Minsecrus Minsecrus changed the title fix: dark-mode Ch01 SVG logos, broken links on /credits/, and Ch05/config fixes fix: dark-mode Ch01 SVG logos, broken contributors image, and Ch05/config fixes Nov 25, 2026
Comment thread docs/Ch01/images/Red-Hat-Logo-dark.svg Resolved
@Minsecrus
Minsecrus force-pushed the fix/site-issues-and-dark-mode-logos branch from d008be1 to 2c1ecef Compare November 25, 2026 23:45
@taoky
taoky merged commit ed4ba13 into ustclug:master Nov 26, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request Nov 26, 2026
Minsecrus: [ed4ba13] fix: dark-mode Ch01 SVG logos, broken contributors image, and Ch05/config fixes (#121)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants