Files
HowToCook/en/dishes/staple/火腿饭团/火腿饭团.md
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

49 lines
1.6 KiB
Markdown

# How to Make Ham Rice Balls
![Ham Rice Ball](./饭团.png)
Delicious! Rich in carbohydrates, protein, and vitamins. Easy to make with basic skills, estimated preparation time: 1 hour.
Estimated Cooking Difficulty: ★★★★
## Essential Ingredients and Tools
- Ham
- Rice
- Water
- Frozen peas (optional)
- Frozen corn kernels (optional)
- Crushed nori (optional)
- Your favorite salad dressing (Japanese mayo recommended!)
## Calculation
Determine how many servings you want to make before each preparation. One serving is sufficient for 2 people.
Per serving:
- Ham (100g)
- Rice (125g)
- Water (90ml)
- Frozen peas (30g)
- Frozen corn kernels (30g)
- Crushed nori (10g)
- Your favorite salad dressing (20g)
- Cooking oil (10-15ml)
## Instructions
- Place the rice and water in the rice cooker, select the rice cooking mode, and wait for it to finish.
- Put the frozen corn kernels and peas in a pot, add enough water to cover all ingredients, bring to a boil, let stand for 2 minutes, then remove.
- Cut the ham into 1cm cubes.
- Meanwhile, add 10ml of cooking oil to a pan and stir-fry the ham until it is browned.
- Place the rice, ham, crushed nori, peas, corn kernels, and salad dressing in a bowl, and mix well.
- Plate the dish (if desired).
## Additional Notes
- Adjust the amount of salad dressing according to your personal taste.
- You can try mixing different types of salad dressing.
- Reference: Xiaohongshu - "The Rice Lover is Getting Sleepy"
If you encounter any issues or have suggestions for improvement while following this guide, please submit an Issue or Pull Request.