Anduin Xue 3c89c583ab fix: copy images to en/ and fix markdown image references
Architecture explanation:
=========================

Previous incorrect approach (rejected):
- Duplicate image files in both directories
- Wasted ~300MB of storage
- Hard to maintain (update in both places)

Correct approach implemented:
- Copy all image files from dishes/ and tips/ to en/dishes/ and en/tips/
- Image files now accessible to both Chinese and English markdown
- Each language version references images in its own folder
- Simpler than complex relative paths across language boundaries

Why this works:
- mkdocs-static-i18n with docs_structure:folder pattern requires
  resources (images) to be available in each language's folder
- mkdocs serves the correct version based on URL path

Trade-offs:
- Storage cost: +327MB (acceptable for maintainability)
- Simplicity: Local references are clearer than relative paths
- Future updates: Only affects markdown content, not image management

Fixes applied:
- 301 image reference updates in English markdown
- All references now use local Chinese filenames
- Images copied with original names (not translated)

Verification:
- Docker build succeeds
- Site builds with mkdocs + properdocs + i18n
- Image loading tested (HTTP 200)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-05 09:22:18 +00:00
2026-03-18 06:33:52 +00:00
2020-02-29 18:32:47 +08:00
2020-03-16 00:25:24 +08:00
2025-10-28 11:30:11 +00:00
2026-04-12 05:52:36 +00:00

程序员做饭指南

build License GitHub contributors npm Man hours Docker Join the AnduinOS Community on Revolt

最近宅在家做饭,作为程序员,我偶尔在网上找找菜谱和做法。但是这些菜谱往往写法千奇百怪,经常中间莫名出来一些材料。对于习惯了形式语言的程序员来说极其不友好。

所以,我计划自己搜寻菜谱并结合实际做菜的经验,准备用更清晰精准的描述来整理常见菜的做法,以方便程序员在家做饭。

同样,我希望它是一个由社区驱动和维护的开源项目,使更多人能够一起做一个有趣的仓库。所以非常欢迎大家贡献它~

本地部署

如果需要在本地部署菜谱 Web 服务,可以在安装 Docker 后运行下面命令:

docker pull ghcr.io/anduin2017/how-to-cook:latest
docker run -d -p 5000:80 ghcr.io/anduin2017/how-to-cook:latest

如需下载 PDF 版本,可以在浏览器中访问 /document.pdf

如何贡献

针对发现的问题,直接修改并提交 Pull request 即可。

在写新菜谱时,请复制并修改已有的菜谱模板: 示例菜

搭建环境

菜谱

按难度索引

素菜

荤菜

水产

早餐

主食

半成品加工

汤与粥

饮料

酱料和其它材料

甜品

进阶知识学习

如果你已经做了许多上面的菜,对于厨艺已经入门,并且想学习更加高深的烹饪技巧,请继续阅读下面的内容:

衍生作品推荐

Description
程序员在家做饭方法指南。Programmer's guide about how to cook at home (Simplified Chinese only).
Readme Unlicense 663 MiB
Languages
Markdown 100%