Skip to content

Commit

Permalink
setup notebook rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbuntemeyer committed Jul 2, 2023
1 parent 80d44ef commit af01c81
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ci/requirements/docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: py-cordex-docs

channels:
- conda-forge
- nodefaults

dependencies:
- python=3.10
- pint-xarray
- matplotlib-base
- xarray
- cf_xarray
- nbconvert
Expand All @@ -20,8 +18,9 @@ dependencies:
- pooch
- pyproj
- sphinx
- pydata-sphinx-theme #==0.8.1 # https://github.com/pydata/pydata-sphinx-theme/issues/1098
- pydata-sphinx-theme
- sphinx-book-theme>=0.3.3
- sphinx-autosummary-accessors
- pip:
- sphinxcontrib-mockautodoc
- myst_nb
9 changes: 8 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

.. toctree::
:maxdepth: 2
:caption: Contents:
:hidden:
:caption: Tutorial

notebooks/introduction

.. toctree::
:maxdepth: 2
:caption: Contents

installation
usage
Expand Down
43 changes: 43 additions & 0 deletions docs/notebooks/introduction.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "0e348c73-a223-47e6-a056-b3af2be49631",
"metadata": {},
"source": [
"# Introduction"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3ad4b462-d7ae-48ae-89b1-a9da60d64a43",
"metadata": {},
"outputs": [],
"source": [
"1 + 2"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:pyremo-test]",
"language": "python",
"name": "conda-env-pyremo-test-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

0 comments on commit af01c81

Please sign in to comment.