Anduin Xue and GitHub
3bc87e94df
Update 乡村啤酒鸭.md
2026-05-06 04:13:28 +00:00
Anduin Xue and Copilot
52bd8d6434
fix: remove minify plugin to resolve build issues
...
The mkdocs-minify-plugin with htmlmin was causing segfaults during the
properdocs build when processing the large i18n file set.
Changes:
- Removed mkdocs-minify-plugin from requirements.txt
- Removed htmlmin2 dependency
- Removed minify plugin from mkdocs_template.yml
- Regenerated properdocs.yml
Verification:
- Docker build: SUCCESS ✓
- Image loading: HTTP 200 ✓
- i18n functionality: Working ✓
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-05 09:26:20 +00:00
Anduin Xue and Copilot
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
Anduin Xue and Copilot
6f83b5e49d
feat: add image reference validation to lint system
...
Add new image reference validation rule in manual_lint.js:
- Validates that referenced images exist in the file system
- Supports relative paths (./, ../) and skips external URLs
- Reports missing images as lint errors
Fixes found issue:
- dishes/soup/排骨山药玉米汤/排骨山药玉米汤.md: removed missing image
reference './排骨山药玉米汤.jpg'
All lint checks now pass ✅
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-05 09:09:16 +00:00
Anduin Xue and Copilot
e84bd91182
Fix: exclude en/ and site/ from readme/mkdocs auto-generation
...
The i18n migration introduced en/ and site/ directories, which were being
scanned by getAllMarkdown() and incorrectly mixed into the nav generation.
Changes:
- Add 'en' to ignorePaths: prevents 379 English files from polluting nav
- Add 'site' to ignorePaths: prevents built site artifacts from being scanned
The star difficulty system and README/properdocs.yml generation now only
processes Chinese source files (dishes/, tips/) while respecting the i18n
structure:
- README.md: 385 entries (all Chinese), with star difficulty index
- properdocs.yml: 375 nav entries (dishes + tips), Chinese only
- starsystem/: 358 recipes organized by difficulty (1-5 stars)
- i18n plugin: separate /en/ site built by properdocs, not generated by script
Docker build verified: npm run build → node readme-generate.js ✓
properdocs build with i18n: both zh and en locales ✓
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-04 16:35:11 +00:00
Anduin Xue and Copilot
a21c68aea3
Upgrade Docker base image from python:3.11 to python:3.13
...
python:3.11 causes a segfault when building with properdocs + mkdocs-static-i18n
processing both zh and en locales (379 translated files). python:3.13 matches
the local development environment and resolves the crash.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-04 15:16:27 +00:00
Anduin Xue and Copilot
ac0dfaab6d
Add English translations for all 379 recipe and tip files
...
Use dotlang AI translation (aiursoft-instruct:latest via Ollama) to
translate all Chinese content to English under en/ subfolder:
- en/dishes/: all recipe categories (aquatic, breakfast, condiment,
dessert, drink, meat_dish, semi-finished, soup, staple, vegetable_dish)
- en/tips/: learn/ and advanced/ cooking guides
- en/README.md, en/CONTRIBUTING.md, en/CODE_OF_CONDUCT.md
The mkdocs-static-i18n plugin (docs_structure: folder) serves Chinese
at the root and English at /en/, with a language switcher in the UI.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-04 15:11:01 +00:00
Anduin Xue and Copilot
3bb7159bf8
Add English i18n support with mkdocs-static-i18n
...
- Add mkdocs-static-i18n to requirements.txt
- Configure i18n plugin: zh (default) at root, en/ subfolder
- Add language switcher (alternate) in extra config
- Disable navigation.instant (incompatible with i18n switcher)
- Add nav_translations for all category labels in English
- Update readme-generate.js: dish/tip nav entries use path-only
(mkdocs auto-uses page heading = English title for /en/ pages)
- en/ folder to be populated by dotlang translation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-04 13:42:42 +00:00
Anduin Xue and Copilot
d541fd425d
Rename mkdocs.yml to properdocs.yml, remove --strict flag
...
- Update readme-generate.js to output properdocs.yml instead of mkdocs.yml
- Remove --strict from build command (pre-existing broken links in content)
- Remove legacy mkdocs.yml
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-04 13:25:23 +00:00
Anduin Xue and Copilot
a7d81fa681
Migrate from mkdocs to properdocs
...
- Replace mkdocs-with-pdf + weasyprint with properdocs>=1.6.7
- Add pymdown-extensions for richer markdown support
- Remove heavy apt dependencies (weasyprint, fonts-noto-cjk, wget, unzip)
- Switch build command from 'mkdocs build' to 'properdocs build --strict'
- Update template: add offline plugin, fix palette, add content.code.select/copy
- Add md_in_html, pymdownx.tilde, emoji, mermaid, annotation icon support
- Fix broken icon path material//weather-sunny
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-04 13:20:03 +00:00
Anduin Xue and Copilot
74314ed468
compress 老式锅包肉.jpg to under 1MB
...
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
Reduced from 2.78MB to 1012KB (quality=55) to pass the lint size check.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-04-08 06:35:00 +00:00
Anduin Xue and GitHub
fb200c2ec8
Update readme_template.md
2026-04-06 05:29:12 +00:00
Anduin Xue and GitHub
64ed9b7156
Update 土豆炖排骨.md ( #1774 )
...
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
* Update 土豆炖排骨.md
* Update 土豆炖排骨.md
* Update 土豆炖排骨.md
* Update 土豆炖排骨.md
2026-03-21 04:45:29 +00:00
Anduin Xue and GitHub
c9368aed1c
Add storage tip for cooked noodles
...
Add note about storing cooked noodles in the fridge to prevent residual heat.
2026-03-19 17:36:22 +00:00
Anduin Xue and GitHub
a9d3979771
Update 炒方便面.md
2026-03-19 17:34:43 +00:00
Anduin Xue and GitHub
3d4c7689b7
Update 地三鲜.md
2026-03-19 12:34:24 +00:00
Anduin Xue and GitHub
c8e959817c
Revise ingredient amounts and cooking instructions ( #1772 )
...
* Revise ingredient amounts and cooking instructions
Updated ingredient quantities and cooking steps for better clarity and accuracy.
* Update 地三鲜.md
2026-03-19 11:43:24 +00:00
Anduin Xue and GitHub
65c894f609
Update readme_template.md ( #1685 )
2026-03-15 09:05:52 +00:00
Anduin Xue and GitHub
d83cd4d933
Update readme_template.md
2026-02-12 15:30:38 +00:00
Anduin Xue and GitHub
d8ea52dfee
Update 如何选择现在吃什么.md
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-12-09 16:17:55 +00:00
Anduin Xue
d2bc7eb3f7
chore: remove unused file
2025-12-09 16:09:54 +00:00
Anduin Xue and GitHub
e4b270735e
Update readme_template.md
2025-12-04 17:04:38 +00:00
Anduin Xue and GitHub
e167ad266e
回滚4星
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-11-18 06:52:12 +00:00
Anduin Xue and GitHub
7292fab742
测试为什么这个菜难度成了8星
2025-11-18 06:51:15 +00:00
Anduin Xue and GitHub
c799daa932
Patch domain
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-10-28 11:30:11 +00:00
Anduin Xue and GitHub
ce75f64a07
Fix PDF download link in readme template
...
Updated the PDF download link from cook.aiursoft.cn to cook.aiursoft.com.
2025-10-28 11:28:57 +00:00
Anduin Xue and GitHub
930fdef567
Update readme_template.md
2025-10-17 08:07:55 +00:00
Anduin Xue
10ac8acc5b
fix: update file paths in manual_lint.js and correct recipe details in various markdown files
2025-09-20 16:01:08 +00:00
Anduin Xue and GitHub
6fb7bcad87
Fix glob paths in manual_lint.js
2025-09-20 15:55:39 +00:00
Anduin Xue and GitHub
547b2dc922
Revise 煎烤羊排 recipe with detailed instructions
...
Updated the recipe for 煎烤羊排 to include detailed ingredients, cooking steps, and tips.
2025-09-20 15:30:47 +00:00
Anduin Xue and GitHub
1b7b8a8e09
Update 煎烤羊排.md
2025-09-20 15:28:19 +00:00
Anduin Xue and GitHub
11bbcff264
Update 无厨师机蜂蜜面包.md Fix #1640
2025-07-04 05:27:17 +00:00
Anduin Xue and GitHub
ff1b604ac8
Move a dish.
2025-06-30 04:30:31 +00:00
Anduin Xue
0c9bf2b682
Implement code changes to enhance functionality and improve performance
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-06-15 11:29:03 +00:00
Anduin Xue
267eee040b
Bump version to 1.5.0 in package.json
2025-06-15 11:28:22 +00:00
Anduin Xue and GitHub
a737675a0f
Update readme_template.md
2025-06-14 05:24:56 +00:00
Anduin Xue and GitHub
d3f21a15fb
Update readme_template.md
2025-05-06 09:58:59 +00:00
Anduin Xue and GitHub
98e00a9ae5
Update readme_template.md
2025-05-06 09:57:48 +00:00
Anduin Xue and GitHub
b386807956
Update readme_template.md
Continuous Deployment / build-docker-image (push) Has been cancelled
Continuous Deployment / build-readme-file (push) Has been cancelled
2025-04-28 06:14:12 +00:00
Anduin Xue and GitHub
1e75b6508a
Update 黄焖鸡.md
Continuous Deployment / build-docker-image (push) Has been cancelled
Continuous Deployment / build-readme-file (push) Has been cancelled
2025-04-24 14:43:36 +00:00
Anduin Xue
656b420a06
Add cooking difficulty validation to manual linting script
Continuous Deployment / build-readme-file (push) Waiting to run
Continuous Deployment / build-docker-image (push) Blocked by required conditions
2025-04-24 06:29:54 +00:00
Anduin Xue and GitHub
9b774c4f16
Update readme_template.md
2025-04-24 05:48:21 +00:00
Anduin Xue and GitHub
d29df6b3aa
Update build.yml
2025-04-23 11:36:51 +00:00
Anduin Xue and GitHub
584bc5b6bc
Update build.yml to checkout with lfs
2025-04-23 11:35:51 +00:00
Anduin Xue
358cf98993
测试 LFS 迁移。
2025-04-23 10:32:32 +00:00
Anduin Xue and GitHub
9c0a35a13c
Update 清蒸鳜鱼.md 为三星难度。
2025-04-21 16:27:48 +00:00
Anduin Xue
8b6e1915a3
压缩图片
2025-04-20 14:36:41 +00:00
Anduin Xue
91aa93623b
Compress photos
2025-04-20 14:02:13 +00:00
Anduin Xue
aeb7dbfe47
Fix links to油温判断技巧 in beef steak recipe
2025-04-20 12:57:56 +00:00
Anduin Xue
676675f968
Merge branch 'master' of github.com:Anduin2017/HowToCook
2025-04-20 12:47:39 +00:00
Anduin Xue
4250125741
Add check for files without extensions in manual linting script
2025-04-20 12:47:35 +00:00
Anduin Xue
221331cc94
Replace 松仁玉米 recipe with an updated version
2025-04-20 12:45:53 +00:00
Anduin Xue
2e9937c9b5
添加文件大小检查,确保文件不超过1MB限制,并提示用户压缩或分割文件。
2025-04-20 12:39:16 +00:00
Anduin Xue
f10a815d84
压缩菜谱中超过1MB的图片。
2025-04-20 12:32:09 +00:00
Anduin Xue
4c51800bfd
压缩一些过大的图片。
2025-04-20 12:23:15 +00:00
Anduin Xue
c79e497850
删除鸣谢。不知道为什么它会影响pdf的生成。
2025-04-20 12:10:51 +00:00
Anduin Xue and GitHub
9f3eb9bafc
Update 如何选择现在吃什么.md
2025-04-19 07:34:53 +00:00
Anduin Xue and GitHub
ff51d9fae6
Update readme_template.md
2025-04-19 07:03:36 +00:00
Anduin Xue and GitHub
bb59239e73
Update 糖醋排骨.md Fix #1439 ( #1454 )
...
* Update 糖醋排骨.md Fix #1439
* Update 糖醋排骨.md
* Remove comments and adjust formatting in recipe
2025-04-18 09:25:45 +00:00
Anduin Xue and GitHub
c423721541
Update 老式锅包肉.md Fix #1457 ( #1458 )
2025-04-17 10:37:37 +00:00
Anduin Xue and GitHub
0a2439f823
“搭建环境”更适合描述做菜前的准备。
2025-04-17 09:44:43 +00:00
Anduin Xue and GitHub
9366954cdd
Update Dockerfile to use node 22
2025-04-16 05:44:04 +00:00
Anduin Xue and GitHub
bf5928ddbc
Update build.yml use setup-node@v4
2025-04-16 05:42:50 +00:00
Anduin Xue and GitHub
3618b4a91b
Update build.yml use setup-node@v4
2025-04-16 05:42:40 +00:00
Anduin Xue and GitHub
a035c61241
Update ci.yml use node 22
2025-04-16 05:40:40 +00:00
Anduin Xue and GitHub
ef00aa551b
Update ci.yml use node 22
2025-04-16 05:40:29 +00:00
Anduin Xue and GitHub
1589014b74
Update 鸡蛋火腿炒黄瓜.md
2025-04-04 05:58:19 +00:00
Anduin Xue and GitHub
16e6b447b0
Update Dockerfile
2025-03-26 02:44:56 +00:00
Anduin Xue and GitHub
9354cf31cc
更新 Readme,毕竟这年头不隔离了。。
2025-03-20 17:02:19 +00:00
Anduin Xue and GitHub
055916954f
Delete dishes/aquatic/芥末黄油罗氏虾.md Fix #1418
2025-03-15 07:16:44 +00:00
Anduin Xue
b6d5054570
Merge branch 'master' of github.com:Anduin2017/HowToCook
2025-01-18 12:19:37 +00:00
Anduin Xue
8078b546ba
Add validation to manual_lint.js to check for spaces in filenames
2025-01-18 12:19:33 +00:00
Anduin Xue
a128e48340
Rename 肉蛋盖饭 recipe file and remove extra space in title
2025-01-18 12:18:21 +00:00
Anduin Xue
10c55fb0b5
Remove 红柚蛋糕 recipe and restructure file organization
2025-01-18 12:09:21 +00:00
Anduin Xue
88238422e0
Fix 广式萝卜牛腩 难度为0的bug。
2025-01-17 16:39:14 +00:00
Anduin Xue and GitHub
9b329686de
Update 广式萝卜牛腩.md Fix #1400
2024-12-16 07:31:15 +00:00
Anduin Xue and GitHub
b6a8bec38d
Update 手工水饺.md 不建议盖盖子 ( #1394 )
...
* Update 手工水饺.md 不建议盖盖子
* Update 手工水饺.md
2024-12-04 06:34:59 +00:00
Anduin Xue and GitHub
154b4d1eba
简化老式锅包肉的文法 ( #1392 )
...
* 简化老式锅包肉的文法
* Update 老式锅包肉.md
* Update 老式锅包肉.md
2024-11-25 09:25:42 +00:00
Anduin Xue and GitHub
f28399d5f0
Update 炒年糕.md Fix #1382
2024-10-24 08:27:35 +00:00
Anduin Xue and GitHub
d5fc924ffb
Update 牛奶燕麦.md Fix #1143
2024-10-24 08:25:36 +00:00
Anduin Xue and GitHub
9f73398e91
Update 广式萝卜牛腩.md
2024-09-17 07:28:53 +00:00
Anduin Xue
40cf9b17a8
Show verbose log for npm install for easier debugging.
2024-08-01 12:33:08 +00:00
Anduin Xue and GitHub
611256987c
Update Dockerfile
2024-07-22 06:03:29 +00:00
Anduin Xue and GitHub
09fdd9c377
Update 食品安全.md to fix #1355
2024-07-06 05:03:40 +00:00
Anduin Xue and GitHub
1fc1e7d5fc
Update 炒方便面.md
2024-06-24 16:37:54 +00:00
Anduin Xue and GitHub
38fbf7c8c5
Update 煮泡面加蛋.md 确保泡面可以完整的浸入水中。 ( #1343 )
2024-06-24 09:25:17 +00:00
Anduin Xue and GitHub
1b8ad896e4
Update 炒方便面.md
2024-06-24 09:24:32 +00:00
Anduin Xue and GitHub
5df5f14f0d
Update 炒方便面.md
2024-06-23 15:12:46 +00:00
Anduin
dfdc967343
Regenerate package-lock.json.
2024-06-17 14:06:14 +00:00
Anduin
818157f285
Update package version to 1.4.0 and update error-ex dependency to version 1.4.0
2024-06-17 14:03:33 +00:00
Anduin Xue and GitHub
410fd4d0b5
修正小酥肉的语文语法 ( #1333 )
2024-06-14 08:31:25 +00:00
Anduin
035cf7c177
Update dish difficulty titles to use Chinese characters
2024-06-06 17:12:40 +00:00
Anduin
60e5d0eb8d
chore: Update build workflow to include Docker image build and push to GitHub Container Registry
2024-06-03 13:43:33 +00:00
Anduin
d798ed1eeb
chore: Update build workflow to include Docker image build and push to GitHub Container Registry
2024-06-03 13:02:05 +00:00
Anduin
76012b3b1d
chore: Update build workflow to include Docker image build and push to GitHub Container Registry
2024-06-03 12:55:50 +00:00
Anduin
0e2749a441
Update Dockerfile to remove sudo from fc-cache command
2024-06-03 12:52:07 +00:00
Anduin
d07b6e063a
chore: Remove build.sh script and update build workflow to use Continuous Deployment
2024-06-03 12:48:39 +00:00
Anduin
bc8b5e0e33
chore: Update build workflow name to Continuous Deployment
2024-06-03 12:45:00 +00:00
Anduin
95c0d2a384
chore: Update lint script to include a completion message
2024-06-03 12:39:44 +00:00
Anduin
4ae3f1beeb
chore: Update homepage URL in package.json
2024-06-03 12:38:26 +00:00