aboutsummaryrefslogtreecommitdiff
path: root/generate
diff options
context:
space:
mode:
Diffstat (limited to 'generate')
-rwxr-xr-xgenerate12
1 files changed, 12 insertions, 0 deletions
diff --git a/generate b/generate
index 7b6492c..56ea15b 100755
--- a/generate
+++ b/generate
@@ -119,3 +119,15 @@ do
</li>" walks/index.html
echo "Generated walk at $gpx_path"
done
+
+for notebook_path in notebooks/*.ipynb
+do
+ notebook_dst_path=$(echo "$notebook_path" | sed 's_.ipynb_.html_')
+ jupyter-nbconvert "$notebook_path"
+
+ sed -i'' "/<!-- NOTEBOOKINDEX -->/ a\
+ <li> \
+ <a href=\"$notebook_dst_path\">$(basename $notebook_path | cut -d . -f 1 | tr '-' ' ')</a> \
+ <a href=\"$notebook_path\"> ($(basename $notebook_path))</a> \
+ </li>" index.html
+done