This repo contains the public documentation for Open mSupply, hosted on docs.msupply.foundation. Documentation is stored in markdown files and built using zola
This process has become slightly convoluted because zola to beginwith, but further because we use an outdated version of zola and installing it locally is no longer straightforward. We must use no more than version 17.2 of Zola, not 19.2 which is the latest as of writing.
Git is a tool for managing codebases, and our docs are managed like a codebase. Github Desktop is an app that makes 99% of what you need to do with git actually user friendly, rather than user nightmare. https://desktop.github.com/download/
In this webpage, near the top-ish right there is a green "Code" button. Click it and select "Open in Github Desktop".
Follow the prompts and let it clone the repo to your machine.
zola
file to /usr/local/bin/
(pressing cmd+shift+.
in a finder window will toggle showing hidden folders 🙂)zola
. It'll complain about malware, at which point you can allow it in settings
zola --version
and if it says 0.17.2 you're good to go!msupply_docs
directory on your machinezola serve
http://localhost:1111
, it'll say where exactly after you run the above command.Update and commit directly to main until a review process is defined :wink:
If you wish to serve images from a subdirectory rather than co-locating the content or storing in the static folder, you have to include an index file (_index.md
) for the subdirectory to be included in the build.
This repo is automatically deployed to github pages on push to main. The github action is defined in .github/workflows/static_deploy.yml
The deployment code uses zola 17.2