Skip to content

Commit

Permalink
add jupyter notebook support in docs, rotate model silliness
Browse files Browse the repository at this point in the history
  • Loading branch information
aerispaha committed Dec 4, 2024
1 parent 9dda51e commit ac4698e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.autosummary',
'myst_parser',
# 'myst_parser',
"IPython.sphinxext.ipython_console_highlighting",
"IPython.sphinxext.ipython_directive",
"myst_nb",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -59,7 +62,9 @@
#
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
'.md': 'myst-nb',
".ipynb": "myst-nb",
".myst": "myst-nb",
}

# The master toctree document.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Contents

reference/index
installing
usage
usage/index


Indices and tables
Expand Down
2 changes: 1 addition & 1 deletion docs/installing.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Installation
# Installation
Before installation, it's recommended to first activate a [virtualenv](https://github.com/pypa/virtualenv) to
not crowd your system's package library. If you don't use any of the dependencies listed above,
this step is less important. `swmmio` can be installed via pip in your command line:
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pydata-sphinx-theme==0.15.2
sphinx==7.2.6
sphinx_copybutton==0.5.2
ipython==8.23.0
myst-parser

myst-parser==3.0.1
myst-nb==1.1.2


# commonmark==0.9.1
Expand Down
10 changes: 10 additions & 0 deletions docs/usage.md → docs/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,13 @@ python -m swmmio -sp Model_Dir1 Model_Dir2 -cores_left=1
<p class="first admonition-title">Warning</p>
<p class="last">Using all cores for simultaneous model runs can put your machine's CPU usage at 100% for extended periods of time. This probably puts stress on your hardware. Use at your own risk.</p>
</div>

```{toctree}
---
hidden:
maxdepth: 2
---
index.md
hello.ipynb
silly.md
```
2 changes: 2 additions & 0 deletions docs/usage/silly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Get Silly
Let's get silly with some SWMM models

0 comments on commit ac4698e

Please sign in to comment.