Skip to content

Commit

Permalink
Move examples to docs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulcollenteur committed Feb 15, 2024
1 parent 7b4d4b3 commit 5654889
Show file tree
Hide file tree
Showing 34 changed files with 734 additions and 480 deletions.
16 changes: 12 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
#
import os
import sys
from datetime import date

import requests

year = date.today().strftime("%Y")

sys.path.insert(0, os.path.abspath('.'))

# Get a Bibtex reference file from the Zotero group for referencing
Expand All @@ -39,7 +43,7 @@
# -- Project information -----------------------------------------------------

project = 'pyet'
copyright = '2021, M. Vremec, R.A. Collenteur'
copyright = '{}, M. Vremec, R.A. Collenteur'.format(year)
author = 'M. Vremec, R.A. Collenteur'

# The full version, including alpha/beta/rc tags
Expand All @@ -62,9 +66,8 @@
'sphinx.ext.viewcode',
'IPython.sphinxext.ipython_console_highlighting', # lowercase didn't work
'sphinx.ext.autosectionlabel',
'nbsphinx',
'nbsphinx_link',
'sphinxcontrib.bibtex'
'sphinxcontrib.bibtex',
'myst_nb',
]

# Create custom bracket style with round brackets
Expand Down Expand Up @@ -140,3 +143,8 @@ class MyReferenceStyle(AuthorYearReferenceStyle):
"python": ("https://docs.python.org/3/", None),
"xarray": ("https://docs.xarray.dev/en/stable/", None),
}

# -- myst_nb options ------------------------------------------------------------------

nb_execution_allow_errors = True # Allow errors in notebooks, to see the error online
nb_execution_mode = "auto"
403 changes: 403 additions & 0 deletions docs/examples/01_example_zamg.ipynb

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions docs/examples/02_example_zamg_netcdf.ipynb

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
201 changes: 0 additions & 201 deletions examples/01_example_zamg.ipynb

This file was deleted.

Loading

0 comments on commit 5654889

Please sign in to comment.