diff --git a/.gitignore b/.gitignore index c954a89a2..9d753dbad 100644 --- a/.gitignore +++ b/.gitignore @@ -166,8 +166,6 @@ cython_debug/ # model output directories outputs/ examples/basic_usage/*.xyz -!docs/static/*.pt -!examples/ase/*.pt # sphinx gallery docs/src/examples diff --git a/.readthedocs.yml b/.readthedocs.yml index 77976665f..dedfbbbed 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -11,6 +11,9 @@ build: tools: python: "3.12" rust: "1.75" + jobs: + pre_build: + - set -e && cd examples/ase && bash train.sh # Build documentation in the docs/ directory with Sphinx @@ -30,15 +33,3 @@ python: extra_requirements: - soap-bpnn - requirements: docs/requirements.txt - -build: - os: ubuntu-22.04 - tools: - python: "3.12" - commands: - - bash -c "set -e && cd examples/basic_usage && bash usage.sh" - - bash -c "set -e && cd examples/ase && bash train.sh" -sphinx: - builder: html - configuration: docs/src/conf.py - fail_on_warning: true diff --git a/examples/ase/train.sh b/examples/ase/train.sh index 340f267fd..f73b048e6 100755 --- a/examples/ase/train.sh +++ b/examples/ase/train.sh @@ -1,4 +1,3 @@ #!/bin/bash mtt train options.yaml - diff --git a/tox.ini b/tox.ini index dff062efb..a9d7c7f35 100644 --- a/tox.ini +++ b/tox.ini @@ -138,7 +138,7 @@ allowlist_externals = bash extras = soap-bpnn, gap # these models is used in the documentation commands = - # Run .sh scripts in the example folder. + # 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" sphinx-build \