From 5136fb9264748dedc2f5cb4e37776b219a771840 Mon Sep 17 00:00:00 2001 From: Philip Loche Date: Fri, 7 Jun 2024 14:08:32 +0200 Subject: [PATCH] Try fixing rtd build --- .gitignore | 2 -- .readthedocs.yml | 17 +++++------------ examples/ase/train.sh | 1 - tox.ini | 2 +- 4 files changed, 6 insertions(+), 16 deletions(-) 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..7fac95019 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -11,6 +11,11 @@ build: tools: python: "3.12" rust: "1.75" + jobs: + pre_install: + - set -e + - cd examples/ase + - bash train.sh # Build documentation in the docs/ directory with Sphinx @@ -30,15 +35,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 \