Commit Graph

161 Commits

Author SHA1 Message Date
Anduin Xue
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 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
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
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
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
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
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
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
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
fb200c2ec8 Update readme_template.md 2026-04-06 05:29:12 +00:00
Anduin Xue
d83cd4d933 Update readme_template.md 2026-02-12 15:30:38 +00:00
Pádraic Slattery
3b86671dbb chore: Update outdated GitHub Actions versions (#1746) 2026-01-19 18:51:43 +00:00
sunblack110
0e5d0b6ea8 fix: 将挂勺加入勺子用法白名单,修复 issue #1689 (#1725)
Some checks failed
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
挂勺是中餐烹饪术语,表示酱汁浓稠到可以挂在勺子上的状态。
这是一个描述烹饪状态的词,而非计量单位,应该被允许使用。

Fixes Anduin2017/HowToCook#1689
2026-01-05 17:01:47 +00:00
Anduin Xue
e4b270735e Update readme_template.md 2025-12-04 17:04:38 +00:00
Anduin Xue
c799daa932 Patch domain
Some checks failed
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
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
930fdef567 Update readme_template.md 2025-10-17 08:07:55 +00:00
Anduin Xue
6fb7bcad87 Fix glob paths in manual_lint.js 2025-09-20 15:55:39 +00:00
Anduin Xue
a737675a0f Update readme_template.md 2025-06-14 05:24:56 +00:00
phyang
ea963d131e Update manual_lint.js:重构校验脚本为模块化结构,提升可读性与可维护性;使用 path.resolve 统一管理 glob 路径,路径处理更安全。 (#1587)
Some checks failed
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
* Update manual_lint.js

* Update manual_lint.js

---------

Co-authored-by: Anduin Xue <anduin@aiursoft.com>
2025-05-13 13:49:14 +00:00
Anduin Xue
d3f21a15fb Update readme_template.md 2025-05-06 09:58:59 +00:00
Anduin Xue
98e00a9ae5 Update readme_template.md 2025-05-06 09:57:48 +00:00
Anduin Xue
b386807956 Update readme_template.md
Some checks failed
Continuous Deployment / build-readme-file (push) Has been cancelled
Continuous Deployment / build-docker-image (push) Has been cancelled
2025-04-28 06:14:12 +00:00
Anduin Xue
656b420a06 Add cooking difficulty validation to manual linting script
Some checks are pending
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
9b774c4f16 Update readme_template.md 2025-04-24 05:48:21 +00:00
Anduin Xue
d29df6b3aa Update build.yml 2025-04-23 11:36:51 +00:00
Anduin Xue
584bc5b6bc Update build.yml to checkout with lfs 2025-04-23 11:35:51 +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
2e9937c9b5 添加文件大小检查,确保文件不超过1MB限制,并提示用户压缩或分割文件。 2025-04-20 12:39:16 +00:00
Anduin Xue
c79e497850 删除鸣谢。不知道为什么它会影响pdf的生成。 2025-04-20 12:10:51 +00:00
Anduin Xue
ff51d9fae6 Update readme_template.md 2025-04-19 07:03:36 +00:00
Anduin Xue
0a2439f823 “搭建环境”更适合描述做菜前的准备。 2025-04-17 09:44:43 +00:00
Anduin Xue
bf5928ddbc Update build.yml use setup-node@v4 2025-04-16 05:42:50 +00:00
Anduin Xue
3618b4a91b Update build.yml use setup-node@v4 2025-04-16 05:42:40 +00:00
Anduin Xue
a035c61241 Update ci.yml use node 22 2025-04-16 05:40:40 +00:00
Anduin Xue
ef00aa551b Update ci.yml use node 22 2025-04-16 05:40:29 +00:00
Anduin Xue
9354cf31cc 更新 Readme,毕竟这年头不隔离了。。 2025-03-20 17:02:19 +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
035cf7c177 Update dish difficulty titles to use Chinese characters 2024-06-06 17:12:40 +00:00
Yufei Jiao
e6c84a641d Update readme-generate.js (#1329)
* Update readme-generate.js

* Update readme-generate.js

* Update readme-generate.js
2024-06-06 17:02:26 +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
bc8b5e0e33 chore: Update build workflow name to Continuous Deployment 2024-06-03 12:45:00 +00:00
Anduin
fa38fd120b chore: Update Dockerfile to use GitHub Container Registry for image build and push 2024-06-03 12:37:05 +00:00
Anduin
f36778f5da chore: Update Dockerfile to use GitHub Container Registry for image build and push 2024-06-03 12:22:06 +00:00
Anduin
4698eea6e3 chore: Update Dockerfile to use GitHub Container Registry for image build and push 2024-06-03 12:21:36 +00:00
Anduin
0f1b3ab520 chore: Update Dockerfile to use GitHub Container Registry for image build and push 2024-06-03 12:02:53 +00:00
xuef
d833e1a7f5 chore: Update PDF plugin configuration and fix formatting in dishes/semi-finished/豆鼓.md 2024-06-03 07:32:04 +00:00