#!/bin/bash
# dev/docs/html - HTML documentation generation support

set -e

lib_load 'dev/docs/config'
lib_load 'doc/html'


######
# Common HTML Support

docs_html_url() {
	local url=${1#$package_docs_gendir}
	html_url "$package_docs_urlbase$url" "$2"
}

docs_gen_footer() {
	html_hr
	local pkgtoolver="${package_name} ${script_name} v${package_version}"
	html_div "Generated on $(date) by ${pkgtoolver}."
}

docs_gen_html_page_footer() {
	local path=$1
	local label=$2

	html_hr
	echo

	local urllabel=$(html_h4 "View the $label Index")
	html_div_func docs_html_url "$path" "$urllabel"
	echo

	docs_gen_footer

	echo "</body>"
	echo "</html>"
}

docs_gen_html_ref_footer() {
	local path=$(docs_filename "$package_docs_refdir" index html)
	docs_gen_html_page_footer "$path" "Script Reference"
}

View the Script Reference Index


Generated on Tue Apr 25 21:20:24 PDT 2017 by mcsh i7 v0.18.0.