Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .docs/requirements.rtd.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
nbsphinx
nbsphinx_link
Ipython
ipython
ipykernel
rtds_action
git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
git+https://github.com/modflowpy/pymake.git@master

20 changes: 13 additions & 7 deletions .github/workflows/rtd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ name: Read the Docs

on:
push:
branches: [master, develop]
branches: [ master, develop ]
pull_request:
branches: [develop]
branches: [ develop ]

jobs:

build:
name: rtd
rtd_build:
name: Read the Docs build
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
# check out repo
- name: Checkout flopy repo
uses: actions/checkout@v2

Expand Down Expand Up @@ -81,9 +80,16 @@ jobs:
path: |
.docs/_notebooks

# trigger rtd if previous job was successful
rtd:
name: Read the Docs trigger
needs: rtd_build
runs-on: ubuntu-latest

if:
github.repository_owner == 'modflowpy' && github.event_name == 'push'
steps:
- name: Trigger RTDs build on master and develop branches
if:
github.repository_owner == 'modflowpy' && github.event_name == 'push'
uses: dfm/rtds-action@v1.0.0
with:
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}
Expand Down