Repository URL to install this package:
|
Version:
0.1.dev51+ga4c683e ▾
|
kiara-plugin.documentation
/
METADATA
|
|---|
Metadata-Version: 2.1
Name: kiara-plugin.documentation
Version: 0.1.dev51+ga4c683e
Summary: Kiara user documentation.
Author-email: Markus Binsteiner <markus@frkl.io>
License: MPL-2.0
Project-URL: homepage, https://github.com/DHARPA-Project/kiara_plugin.documentation
Project-URL: documentation, https://DHARPA-Project.github.io/kiara_plugin.documentation
Project-URL: repository, https://github.com/DHARPA-Project/kiara_plugin.documentation
Keywords: kiara
Classifier: Framework :: Django
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS.md
Requires-Dist: kiara (>=0.4.22)
Requires-Dist: kiara-plugin.network-analysis (>=0.4.5)
Requires-Dist: icecream (>=2.1.0)
Requires-Dist: mike (>=1.0.1)
Requires-Dist: mkdocs-awesome-pages-plugin (>=2.5.0)
Requires-Dist: mkdocs-literate-nav (>=0.4.0)
Requires-Dist: mkdocs-macros-plugin (>=0.7.0)
Requires-Dist: mkdocs-material (>=8.0.0)
Requires-Dist: mkdocs-section-index (>0.3.0)
Requires-Dist: mkdocstrings-python-legacy
Requires-Dist: mknotebooks (>=0.7.0)
Requires-Dist: mkdocs-gen-files (>=0.3.1)
Provides-Extra: all
Provides-Extra: all_dev
Provides-Extra: dev_all
Requires-Dist: kiara[dev_all] ; extra == 'dev_all'
Provides-Extra: dev_documentation
Requires-Dist: kiara[dev_documentation] ; extra == 'dev_documentation'
Provides-Extra: dev_testing
Requires-Dist: kiara[dev_testing] ; extra == 'dev_testing'
Requires-Dist: types-setuptools ; extra == 'dev_testing'
Requires-Dist: sqlalchemy-stubs ; extra == 'dev_testing'
Provides-Extra: dev_utils
Requires-Dist: kiara[dev_utils] ; extra == 'dev_utils'
[](https://pypi.python.org/pypi/kiara.documentation/)
[](https://pypi.python.org/pypi/kiara.documentation/)
[](https://pypi.python.org/pypi/kiara.documentation/)
[](https://actions-badge.atrox.dev/DHARPA-Project/kiara.documentation/goto?ref=develop)
[](https://coveralls.io/github/DHARPA-Project/kiara.documentation?branch=develop)
[](https://github.com/ambv/black)
# [**kiara**](https://dharpa.org/kiara.documentation) plugin: (documentation)
Kiara user documentation.
- Documentation: [https://DHARPA-Project.github.io/kiara.documentation](https://DHARPA-Project.github.io/kiara.documentation)
- Code: [https://github.com/DHARPA-Project/kiara.documentation](https://github.com/DHARPA-Project/kiara.documentation)
## Description
TODO
## Development
### Requirements
- Python (version >= 3.8)
- conda
- git
### Prepare development environment
### Using conda (recommended)
```
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`.
## Check out the source code
First, fork the [kiara.documentation](https://github.com/DHARPA-Project/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
```
## Install the kiara documentation package into it
```
cd kiara.documentation
pip install -e '.[dev_utils]'
```
## Install some pre-commit check tooling (optional)
This step is optional, but helps with keeping the code clean and CI from failing. By installing [pre-commit](https://pre-commit.com/) 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/
#### Try it out
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:
```console
kiara doc serve
...
...
```
This will create the documentation, and run a webserver on [http://localhost:8000](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.
### ``make`` targets (Linux & Mac OS X)
- ``init``: init development project (install project & dev dependencies into virtualenv, as well as pre-commit git hook)
- ``update-dependencies``: update development dependencies (mainly the core ``kiara`` package from git)
- ``flake``: run *flake8* tests
- ``mypy``: run mypy tests
- ``test``: run unit tests
- ``docs``: create static documentation pages (under ``build/site``)
- ``serve-docs``: serve documentation pages (incl. auto-reload) for getting direct feedback when working on documentation
- ``clean``: clean build directories
For details (and other, minor targets), check the ``Makefile``.
### Running tests
``` console
> make test
# or
> make coverage
```
## Copyright & license
This project is MPL v2.0 licensed, for the license text please check the [LICENSE](/LICENSE) file in this repository.