#!/bin/bash
# dev/docs/rst - reStructuredText documentation generation support
set -e
lib_load 'dev/docs/color'
lib_load 'doc/rst'
######
# Common reStructuredText Support
docs_rst_to_html() {
local rst=$1
local css=$(docs_css_filename)
[ -f "$css" ] || docs_gen_html_css
local -a rst_html_css=( "" )
rst_to_html "$rst" | head -n-2
}