-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from danielballan/first-recipes
Add 'Hello Python and Jupyter'
- Loading branch information
Showing
18 changed files
with
365 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,24 +28,25 @@ git clone [email protected]:bluesky/bluesky-cookbook | |
|
||
## Overview | ||
|
||
Each "recipe" is a directory under `docs/recipes/tutorials/` or | ||
`docs/recipes/how-to/`. It may contain one or more Markdown (`.md`) files with | ||
a mixture of narrative text and code. Each recipe directory may also contain | ||
supporting data files, scripts, illustrations, solutions to exercises, etc. | ||
Each "recipe" is a directory under `docs/tutorials/` or `docs/how-to/`. It may | ||
contain one or more Markdown (`.md`) files with a mixture of narrative text and | ||
code. Each recipe directory may also contain supporting data files, scripts, | ||
illustrations, solutions to exercises, etc. | ||
|
||
```none | ||
$ tree docs/ | ||
docs/ | ||
├── conf.py | ||
├── contributing.md | ||
├── index.md | ||
├── recipes | ||
│ ├── tutorials | ||
│ │ ├── getting-started | ||
│ │ │ └── hello-bluesky.md | ||
│ │ ├── flyscanning | ||
│ │ │ └── basic-demo.md | ||
│ ├── how-to | ||
├── tutorials | ||
│ ├── getting-started | ||
│ │ └── hello-bluesky.md | ||
│ ├── flyscanning | ||
│ │ └── basic-demo.md | ||
├── how-to | ||
│ ├── deploy | ||
│ │ └── single-process.md | ||
... | ||
``` | ||
|
||
|
@@ -90,13 +91,12 @@ Open `build/html/index.html` in a web browser. | |
pixi run jupyter lab | ||
``` | ||
|
||
In the file browser, locate one of the examples under `docs/recipes/`. Double | ||
click to open. | ||
In the file browser, locate one of the examples under `docs/tutorials/` or | ||
`docs/how-to/`. Double click to open the directory. | ||
|
||
Files like `docs/recipes/static/static.md` are plain Markdown files. Files like | ||
`docs/recipes/executable/basics.md` have a YAML header which enables the | ||
documentation build system to convert them to Jupyter notebooks and execute | ||
them: | ||
Files like `docs/tutorial/getting-started/hello-bluesky.md` have a YAML header | ||
which enables the documentation build system to convert them to Jupyter | ||
notebooks and execute them: | ||
|
||
```yaml | ||
--- | ||
|
@@ -132,7 +132,7 @@ The script `test.sh` runs files with executable code from top to bottom and | |
prints any unexpected tracebacks. | ||
|
||
``` | ||
pixi run ./test.sh docs/recipes/executable/basics.md | ||
pixi run ./test.sh docs/tutorials/getting-started/hello-bluesky.md | ||
``` | ||
|
||
`````{note} | ||
|
@@ -171,5 +171,5 @@ Once changes are merged to the `main` branch, the GitHub Actions [Publish workfl | |
where users need to be handed Jupyter Notebook files directly, such as Google | ||
Colab. | ||
|
||
[notebooks-branch]: https://github.com/bluesky/bluesky-cookbook/tree/notebooks/docs/recipes | ||
[notebooks-branch]: https://github.com/bluesky/bluesky-cookbook/tree/notebooks/ | ||
[Publish workflow]: https://github.com/bluesky/bluesky-cookbook/actions/workflows/cd.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# How-to Guides | ||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
how-to/example/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Example | ||
|
||
```{toctree} | ||
:glob: | ||
example/* | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# Bluesky Cookbook | ||
|
||
```{toctree} | ||
:maxdepth: 1 | ||
:glob: | ||
recipes/tutorials.md | ||
recipes/how-to.md | ||
:maxdepth: 2 | ||
tutorials | ||
how-to | ||
glossary | ||
contributing | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Tutorials | ||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
:glob: | ||
tutorials/getting-started/ | ||
tutorials/flyscanning/ | ||
``` | ||
|
||
Test 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Flyscanning | ||
|
||
```{toctree} | ||
:glob: | ||
flyscanning/* | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
jupytext: | ||
text_representation: | ||
extension: .md | ||
format_name: myst | ||
format_version: 0.13 | ||
jupytext_version: 1.16.4 | ||
kernelspec: | ||
display_name: Python 3 (ipykernel) | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
# Flyscanning Basics | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Getting Started | ||
|
||
```{toctree} | ||
:glob: | ||
getting-started/* | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
jupytext: | ||
text_representation: | ||
extension: .md | ||
format_name: myst | ||
format_version: 0.13 | ||
jupytext_version: 1.16.4 | ||
kernelspec: | ||
display_name: Python 3 (ipykernel) | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
# Hello Bluesky | ||
|
||
TODO |
Oops, something went wrong.