diff --git a/README.md b/README.md index 5c1cdb9..088ccb2 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ This repository provides a reusable foundation for sites like **evo-edu.org**, f ├── theme/ # Base layout, CSS, JS ├── templates/ # Reusable HTML snippets ├── docs/ # Usage guide and examples +├── scripts/ # Language translation script and example glossary └── LICENSE # MIT License ``` @@ -41,7 +42,7 @@ This repository provides a reusable foundation for sites like **evo-edu.org**, f ## 📜 License MIT — free to use, modify, and redistribute. - +x ## AI Disclosure This code and documentation was primarily provided by Alibaba's Qwen3 Max generative AI model with prompting by Wesley R. Elsberry. diff --git a/scripts/README.md b/scripts/README.md index f843d4e..dca8427 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,6 +1,49 @@ # SciSiteForge Scripts -## 🛠️ Build & Translate +## 🛠️ Build + +🧪 Usage Example + + Initialize config: + bash + + + + +cd domain_di/framework +python build.py --init + → creates site.json + + +Build English site: + + + python build.py --config site.json --output ../content/en/ + + + +Build Spanish site (after editing site.json to set "lang": "es"): +bash + + + + python build.py --config site-es.json --output ../content/es/ + + + + + +### Benefits + + - No runtime dependencies: Output is pure static HTML/CSS/JS + - Reusable: Same framework for any educational site + - Customizable: Each project has its own site.json + - Automation-friendly: Integrate into CI/CD or translation pipelines + + + + +## Translate This site framework supports offline multilingual translation using Llamafile. diff --git a/theme/base.html b/theme/base.html index 25b3a02..3f3191d 100644 --- a/theme/base.html +++ b/theme/base.html @@ -20,10 +20,10 @@