#!/bin/bash # # Basic template configuration; command-line options will override get-menu-docs() { # we shall only consider ordered pages---that is, those that begin with numbers; this # allows pages to exist that are not listed in the menu paths=$( find "$path_root/docs" -maxdepth 1 -name '[0-9][0-9]-*.pg' \ -exec basename {} \; \ | sort ) for p in $paths; do # we shall consider the name of the link to be the path with the extension # and sorting prefix stripped name="$( basename "${p%%.pg}" )" echo "${name#??-}" done } html_external_css=/style.css # menu just below the header, above the index html_pre_index="$( echo '