Source of the Open Firenet website, served by GitHub Pages at https://openfirenet.github.io.
- Page contents are in
src/<page>.html; the common header, navigation and footer are insrc/layout.html. - The style is in
assets/style.css, the images inassets/img/. - After a change, run
python3 build.py(Python standard library only) and commit both the source and the generated pages at the root.python3 build.py --checktells whether the generated pages are up to date. - The API reference page is generated from
src/openapi.json, a copy of the firmware'sopenapi.yaml. After a change of the API, refresh it withpython3 build.py --sync ../open-firenet/openapi.yaml(needs PyYAML) and commit the result. - To add a page: create
src/<name>.htmlstarting with the two comment lines (title,description) and add it toPAGESinbuild.py, and toNAVif it must appear in the navigation bar.
Preview locally with python3 -m http.server and open http://localhost:8000.
GitHub Pages serves the files as they are (.nojekyll): nothing is built on GitHub's side.