Commit Graph

7 Commits

Author SHA1 Message Date
zepan
2821a421bc ci: check that referenced images exist; document shallow clone
断链图片一直在悄悄累积(本次清理前有 230 处),而且线上看不出来:
teedoc-upload 只上传不删除对象存储里已移除的文件,旧副本把断链盖住了,
所以页面看起来正常。CI 里也从来没有任何链接检查。

- tools/check_image_links.py:只认 markdown ![]() 与 <img src>,
  先剥离代码块以免把 `convert in.jpg out.jpg` 这类示例当成引用,
  并按 site_config 的 route 解析站点绝对路径。
- tools/known_broken_images.txt:当前仍存在的 121 处已知断链基线。
  CI 对不在基线中的断链报错,基线只许减不许增。
- .github/workflows/check_links.yml:push 与 PR 均运行。
- README:建议 --depth=1 浅克隆并解释原因——文档站的历史里保留了
  每张图的所有旧版本(约 1GB),而贡献者只需要当前版本。
2026-10-07 01:01:33 +08:00
taorye
55100ca7e5 chore(env): manage the virtualenv with uv
- add pyproject.toml and uv.lock pinning teedoc 1.37.9 with the twelve
  plugins listed in site_config.json, plus setuptools: babel's
  babel.messages.frontend imports distutils, which is no longer part of
  the standard library on Python 3.12+
- declare Python >= 3.10, the floor required by the pinned setuptools
- replace the pip preview steps in README.md and share_docs/zh/add_doc.md
  with "uv sync && uv run teedoc serve"; the plugins now come from the
  lockfile, so teedoc install is no longer needed
2026-09-15 18:00:51 +08:00
Savelii Pototskii
56b64fd22c fix: correct typos in different files (#697)
* fix: correct typos in different files
2024-07-25 09:22:51 +08:00
Neucrack
b33e698ef0 update publish 2022-09-05 18:10:26 +08:00
Neucrack
106ad15b3d update ci 2022-09-05 16:28:26 +08:00
junhuanchen
e75d983e11 [release] 2022-07-06 11:24:18 +08:00
Neucrack
617071829d add framework 2019-05-25 19:01:45 +08:00