Update for handling initial tag substitutions.
This commit is contained in:
parent
9b6aea946a
commit
5a1477fe19
|
|
@ -28,6 +28,7 @@ This repository provides a reusable foundation for sites like **evo-edu.org**, f
|
||||||
├── theme/ # Base layout, CSS, JS
|
├── theme/ # Base layout, CSS, JS
|
||||||
├── templates/ # Reusable HTML snippets
|
├── templates/ # Reusable HTML snippets
|
||||||
├── docs/ # Usage guide and examples
|
├── docs/ # Usage guide and examples
|
||||||
|
├── scripts/ # Language translation script and example glossary
|
||||||
└── LICENSE # MIT License
|
└── LICENSE # MIT License
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -41,7 +42,7 @@ This repository provides a reusable foundation for sites like **evo-edu.org**, f
|
||||||
|
|
||||||
## 📜 License
|
## 📜 License
|
||||||
MIT — free to use, modify, and redistribute.
|
MIT — free to use, modify, and redistribute.
|
||||||
|
x
|
||||||
## AI Disclosure
|
## AI Disclosure
|
||||||
|
|
||||||
This code and documentation was primarily provided by Alibaba's Qwen3 Max generative AI model with prompting by Wesley R. Elsberry.
|
This code and documentation was primarily provided by Alibaba's Qwen3 Max generative AI model with prompting by Wesley R. Elsberry.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,49 @@
|
||||||
# SciSiteForge Scripts
|
# 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.
|
This site framework supports offline multilingual translation using Llamafile.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@
|
||||||
<li><a href="/{{ lang }}/resources/">Resources</a></li>
|
<li><a href="/{{ lang }}/resources/">Resources</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
<!-- In base.html -->
|
||||||
<select id="lang-switch" onchange="switchLanguage(this.value)">
|
<select id="lang-switch" onchange="switchLanguage(this.value)">
|
||||||
{{#each languages}}
|
<!-- Languages will be inserted here by build script -->
|
||||||
<option value="{{code}}" {{#if (eq code ../lang)}}selected{{/if}}>{{name}}</option>
|
{{language_options}}
|
||||||
{{/each}}
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue