This repo holds the doc for calaos. It is based on Hugo with the theme Learn
The easiest way to contribute is to use Visual Studio Code and open this repo. You will need a running Docker installation to let VSCode use the existing devcontainer (Click on Reopen in container).
There is also a Task: F1 > Tasks: Run Task > hugo > hugo: Serve site. You can then open a local running doc website http://localhost:1313 that is refreshed automatically when you edit pages.
To create new content, you need to use the existing templates. There are 2 types:
- Chapters: Used for pages that are chapters title
- Normal pages: Normal pages for content
In a terminal inside VSCode:
hugo new --kind chapter <subfolder>/_index.fr.md
hugo new --kind chapter <subfolder>/_index.en.md
hugo new <subfolder>/some-content.fr.md
hugo new <subfolder>/some-content.en.md
Don't forget to create both language files
- Locally: the devcontainer (
.devcontainer/devcontainer.json) installs Hugo extended through thehugodevcontainer feature; nothing is installed on the host. Preview withhugo server. - CI (
.github/workflows/build.yml) usespeaceiris/actions-hugowith Hugolatest, extended, and runshugo --minify. The site must therefore build with the newest Hugo, not a pinned one. - The
Learntheme is vendored inthemes/hugo-theme-learn/, not a submodule: patch it in place and expect no upstream update. Mermaid is loaded from a pinned CDN URL, version 8.8.0 (hugo.toml:23); newer Mermaid syntax does not render.
tools/screenshots/: regenerates the climate screenshots ofcontent/calaos_installer/devices/images/from one invented house (web app, mobile, remote UI, installer); see its README for each command and the commit it was last run against.tools/examples/: checks the example projects ofstatic/examples/climat/(calaos_server loads them, the installer opens and re-saves them unchanged) andzip.py --checkfails when a zip no longer matches its folder; runzip.pyafter editing an example.- Cross-repo notes: calaos_base docs/18_stack_notes.md (in French).