diff options
Diffstat (limited to 'generate')
| -rwxr-xr-x | generate | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
