Skip to content

Commit

Permalink
Merge pull request #37 from pyiron/docs_notebooks
Browse files Browse the repository at this point in the history
Add example notebooks to docs
  • Loading branch information
liamhuber authored Jan 15, 2024
2 parents 96afa88 + 0ba5375 commit 9f51a6f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .ci_support/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ channels:
- conda-forge
dependencies:
- myst-parser
- sphinxcontrib-mermaid
- sphinxcontrib-mermaid
- sphinx-gallery
- sphinx-rtd-theme
Binary file added docs/_static/pyiron-logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'sphinxcontrib.mermaid',
'myst_parser',
'nbsphinx',
'sphinx_gallery.load_style',
'sphinx.ext.mathjax',
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
Expand All @@ -51,6 +52,11 @@
mermaid_params = ['-p' 'puppeteer-config.json']
mermaid_output_format = "png"

nbsphinx_thumbnails = {
'source/notebooks/example': "_static/pyiron-logo-dark.png",
'source/notebooks/pizza': "_static/pyiron-logo-dark.png",
}

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
2 changes: 2 additions & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ dependencies:
- pint =0.23
- myst-parser
- sphinxcontrib-mermaid
- sphinx-gallery
- sphinx-rtd-theme
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
.. toctree::
:hidden:

source/examples.rst
source/indices.rst
11 changes: 11 additions & 0 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _examples:


Example Notebooks
=================

.. nbgallery::
:maxdepth: 2
:glob:

notebooks/*
2 changes: 1 addition & 1 deletion docs/source/indices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ API Documentation


.. toctree::
:maxdepth:2
:maxdepth: 2

0 comments on commit 9f51a6f

Please sign in to comment.