#!/usr/bin/env bash # This file is responsible for generating an html structure of documents # All md files will be converted to html # Everything else will be copied exactly # The table of contents will be a nested ul structure # The top level will be the tags, under each tag there will be a list of documents that are tagged with that tag # This will result in doucuments being listed multiple times, once for each tag they are in generate-html-toc(){ echo "" } to-html(){ local destination="$1" local toc="$(generate-html-toc)" echo "$toc" }