Skip to content

Commit c45052b

Browse files
preparing for future editions
1 parent 7cc1777 commit c45052b

File tree

5 files changed

+105
-48
lines changed

5 files changed

+105
-48
lines changed
126 KB
Loading

docs/javascripts/mermaid-init.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
document.addEventListener("DOMContentLoaded", function() {
2+
mermaid.initialize({ startOnLoad: true });
3+
});

docs/part3/ch12_ca_scratch.ipynb

Lines changed: 41 additions & 23 deletions
Large diffs are not rendered by default.

docs/part3/ch16_dissmodel.ipynb

Lines changed: 54 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
11
{
2-
"nbformat": 4,
3-
"nbformat_minor": 5,
4-
"metadata": {
5-
"kernelspec": {
6-
"display_name": "Python 3",
7-
"language": "python",
8-
"name": "python3"
9-
},
10-
"language_info": {
11-
"name": "python",
12-
"version": "3.11.0"
13-
},
14-
"book_metadata": {
15-
"part": 3,
16-
"chapter": 16,
17-
"title": "Introducing DisSModel",
18-
"path": "part3/ch16_dissmodel.ipynb"
19-
}
20-
},
212
"cells": [
223
{
234
"cell_type": "markdown",
@@ -56,7 +37,10 @@
5637
"metadata": {},
5738
"outputs": [],
5839
"source": [
59-
"# Standard imports — add chapter-specific imports below\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\n"
40+
"# Standard imports — add chapter-specific imports below\n",
41+
"import numpy as np\n",
42+
"import pandas as pd\n",
43+
"import matplotlib.pyplot as plt\n"
6044
]
6145
},
6246
{
@@ -81,7 +65,7 @@
8165
"cell_type": "markdown",
8266
"metadata": {},
8367
"source": [
84-
"## Class Hierarchy: SpatialModel and RasterModel\n",
68+
"## Class Hierarchy: SpatialModel and RasterModel \n",
8569
"\n",
8670
"*TODO: write content.*\n"
8771
]
@@ -95,6 +79,31 @@
9579
"# Code for section: Class Hierarchy: SpatialModel and RasterModel\n"
9680
]
9781
},
82+
{
83+
"cell_type": "markdown",
84+
"id": "1ec593a8",
85+
"metadata": {},
86+
"source": [
87+
"ola\n",
88+
"\n",
89+
"<div class=\"mermaid\">\n",
90+
"graph TD\n",
91+
" A[Notebook] --> B[MkDocs]\n",
92+
"</div>"
93+
]
94+
},
95+
{
96+
"cell_type": "markdown",
97+
"id": "5451f943",
98+
"metadata": {},
99+
"source": [
100+
"<div class=\"mermaid\">\n",
101+
"graph LR\n",
102+
" A[GeoDataFrame] --> B[SpatialModel]\n",
103+
" C[RasterBackend] --> D[RasterModel]\n",
104+
"</div>"
105+
]
106+
},
98107
{
99108
"cell_type": "markdown",
100109
"metadata": {},
@@ -177,7 +186,9 @@
177186
"\n",
178187
"### Key concepts introduced\n",
179188
"\n",
180-
"- TODO\n- TODO\n- TODO\n"
189+
"- TODO\n",
190+
"- TODO\n",
191+
"- TODO\n"
181192
]
182193
},
183194
{
@@ -189,5 +200,24 @@
189200
"- *TODO: add references.*\n"
190201
]
191202
}
192-
]
193-
}
203+
],
204+
"metadata": {
205+
"book_metadata": {
206+
"chapter": 16,
207+
"part": 3,
208+
"path": "part3/ch16_dissmodel.ipynb",
209+
"title": "Introducing DisSModel"
210+
},
211+
"kernelspec": {
212+
"display_name": "Python 3",
213+
"language": "python",
214+
"name": "python3"
215+
},
216+
"language_info": {
217+
"name": "python",
218+
"version": "3.11.0"
219+
}
220+
},
221+
"nbformat": 4,
222+
"nbformat_minor": 5
223+
}

mkdocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,21 @@ markdown_extensions:
3131
generic: true
3232
- pymdownx.highlight:
3333
anchor_linenums: true
34-
- pymdownx.superfences
3534
- pymdownx.tabbed:
3635
alternate_style: true
3736
- admonition
3837
- toc:
3938
permalink: true
39+
- pymdownx.superfences:
40+
custom_fences:
41+
- name: mermaid
42+
class: mermaid
43+
format: !!python/name:pymdownx.superfences.fence_code_format
4044

4145
extra_javascript:
4246
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
47+
- https://unpkg.com/mermaid@10/dist/mermaid.min.js
48+
- javascripts/mermaid-init.js
4349

4450
nav:
4551
- Home: index.md

0 commit comments

Comments
 (0)