Quick Reference Card

πŸš€ Common Tasks

Build Everything

# Windows
build.bat

# Linux/Mac
./build.sh

Build Single Language

# Chinese
cd zh && quarto render && cd ..

# English
cd en && quarto render && cd ..

# Then copy resources
xcopy /E /I /Y assets docs\assets
xcopy /E /I /Y images docs\images
xcopy /E /I /Y pdf docs\pdf

Preview Locally

# Chinese
quarto preview docs/zh

# English
quarto preview docs/en

# Or use browser
# file:///path/to/docs/zh/index.html

Deploy

git add .
git commit -m "Update content"
git push origin main
# Wait 1-2 minutes, then visit:
# https://JiajunDu-ReSustain.github.io/

Clean Build

# Windows
rmdir /s /q docs\zh
rmdir /s /q docs\en
build.bat

# Linux/Mac
rm -rf docs/zh docs/en
./build.sh

πŸ“‚ File Locations

Edit Content

  • Chinese: zh/*.qmd
  • English: en/*.qmd

Edit Navigation

  • Chinese: zh/_quarto.yml
  • English: en/_quarto.yml

Edit Styles

  • Theme: styles.scss

Edit Language Switcher

  • Script: assets/lang-switch.js

πŸ”§ Troubleshooting

Language switcher not showing?

  1. Check docs/assets/lang-switch.js exists
  2. Rebuild: build.bat or ./build.sh
  3. Clear browser cache

Images not loading?

xcopy /E /I /Y images docs\images
xcopy /E /I /Y pdf docs\pdf

Build errors?

  1. Check Quarto version: quarto --version
  2. Check YAML syntax in _quarto.yml files
  3. Ensure you’re in the right directory

πŸ“š Full Documentation

🌐 URLs

  • English: https://JiajunDu-ReSustain.github.io/en/
  • Chinese: https://JiajunDu-ReSustain.github.io/zh/
  • Auto: https://JiajunDu-ReSustain.github.io/