Documentation for maintaining the repository.
cd {repo-root}
# ensure package is build first
rez-build -i
rez-test pythonningRunning a specific tests:
# only run the tests for python 3.9 defined in the package.py
rez-test pythonning unit-39cd {repo-root}
pip install .[test]
pytest ./testscd {repo-root}
# ensure package is built first (necessary for autodoc)
rez-build -i
rez env sphinx furo pythonning
python ./doc/build-doc.py -aThe documentation can then be found in ./doc/build/html/index.html
Note
You only need to rez-build/rez-env when you change python file of pythonning.
You can just successively call build-doc.py when only the doc is modified.
Deploy the documentation to GitHub pages.
Important
At Knot this process is automated during rez-release and does not need to be executed manually.
You must:
- have
gitinstalled on your system - be on main branch
- have no uncommited changes
- have pushed the branch
cd .
# ensure package is built first (necessary for autodoc)
rez-build -i
rez-env sphinx furo pythonning
python ./doc/publish-doc.py