Contributions are more than welcome! Don't hesitate to open an incomplete PR to ask for help!
The library currently supports Python versions 3.9+
If you don't have it already, install poetry
Then run
poetry install
tox
poetry run pytest tests
Copy one of the existing template, change the name and start modifying.
If you are looking for examples, you can run poetry run python docs/generate_examples.py
from the root folder.
The examples will be in:
docs/examples/examples_flat_default
docs/examples/examples_js_default
docs/examples/examples_md_default
docs/examples/examples_js_with_bagdes
The maintainer will take care of the following for you if you don't want to bother with it :)
Running with tox will ensure the code has been formatted with black
It is recommended to run black from your IDE or as a pre-commit hook
schema_doc.js
is not minified automatically, you are responsible for doing it yourself
The documentation is served by index.html
deployed on GitHub Pages automatically.
The documentation is using docsify to render.
- Run
poetry run python docs/generate_examples.py
. This will get all examples fromdocs/examples/cases
, render the resulting HTML and include it in the appropriate folders. - (optional) If you have added an example, add the file name (without
.json
), the display name and description indocs/cases_description.yaml
Execute following script from root dir of the repository
poetry run python docs/generate_examples.py
You can check it locally using:
npm i docsify-cli -g
docsify serve docs
Then you can check generated doc.