Skip to content

Commit

Permalink
Try fixing rtd build
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCentauri committed Jun 7, 2024
1 parent ea6898a commit 3d7ce69
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 3 additions & 12 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 0 additions & 1 deletion examples/ase/train.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash

mtt train options.yaml

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3d7ce69

Please sign in to comment.