Files
HowToCook/en/dishes/meat_dish/姜炒鸡/姜炒鸡.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.8 KiB
Markdown

# Ginger Stir-Fried Chicken
![Ginger Stir-Fried Chicken](./姜炒鸡.jpg)
Ginger Stir-Fried Chicken is a Hunan-style dish that is incredibly appetizing. The ingredients are simple and easy to prepare, making it a quick recipe to master.
Estimated Cooking Difficulty: ★★★
## Ingredients and Tools
- Chicken
- Ginger
- Beer
- Light Soy Sauce
- Dark Soy Sauce
- Salt
- Millet Pepper (Xiaomila)
- Beauty Pepper (Meirenla)
- Pickled Pepper
- Garlic
## Quantities
- Chicken = Half a chicken (free-range is best, approx. 650g)
- Cooking Oil = 50ml (Camellia oil is best; if unavailable, use rapeseed oil)
- Ginger = 250g (approx. half a jin)
- Beer = Half a bottle (250ml)
- Light Soy Sauce = 20ml
- Dark Soy Sauce = 10ml
- Salt = 3g
- Millet Pepper = 0-5 pieces (0-50g) (adjust according to spice preference)
- Beauty Pepper = 0-5 pieces (0-50g) (can be substituted with Millet Pepper if unavailable)
- Pickled Pepper = 5 pieces (50g)
- Garlic = 3 cloves (approx. 50g)
## Instructions
- Chop the chicken into 1cm pieces. Wash them and drain well, then marinate with light soy sauce and cooking wine for 30 minutes.
- Heat a large wok until it starts to smoke slightly, add the cooking oil, and wait for 5 seconds.
- Add the ginger slices and stir-fry over medium heat for 30 seconds.
- Add the chicken pieces and stir-fry for 3 minutes until the moisture evaporates and the chicken fat is rendered.
- Add the chopped peppers and garlic cloves, then add salt and dark soy sauce. Continue stir-frying for 30 seconds.
- Pour in the beer and simmer over medium-low heat for 2 minutes.
- Increase the heat to reduce the sauce, then plate and serve.
## Additional Information
If you encounter any issues or have suggestions for improvement while following this guide, please submit an Issue or Pull request.