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 6bb73d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 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
16 changes: 4 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 @@ -28,17 +31,6 @@ python:
- method: pip
path: .
extra_requirements:
- gap
- 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

6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ deps =
-r docs/requirements.txt
allowlist_externals =
bash
extras = soap-bpnn, gap # these models is used in the documentation
extras = # these models are used in the documentation
gap
soap-bpnn
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 6bb73d6

Please sign in to comment.