Update for handling initial tag substitutions.

This commit is contained in:
Wesley R. Elsberry 2025-10-15 09:17:24 -04:00
parent 9b6aea946a
commit 5a1477fe19
3 changed files with 49 additions and 5 deletions

View File

@ -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.

View File

@ -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.

View File

@ -20,10 +20,10 @@
<li><a href="/{{ lang }}/resources/">Resources</a></li>
</ul>
</nav>
<!-- In base.html -->
<select id="lang-switch" onchange="switchLanguage(this.value)">
{{#each languages}}
<option value="{{code}}" {{#if (eq code ../lang)}}selected{{/if}}>{{name}}</option>
{{/each}}
<!-- Languages will be inserted here by build script -->
{{language_options}}
</select>
</div>
</div>