#!/usr/bin/env python3 # -*- coding: utf-8 -*- # utilities for generating HTML indices # (c) 2003-2019 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""" ${title} """) macosx_tmpl = string.Template(\ r""" """) header2_tmpl = string.Template(\ r"""
GRASS logo

GRASS GIS ${grass_version} Reference Manual

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).

""") #" overview_tmpl = string.Template(\ r"""

 Quick Introduction

 Graphical User Interface

 Display

 General

 Addons

 Programmer's Manual

 Raster processing

 3D raster processing

 Image processing

 Vector processing

 Database

 Temporal processing

 Cartography

 Miscellaneous & Variables

 Python

""") #" footer_tmpl = string.Template(\ r"""

Main index | Topics index | Keywords index | Graphical index | Full index

© 2003-${year} GRASS Development Team, GRASS GIS ${grass_version} Reference Manual

""") #" cmd2_tmpl = string.Template(\ r"""

${cmd_label} commands (${cmd}.*)

""") #" desc1_tmpl = string.Template(\ r""" """) #" toc = \ r"""

Table of contents

""" #" modclass_intro_tmpl = string.Template(\ r"""Go to ${modclass} introduction | topics

""") #" modclass_tmpl = string.Template(\ r"""Go back to help overview

${modclass} commands:

${basename} ${desc}
""") #" desc2_tmpl = string.Template(\ r""" """) #" full_index_header = \ r""" Go back to help overview """ #" 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"""
  • ${name}
  • """ ) #" headertopics_tmpl = \ r"""
    GRASS logo

    Topics

    ${basename} ${desc}
    """) #" headerpso_tmpl = \ r"""
    GRASS logo

    Parser standard options