Skip to content

Commit

Permalink
ci(docs): readthedocs ci (#87)
Browse files Browse the repository at this point in the history
* Revert back to expanded workflow
---------
Co-authored-by: Mario Santa Cruz <[email protected]>
  • Loading branch information
HCookie authored Jan 23, 2025
1 parent 37e2647 commit 6907f21
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/readthedocs-pr-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,26 @@ permissions:
pull-requests: write

jobs:
documentation:
graphs-documentation:
if: contains(github.event.pull_request.files.*.path, 'graphs/docs/')
runs-on: ubuntu-latest
strategy:
matrix:
project:
- { path: 'graphs/docs/', slug: 'anemoi-graphs' }
- { path: 'models/docs/', slug: 'anemoi-models' }
- { path: 'training/docs/', slug: 'anemoi-training' }
if: contains(github.event.pull_request.files.*.path, matrix.project.path)
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: ${{ matrix.project.slug }}
project-slug: "anemoi-graphs"

models-documentation:
if: contains(github.event.pull_request.files.*.path, 'models/docs/')
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "anemoi-models"

training-documentation:
if: contains(github.event.pull_request.files.*.path, 'training/docs/')
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "anemoi-training"
1 change: 0 additions & 1 deletion graphs/docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sphinx
sphinx_rtd_theme
nbsphinx
sphinx_argparse

# Also requires `brew install pandoc` on Mac
pandoc

Expand Down

0 comments on commit 6907f21

Please sign in to comment.