Skip to content

Commit 2a55e06

Browse files
[DOC] Add demo notebooks (#6)
* doc: Add demo notebooks * Workflow: Also add in test doc build
1 parent d1d2a2a commit 2a55e06

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
shell: bash -l {0}
4949
run: |
5050
set -e
51-
jupyter nbconvert --to notebook --execute notebooks/demo.ipynb --output=demo-output.ipynb --ExecutePreprocessor.allow_errors=False
51+
jupyter nbconvert --to notebook --execute notebooks/demo_instrument.ipynb --output=demo_instrument-output.ipynb --ExecutePreprocessor.allow_errors=True
52+
jupyter nbconvert --to notebook --execute notebooks/demo_mooring.ipynb --output=demo_mooring-output.ipynb --ExecutePreprocessor.allow_errors=True
5253
mv notebooks/*output.ipynb docs/source/
5354
pushd docs
5455
make clean html

.github/workflows/docs_deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
shell: bash -l {0}
4545
run: |
4646
set -e
47-
jupyter nbconvert --to notebook --execute notebooks/demo.ipynb --output=demo-output.ipynb --ExecutePreprocessor.allow_errors=True
47+
jupyter nbconvert --to notebook --execute notebooks/demo_instrument.ipynb --output=demo_instrument-output.ipynb --ExecutePreprocessor.allow_errors=True
48+
jupyter nbconvert --to notebook --execute notebooks/demo_mooring.ipynb --output=demo_mooring-output.ipynb --ExecutePreprocessor.allow_errors=True
4849
mv notebooks/*output.ipynb docs/source/
4950
pushd docs
5051
make clean html

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Contents
4848
:maxdepth: 1
4949
:caption: Examples
5050

51-
examples/rapid
52-
51+
demo_instrument-output.ipynb
52+
demo_mooring-output.ipynb
5353

5454
.. toctree::
5555
:maxdepth: 2

0 commit comments

Comments
 (0)