kiara plugin: (documentation)
Kiara user documentation.
- Documentation: https://DHARPA-Project.github.io/kiara.documentation
- Code: https://github.com/DHARPA-Project/kiara.documentation
TODO
- Python (version >= 3.8)
- conda
- git
conda create -n kiara_documentation python=3.9
conda activate kiara_documentation
python -m venv .venv
.venv/bin/activate
First, fork the kiara.documentation repository into your personal Github account.
Then, use the resulting url (in my case: https://github.com/makkus/kiara.documentation.git) to clone the repository locally:
https://github.com/<YOUR_FORKED_GITHUB_ID>/kiara.documentation
cd kiara.documentation
pip install -e '.[dev_utils]'
pip install 'git+https://github.com/cosminbasca/asciinet.git#egg=asciinet&subdirectory=pyasciinet'
This is not strictly necessary, documentation generation won't fail without it, but any ascii-graphs won't be generated. This also needs Java to be available on your machine.
If you followed the instructions above, you should see an additional doc
subcommand when doing a kiara --help
. Check out the available commands by using the --help
flag.
The main command to use is serve
, which builds and serves the current documenation website:
kiara doc serve
...
...
This will create the documentation, and run a webserver on http://localhost:8000 where you can preview the generated documentation site. The first startup will take a bit, because some of the pages use dynamically generated results to prevent the documentation becoming out-of-date easily (and as a test against regressions). Those results are cached though, so the 2nd time around startup should be quicker.
The 'serve' command will watch documents under docs
, if any of them is changed, it will auto-create the changed documentation page,
and reload the browser(s) that are viewing it.
Another important command is cache clear
, which cleares the build cache of the dynamic commands that were executed while building the page for the first time.
This project is MPL v2.0 licensed, for the license text please check the LICENSE file in this repository.