Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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 Xue
58fa2e419c Read template from file. 2022-03-07 03:28:45 +08:00
Anduin Xue
1475e77536 Add code of conduct to website. 2022-03-07 03:11:28 +08:00
Anduin Xue
9bb4f38092 Add npm. 2022-03-05 01:50:24 +08:00
Anduin Xue
8773dd6f67 Display deploy as badge. 2022-03-05 00:31:00 +08:00
Anduin Xue
e18308a735 将水产作为一个独立的分类 2022-03-05 00:19:54 +08:00
Xing Yahao
6503f65a5e [ci] Auto generation add mkdocs support 2022-03-04 22:23:17 +09:00
Anduin Xue
a7bd4a6351 删除过时的通知。 2022-03-04 01:23:51 +08:00
Anduin Xue
ea6dbb12eb Change readme generate template. 2022-03-04 00:39:06 +08:00
Waki
1f7aff1ecd 根据action日志抓虫子 2022-03-03 23:40:42 +08:00
Anduin Xue
165175f769 修正一些readme生成的错误。 2022-03-03 18:01:51 +08:00
Waki
08e79b626b Update readme-generate.js 2022-03-02 08:11:42 +08:00
Waki
baadb29d2b Update readme-generate.js 2022-03-02 08:08:33 +08:00
Xing Yahao
23f01d6ddd [ci] Add stale issue pr close bot 2022-02-27 15:51:37 +09:00
Xing Yahao
e10701dced add new category 2022-02-26 20:56:53 +09:00
Xing Yahao
0bcb6a3dd7 update ci related 2022-02-26 19:31:36 +09:00
Xing Yahao
9ce0cac337 [ci] Create readme auto generator 2022-02-26 19:05:53 +09:00