Skip to content

Commit e95fbca

Browse files
authored
Merge pull request #8 from danielballan/less-nested
Move `docs/recipes/` to `tutorials/`
2 parents ffc7683 + 99a89af commit e95fbca

File tree

7 files changed

+13
-15
lines changed

7 files changed

+13
-15
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ for a good overview of what this is like to use.
66

77
## Demo Links
88

9-
- **[Tutorials (a.k.a. recipes)](https://github.com/scientific-python/executable-tutorials/tree/notebooks/docs/recipes)** are written in MyST Markdown.
10-
- They are published in **[Jupyter notebook](https://github.com/scientific-python/executable-tutorials/tree/notebooks/docs/recipes)** format, on the `notebooks` branch of this repo, which can be used in Colab, Binder, etc.
11-
- Executed examples are **[published](https://scientific-python.github.io/exeuctable-tutorials/)** on a GitHub Pages site.
9+
- **[Tutorials](https://github.com/scientific-python/executable-tutorials/tree/main/tutorials)** are written in MyST Markdown.
10+
- Tutorials can be easily edited as notebooks in JupyterLab.
11+
- Executed tutorials are **[published](https://scientific-python.github.io/exeuctable-tutorials/)** on a GitHub Pages site.
1212
- **[Jupyter Lite (beta)](https://scientific-python.github.io/executable-tutorials/jupyterlite/lab/index.html)** (works only on the basic executable example so far, missing dependencies for others)
1313
- **[Binder](https://mybinder.org/v2/gh/scientific-python/executable-tutorials/notebooks)**
1414

@@ -24,7 +24,7 @@ for a good overview of what this is like to use.
2424

2525
## To Do
2626

27-
- Test notebook execution _of changed recipes only_ in CI on PR.
27+
- Test execution _of changed tutorials only_ in CI on PR.
2828
- Set up devcontainer.
2929
- Add example with additional dependencies.
3030

docs/contributing.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@ git clone git@github.com:scientific-python/executable-tutorials
1515

1616
## Overview
1717

18-
Each "recipe" is a directory under `docs/recipes/`. It may contain one or more
19-
Markdown (`.md`) files with a mixture of narrative text and code. Each recipe
18+
Each tutorial is a directory under `tutorials/`. It may contain one or more
19+
Markdown (`.md`) files with a mixture of narrative text and code. Each tutorial
2020
directory may also contain supporting data files, scripts, illustrations,
2121
solutions to exercises, etc.
2222

2323
```none
24-
$ tree docs/
25-
docs/
24+
$ tree .
2625
├── conf.py
2726
├── contributing.md
2827
├── index.md
29-
├── recipes
28+
├── tutorials
3029
│   ├── executable
3130
│   │   ├── basics.md
3231
│   ├── matplotlib
@@ -78,11 +77,11 @@ Open `build/html/index.html` in a web browser.
7877
pixi run jupyter lab
7978
```
8079

81-
In the file browser, locate one of the examples under `docs/recipes/`. Double
80+
In the file browser, locate one of the examples under `tutorials/`. Double
8281
click to open.
8382

84-
Files like `docs/recipes/static/static.md` are plain Markdown files. Files like
85-
`docs/recipes/executable/basics.md` have a YAML header which enables the
83+
Files like `tutorials/static/static.md` are plain Markdown files. Files like
84+
`tutorials/executable/basics.md` have a YAML header which enables the
8685
documentation build system to convert them to Jupyter notebooks and execute
8786
them:
8887

@@ -120,7 +119,7 @@ The script `test.sh` runs files with executable code from top to bottom and
120119
prints any unexpected tracebacks.
121120

122121
```
123-
pixi run ./test.sh docs/recipes/executable/basics.md
122+
pixi run ./test.sh tutorials/executable/basics.md
124123
```
125124

126125
`````{note}
@@ -159,5 +158,4 @@ Once changes are merged to the `main` branch, the GitHub Actions [Publish workfl
159158
where users need to be handed Jupyter Notebook files directly, such as Google
160159
Colab.
161160

162-
[notebooks-branch]: https://github.com/scientific-python/executable-tutorials/tree/notebooks/docs/recipes
163161
[Publish workflow]: https://github.com/scientific-python/executable-tutorials/actions/workflows/cd.yml
File renamed without changes.

docs/recipes/static/static.md renamed to tutorials/static/static.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ class Thing:
1111
thing = Thing(3)
1212
```
1313

14-
Here is an image that is bundled with the recipe.
14+
Here is an image that is bundled with the tutorial.
1515

1616
![Aerial photo on NSLS-II at Brookhaven National Laboratory](./nsls2-aerial.jpg)

0 commit comments

Comments
 (0)