Build the documentation#
Build the documentation with jupyter-book#
Inside a poetry shell or using the poetry run command, you can build the
documentation with:
poetry run jupyter-book build docs/
Clean up the documentation build#
To clean up all the documentation build, you can use:
poetry run jupyter-book clean --all docs/
--allwill remove the_builddirectory and the.jupyter_cachedirectory.
In alternative, you can remove the html or latex build directories with
these options:
--htmlwill remove thehtmldirectory only.--latexwill remove thelatexdirectory only.
Publish the documentation on GH pages#
After a successful build, you can publish the documentation on GitHub pages
using ghp-import and by selecting the html build directory:
poetry run ghp-import -n -p -f docs/_build/html
-nInclude a.nojekyllfile in the branch.-pPush the branch to origin/{branch} after committing.-fForce the push.