Commit Graph
100 Commits
Author SHA1 Message Date
Anduin Xue 94a2c7372e fix 台式卤肉饭难度评级:5星→3星
食谱自称"厨房小白可上手""操作简单",30分钟动手时间,与照烧鸡腿饭同理应为3星。
2026-05-13 14:46:04 +00:00
Anduin Xue 82b7a872cd fix 酸梅汤难度评级:4星→2星
煮药材兑水而已,零烹饪技巧,与冬瓜茶同档。
2026-05-13 14:35:04 +00:00
Anduin XueandClaude Opus 4.7 4f394f39be fix 完美水煮蛋难度评级:5星→2星
繁琐不等于难度高——循环换锅只需定时器,无需烹饪技巧。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 12:51:51 +00:00
Anduin Xue 246314b31d 新增地三鲜菜谱,包含原料、操作步骤及注意事项 2026-05-12 13:58:25 +00:00
Anduin XueandClaude Opus 4.7 faee607001 明确照烧鸡腿饭中大蒜使用拍碎的蒜瓣
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 13:36:49 +00:00
Anduin Xue 29dd7d76f7 Merge branch 'master' of github.com:Anduin2017/HowToCook 2026-05-12 06:53:46 +00:00
Anduin Xue 466f516637 Refactor code structure for improved readability and maintainability 2026-05-12 06:53:39 +00:00
Anduin XueandGitHub 03f58fe607 Update readme_template.md 2026-05-12 06:50:31 +00:00
Anduin XueandClaude Opus 4.7 afc5f19518 fix #1714: blanch pork belly in large pieces before cutting to final size
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 04:48:29 +00:00
Anduin Xue 8db1ea09ec Merge branch 'master' of github.com:Anduin2017/HowToCook 2026-05-12 04:45:21 +00:00
Anduin XueandClaude Opus 4.7 a1d331c1d6 fix #1757
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 04:45:05 +00:00
Anduin XueandClaude Opus 4.7 a92a343a5c chore: add lint rules for ordered lists in 操作 section and no HTML comments
- Enforce ordered lists (1. 2. 3.) in ## 操作 sections
- Forbid HTML comments in recipe files (template exempted)
- Convert all existing dishes to comply with new rules
- Fix vague measurements (少许 → 2段葱段) in 南派红烧肉
- Fix markdownlint MD032 (blanks around lists) across all files

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 04:37:20 +00:00
Anduin XueandClaude Opus 4.7 09c1fee7a5 Fix #1759: 量化南派红烧肉与简易炒糖色的模糊变量,消除模块集成Bug
- 糖重量量化:50g,附基准比例(每1000g肉:50g糖)
- 操作2歧义修复:明确爆香后必须立刻加400ml开水中止反应
- 操作开头新增高能预警块,提醒提前备料
- 肉块标准化:3cm×3cm×3cm正方体,附收缩后约2.5cm说明
- 补全小葱(30g)、大蒜(25g)重量参数
- 料酒总量声明30ml(焯水20ml+炖煮10ml)
- 辅料重构为A包(去腥)/B包(炖煮),消除B包重复调用Bug
- 修复步骤9-10时序冲突:炒糖色→爆香→下肉翻炒→加水炖煮

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 04:24:36 +00:00
Anduin Xue 2556e9230e Merge branch 'master' of github.com:Anduin2017/HowToCook 2026-05-12 04:13:23 +00:00
Anduin Xue 5eb97c9d16 Fix #1763 2026-05-12 04:13:16 +00:00
Anduin Xue 1e35f6a604 delete: remove food pairing guide on incompatible ingredients from tips. Fix #1788 2026-05-12 04:10:31 +00:00
Anduin Xue 5f7217b926 chore: update package version to 1.6.0 in package.json and package-lock.json
Continuous Deployment / build-readme-file (push) Has been cancelled
2026-05-11 17:24:41 +00:00
Anduin Xue a0b14bd388 delete: remove properdocs.yml and update .gitignore to exclude additional files 2026-05-11 14:09:04 +00:00
Anduin Xue b7c4dabf47 delete: remove 1 to 5 star difficulty category files and associated dish links 2026-05-11 14:06:56 +00:00
Anduin Xue e1a7e60517 Merge branch 'master' of github.com:Anduin2017/HowToCook 2026-05-11 14:06:07 +00:00
Anduin Xue 16c9dcafc0 refactor: streamline README generation by removing star index section and unused mkdocs references 2026-05-11 14:05:59 +00:00
Anduin Xue ba1295076a Merge branch 'master' of github.com:Anduin2017/HowToCook 2026-05-11 12:48:52 +00:00
Anduin Xue 83f6d8f825 Remove difficulty category files for 4, 5, 7, and 8 star dishes, including all associated dish links. 2026-05-11 12:48:42 +00:00
Anduin Xue c2662846f5 fix: update oil selection guidelines to emphasize proper usage of flaxseed and perilla oils 2026-05-11 12:41:00 +00:00
Anduin Xue 795708d5c4 refactor: simplify Dockerfile by removing unnecessary build stages 2026-05-11 12:39:13 +00:00
Anduin Xue 9e12990647 fix: update oil selection guidelines and cooking recommendations for better health choices
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2026-05-06 18:06:00 +00:00
Anduin XueandGitHub c8da0528ae Update 乡村啤酒鸭.md 2026-05-06 04:13:50 +00:00
Anduin XueandGitHub 3bc87e94df Update 乡村啤酒鸭.md 2026-05-06 04:13:28 +00:00
Anduin XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandCopilot 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 XueandGitHub fb200c2ec8 Update readme_template.md 2026-04-06 05:29:12 +00:00
Anduin XueandGitHub 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 XueandGitHub 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 XueandGitHub a9d3979771 Update 炒方便面.md 2026-03-19 17:34:43 +00:00
Anduin XueandGitHub 3d4c7689b7 Update 地三鲜.md 2026-03-19 12:34:24 +00:00
Anduin XueandGitHub 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 XueandGitHub 65c894f609 Update readme_template.md (#1685) 2026-03-15 09:05:52 +00:00
Anduin XueandGitHub d83cd4d933 Update readme_template.md 2026-02-12 15:30:38 +00:00
Anduin XueandGitHub 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 XueandGitHub e4b270735e Update readme_template.md 2025-12-04 17:04:38 +00:00
Anduin XueandGitHub 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 XueandGitHub 7292fab742 测试为什么这个菜难度成了8星 2025-11-18 06:51:15 +00:00
Anduin XueandGitHub 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 XueandGitHub 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 XueandGitHub 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 XueandGitHub 6fb7bcad87 Fix glob paths in manual_lint.js 2025-09-20 15:55:39 +00:00
Anduin XueandGitHub 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 XueandGitHub 1b7b8a8e09 Update 煎烤羊排.md 2025-09-20 15:28:19 +00:00
Anduin XueandGitHub 11bbcff264 Update 无厨师机蜂蜜面包.md Fix #1640 2025-07-04 05:27:17 +00:00
Anduin XueandGitHub 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 XueandGitHub a737675a0f Update readme_template.md 2025-06-14 05:24:56 +00:00
Anduin XueandGitHub d3f21a15fb Update readme_template.md 2025-05-06 09:58:59 +00:00
Anduin XueandGitHub 98e00a9ae5 Update readme_template.md 2025-05-06 09:57:48 +00:00
Anduin XueandGitHub 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 XueandGitHub 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 XueandGitHub 9b774c4f16 Update readme_template.md 2025-04-24 05:48:21 +00:00
Anduin XueandGitHub d29df6b3aa Update build.yml 2025-04-23 11:36:51 +00:00
Anduin XueandGitHub 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 XueandGitHub 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 XueandGitHub 9f3eb9bafc Update 如何选择现在吃什么.md 2025-04-19 07:34:53 +00:00
Anduin XueandGitHub ff51d9fae6 Update readme_template.md 2025-04-19 07:03:36 +00:00
Anduin XueandGitHub 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 XueandGitHub c423721541 Update 老式锅包肉.md Fix #1457 (#1458) 2025-04-17 10:37:37 +00:00
Anduin XueandGitHub 0a2439f823 “搭建环境”更适合描述做菜前的准备。 2025-04-17 09:44:43 +00:00
Anduin XueandGitHub 9366954cdd Update Dockerfile to use node 22 2025-04-16 05:44:04 +00:00
Anduin XueandGitHub bf5928ddbc Update build.yml use setup-node@v4 2025-04-16 05:42:50 +00:00
Anduin XueandGitHub 3618b4a91b Update build.yml use setup-node@v4 2025-04-16 05:42:40 +00:00
Anduin XueandGitHub a035c61241 Update ci.yml use node 22 2025-04-16 05:40:40 +00:00
Anduin XueandGitHub ef00aa551b Update ci.yml use node 22 2025-04-16 05:40:29 +00:00
Anduin XueandGitHub 1589014b74 Update 鸡蛋火腿炒黄瓜.md 2025-04-04 05:58:19 +00:00
Anduin XueandGitHub 16e6b447b0 Update Dockerfile 2025-03-26 02:44:56 +00:00
Anduin XueandGitHub 9354cf31cc 更新 Readme,毕竟这年头不隔离了。。 2025-03-20 17:02:19 +00:00
Anduin XueandGitHub 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