Docs website source for kicad :D
git clone https://github.com/KiCad/kicad-doc.git kicad-doc
Build each required branch version as defined in _source/_data/versions.yml Take the entire resulting /build/ folder (literally the entire folder) and rename it to the <VERSION> folder here
Note
|
/kicad-doc-built/<VERSION>/
This needs to be automated later for "local development"
|
The "build" folder docs then need to be transformed and wrestled into their final form for the site.
To do this just run
rake process_files
Local verification of the container for the pod can be tested by building it, for exmaple with:
docker build -t kicadeda/kicad-docs-website .
And then it can be served locally by
docker run --rm -p 8081:8081 kicadeda/kicad-docs-website
To debug or inspect the stuff included in the image use
docker run --rm --entrypoint=ash -it kicadeda/kicad-docs-website
Or if the container is already running
docker exec -it <container id> ash
If editing the nginx config /etc/nginx/conf.d/default.conf you will want to execute
nginx -s reload
To reload the config without causing nginx to stop which would terminate the container