Skip to content

Commit

Permalink
Add notebooks to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfulton9 committed Jul 19, 2024
1 parent c047e5c commit d0452a7
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ build:
os: ubuntu-22.04
tools:
python: "3.11"
apt_packages:
- pandoc

sphinx:
configuration: docs/source/conf.py
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
myst_parser
pydata_sphinx_theme
nbsphinx
nbsphinx-link
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = ["myst_parser"]
extensions = ["myst_parser", "nbsphinx", "nbsphinx_link"]
myst_enable_extensions = ["colon_fence"]

templates_path = ["_templates"]
Expand Down
11 changes: 10 additions & 1 deletion docs/source/contributors/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,16 @@ refresh your browser tab.
## Building documentation

The `./scripts/install.sh` should automatically install the documentation
dependencies. To build the documentation locally, run
dependencies. You will need to install [pandoc](https://pandoc.org/) as well. You can install [pandoc from the conda-forge channel](https://anaconda.org/conda-forge/pandoc):

```
conda install -c conda-forge pandoc
```

Otherwise have a look at pandoc's [installation instructions](https://pandoc.org/installing.html).


To build the documentation locally, run

```
cd docs/
Expand Down
3 changes: 3 additions & 0 deletions docs/source/examples/code.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/code.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/examples/commands.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/commands.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/examples/errors.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/errors.ipynb"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../../examples/generate/Creating Random Arrays with Numpy.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/examples/generate/Introduction to Sets.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../../examples/generate/Introduction to Sets.ipynb"
}
9 changes: 9 additions & 0 deletions docs/source/examples/generate/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generate

```{toctree}
---
maxdepth: 1
---
Creating Random Arrays with Numpy
Introduction to Sets
```
3 changes: 3 additions & 0 deletions docs/source/examples/images.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/images.ipynb"
}
14 changes: 14 additions & 0 deletions docs/source/examples/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Examples

```{toctree}
---
maxdepth: 1
---
code
commands
errors
images
magics
sagemaker
generate/index
```
3 changes: 3 additions & 0 deletions docs/source/examples/magics.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/magics.ipynb"
}
Empty file.
3 changes: 3 additions & 0 deletions docs/source/examples/sagemaker.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/sagemaker.ipynb"
}
1 change: 1 addition & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ maxdepth: 2
users/index
contributors/index
developers/index
examples/index
```

0 comments on commit d0452a7

Please sign in to comment.