Skip to content

Commit e8c3097

Browse files
committed
Including the tutorials
A first pass at including the tutorials on the website
1 parent 1ce0399 commit e8c3097

15 files changed

Lines changed: 74 additions & 2 deletions

.github/workflows/check_sphinx_build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
# https://github.com/actions/checkout
1313
- name: Checkout
1414
uses: actions/checkout@v2
15+
with:
16+
submodules: true
1517

1618
- name: Install Conda environment from environment.yml
1719
uses: mamba-org/provision-with-micromamba@v11

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11+
with:
12+
submodules: true
1113

1214
- name: Install Conda environment from environment.yml
1315
uses: mamba-org/provision-with-micromamba@v11

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "ohw22/tutorials"]
2+
path = ohw22/tutorials
3+
url = https://github.com/oceanhackweek/ohw-tutorials.git
4+
branch = OHW22

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

1515
live:
16-
sphinx-autobuild --ignore '_build/**/*' --ignore '**/.ipynb_checkpoints/*' --ignore 'jupyter_execute/**/*' -b dirhtml . _build/dirhtml/
16+
sphinx-autobuild --re-ignore '_build\/jupyter_execute\/.*' --ignore '_build/jupyter_execute/**/*' --ignore '**/.ipynb_checkpoints/*' --ignore 'jupyter_execute/**/*' -b dirhtml . _build/dirhtml/
1717

1818
.PHONY: help Makefile
1919

conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"README.md",
4242
"jupyter_execute/**/*",
4343
"_InstructionSiteUpdates.md",
44+
"_build/**"
4445
]
4546

4647
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
@@ -137,6 +138,13 @@
137138
# Temporarily stored as off until we fix it
138139
jupyter_execute_notebooks = "off" # TODO test
139140

141+
nb_custom_formats = {
142+
".Rmd": [
143+
"jupytext.reads",
144+
{"fmt": "Rmd"}
145+
]
146+
}
147+
140148

141149
def setup(app):
142150
app.add_css_file("custom.css")

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
# website/blog building
77
- myst-nb>=0.16.0
88
- sphinx>= 5.0.2
9+
- jupytext
910
# - sphinx-panels
1011
- ablog>=0.10.26
1112
- sphinx-autobuild>=2021.3.14

ohw22/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ schedule
107107
Global Virtual Event <global/index>
108108
Regional Satellite Events <satellites>
109109
Organizers <organizers>
110+
tutorials-index/index
110111
```
111112

112113
```{toctree}
@@ -116,7 +117,6 @@ Organizers <organizers>
116117
117118
Logistics <../resources/logistics/index>
118119
Preparation <../resources/prep/index>
119-
Tutorials <../resources/tutorials/getting_started>
120120
Projects <../resources/projects/index>
121121
```
122122

ohw22/schedule.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ For satellite event schedules, please check out their individual pages to see ho
1818
- [Australia](./australia/index.md)
1919
- [Brazil](./brazil/index.md)
2020
- [Español](./espanol/index.es.md)
21+
22+
```{toctree}
23+
:hidden:
24+
25+
monday
26+
```

ohw22/tutorials

Submodule tutorials added at 16dfe46
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Data access in Python
2+
3+
```{toctree}
4+
../tutorials/01-Tue/00-data-access-in-python/00-data-access.ipynb
5+
../tutorials/01-Tue/00-data-access-in-python/01-extras-https.ipynb
6+
../tutorials/01-Tue/00-data-access-in-python/02-extras-data-clean-up.ipynb
7+
../tutorials/01-Tue/00-data-access-in-python/03-extras-argopy-erddap.ipynb
8+
../tutorials/01-Tue/00-data-access-in-python/04-extras-erddapy_saildrone.ipynb
9+
```

0 commit comments

Comments
 (0)