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
conda install -c conda-forge mamba # this is optional, but makes everything install related much faster, if you don't use it, replace 'mamba' with 'conda' below
mamba install -c conda-forge -c dharpa kiara kiara_plugin.core_types kiara_plugin.tabular kiara_plugin.network_analysis
!!! note
For Linux, if you experience errors, you might or might not have to also execute: mamba update -c conda-forge libstdcxx-ng
.
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 '.[all_dev]'
This step is optional, but helps with keeping the code clean and CI from failing. By installing pre-commit hooks like here,
whenever you do a git commit
in this repo, a series of checks and cleanup tasks are run, until everything is in a state
that will hopefully make Github Actions not complain when you push your changes.
pre-commit install
pre-commit install --hook-type commit-msg
In addition to some Python-specific checks and cleanup tasks, this will also check your commit message so it's in line with the suggested format: https://www.conventionalcommits.org/en/v1.0.0/
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:https://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.
init
: init development project (install project & dev dependencies into virtualenv, as well as pre-commit git hook)update-dependencies
: update development dependencies (mainly the corekiara
package from git)flake
: run flake8 testsmypy
: run mypy teststest
: run unit testsdocs
: create static documentation pages (underbuild/site
)serve-docs
: serve documentation pages (incl. auto-reload) for getting direct feedback when working on documentationclean
: clean build directories
For details (and other, minor targets), check the Makefile
.
> make test
# or
> make coverage
This project is MPL v2.0 licensed, for the license text please check the LICENSE file in this repository.