Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ machine as described above. Then, build the documentation with
.. code-block:: bash

tox -e docs
# Optional: Prepend TRAIN=0 to skip training models when generating documentation
TRAIN=0 tox -e docs

You can then visualize the local documentation with your favorite browser using the
following command (or open the :file:`docs/build/html/index.html` file manually).
Expand Down
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ commands =

[testenv:docs]
description = builds the documentation with sphinx
passenv = TRAIN
deps =
-r docs/requirements.txt
cmake
Expand All @@ -165,10 +166,10 @@ extras = # these models are used in the documentation
commands =
python -m pip install --no-build-isolation sphericart torch-spex>=0.1,<0.2 wigners
# Run example and usage scripts.
bash -c "set -e && cd {toxinidir}/examples/basic_usage && bash usage.sh"
bash -c "set -e && cd {toxinidir}/examples/ase && bash train.sh"
bash -c "set -e && cd {toxinidir}/examples/llpr && bash train.sh"
bash -c "set -e && cd {toxinidir}/examples/zbl && bash train.sh"
bash -c 'if [ "{env:TRAIN:1}" != "0" ]; then set -e && cd {toxinidir}/examples/basic_usage && bash usage.sh; fi'
bash -c 'if [ "{env:TRAIN:1}" != "0" ]; then set -e && cd {toxinidir}/examples/ase && bash train.sh; fi'
bash -c 'if [ "{env:TRAIN:1}" != "0" ]; then set -e && cd {toxinidir}/examples/llpr && bash train.sh; fi'
bash -c 'if [ "{env:TRAIN:1}" != "0" ]; then set -e && cd {toxinidir}/examples/zbl && bash train.sh; fi'
sphinx-build \
{posargs:-E} \
--builder html \
Expand Down