#!/usr/bin/env python
# -*- coding: utf-8 -*-
# utilities for generating HTML indices
# (c) 2003-2006, 2009-2013 by the GRASS Development Team, Markus Neteler, Glynn Clements, Luca Delucchi
import sys
import os
import string
from datetime import datetime
## TODO: better fix this in include/Make/Html.make, see bug RT #5361
# exclude following list of modules from help index:
exclude_mods = [
"i.find",
"r.watershed.ram",
"r.watershed.seg",
"v.topo.check",
"helptext.html"]
# these modules don't use G_parser()
desc_override = {
"g.parser": "Provides automated parser, GUI, and help support for GRASS scipts.",
"r.li.daemon": "Support module for r.li landscape index calculations."
}
############################################################################
header1_tmpl = string.Template(\
r"""
Geographic Resources Analysis Support System, commonly
referred to as GRASS, is a Geographic
Information System (GIS) used for geospatial data management and
analysis, image processing, graphics/maps production, spatial
modeling, and visualization. GRASS is currently used in academic and
commercial settings around the world, as well as by many governmental
agencies and environmental consulting companies.
This reference manual details the use of modules distributed with
Geographic Resources Analysis Support System (GRASS), an open source
(GNU GPLed), image
processing and geographic information system (GIS).
[
"""
#"
message_tmpl = string.Template(\
r"""Generated HTML docs in ${html_dir}/index.html
----------------------------------------------------------------------
Following modules are missing the 'modulename.html' file in src code:
""")
#"
moduletopics_tmpl = string.Template(\
r"""