--- /dev/null
+#!/bin/bash
+
+ROOT=$(git rev-parse --show-cdup . | head -n1)
+if [ -z "$ROOT" ]; then
+ ROOT="./"
+fi
+
+build.sh "$ROOT"
+
+# html_toc.py does not search outside a TOC tree, so you need to start
+# it at each additional TOC root. Run
+# grep -r 'TableOfContents' | grep -v '/content/'
+# to get a list of files containing TOCs.
+html_toc.py "$ROOT"content/
+html_toc.py "$ROOT"assignments/archive/logistic_cuda/
--- /dev/null
+#!/bin/bash
+
+ROOT=$(git rev-parse --show-cdup . | head -n1)
+if [ -z "$ROOT" ]; then
+ ROOT="./"
+fi
+
+clean.sh "$ROOT"
+
+# html_toc.py does not search outside a TOC tree, so you need to start
+# it at each additional TOC root. Run
+# grep -r 'TableOfContents' | grep -v '/content/'
+# to get a list of files containing TOCs.
+html_toc.py --clean "$ROOT"content/
+html_toc.py --clean "$ROOT"assignments/archive/logistic_cuda/