|
@@ -2,7 +2,7 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
# utilities for generating HTML indices
|
|
|
-# (c) 2003-2006, 2009-2013 by the GRASS Development Team, Markus Neteler, Glynn Clements, Luca Delucchi
|
|
|
+# (c) 2003-2014 by the GRASS Development Team, Markus Neteler, Glynn Clements, Luca Delucchi
|
|
|
|
|
|
import sys
|
|
|
import os
|
|
@@ -49,7 +49,7 @@ header2_tmpl = string.Template(\
|
|
|
r""" <link rel="stylesheet" href="grassdocs.css" type="text/css">
|
|
|
</head>
|
|
|
<body style="width: ${body_width}">
|
|
|
-
|
|
|
+<div id="container">
|
|
|
<!-- this file is generated by man/build_html.py -->
|
|
|
|
|
|
<a href="index.html"><img src="grass_logo.png" alt="GRASS logo"></a>
|
|
@@ -75,24 +75,28 @@ processing and geographic information system (GIS).</p>
|
|
|
#"
|
|
|
|
|
|
overview_tmpl = string.Template(\
|
|
|
-r"""<!-- the files grass7.html & helptext.html file live in lib/init/ -->
|
|
|
+r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in lib/init/ -->
|
|
|
|
|
|
<table align="center" border="0" cellspacing="8">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Quick Introduction</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Quick Introduction</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="helptext.html">How to start with GRASS</a></li>
|
|
|
<li class="box"><span>Index of <a href="topics.html">topics</a> and <a href="keywords.html">keywords</a></span></li>
|
|
|
</ul>
|
|
|
- <p>
|
|
|
+ <p>
|
|
|
<ul>
|
|
|
<li class="box"><a href="projectionintro.html">Intro: projections and spatial transformations</a></li>
|
|
|
</ul>
|
|
|
+ <p>
|
|
|
+ <ul>
|
|
|
+ <li class="box"><span><a href="http://grasswiki.osgeo.org/wiki/Faq">FAQ - Frequently Asked Questions</a> (Wiki)</span></li>
|
|
|
+ </ul>
|
|
|
</td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Display/Graphical User Interfaces</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Graphical User Interface</h3>
|
|
|
<ul>
|
|
|
- <li class="box"><span><a href="wxGUI.html">wxGUI</a> Graphical User Interface</span></li>
|
|
|
+ <li class="box"><span><a href="wxGUI.html">wxGUI</a></span></li>
|
|
|
<li class="box"><a href="wxGUI.components.html">wxGUI components</a></li>
|
|
|
<li class="box"><a href="wxGUI.toolboxes.html">wxGUI toolboxes</a></li>
|
|
|
</ul>
|
|
@@ -100,15 +104,15 @@ r"""<!-- the files grass7.html & helptext.html file live in lib/init/ -->
|
|
|
<ul>
|
|
|
<li class="box"><a href="topic_gui.html">GUI commands</a></li>
|
|
|
</ul>
|
|
|
-
|
|
|
+ <h3> Display</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="display.html">Display commands manual</a></li>
|
|
|
<li class="box"><a href="displaydrivers.html">Display drivers</a></li>
|
|
|
</ul>
|
|
|
</td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> General</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> General</h3>
|
|
|
<ul>
|
|
|
- <li class="box"><a href="grass7.html">GRASS GIS startup manual page</a></li>
|
|
|
+ <li class="box"><a href="grass${grass_version_major}.html">GRASS GIS startup manual</a></li>
|
|
|
<li class="box"><a href="general.html">General commands manual</a></li>
|
|
|
</ul>
|
|
|
<h3> Addons</h3>
|
|
@@ -118,38 +122,38 @@ r"""<!-- the files grass7.html & helptext.html file live in lib/init/ -->
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Raster processing</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Raster processing</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="rasterintro.html">Intro: 2D raster map processing</a></li>
|
|
|
<li class="box"><a href="raster.html">Raster commands manual</a></li>
|
|
|
</ul>
|
|
|
</td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> 3D raster processing</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> 3D raster processing</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="raster3dintro.html">Intro: 3D raster map (voxel) processing</a></li>
|
|
|
<li class="box"><a href="raster3D.html">3D raster (voxel) commands manual</a></li>
|
|
|
</ul></td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Image processing</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Image processing</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="imageryintro.html">Intro: image processing</a></li>
|
|
|
<li class="box"><a href="imagery.html">Imagery commands manual</a></li>
|
|
|
</ul></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Vector processing</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Vector processing</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="vectorintro.html">Intro: vector map processing and network analysis</a></li>
|
|
|
<li class="box"><a href="vector.html">Vector commands manual</a></li>
|
|
|
<li class="box"><a href="vectorascii.html">GRASS ASCII vector format specification</a></li>
|
|
|
</ul></td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Database</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Database</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="databaseintro.html">Intro: database management</a></li>
|
|
|
<li class="box"><a href="sql.html">SQL support in GRASS GIS</a></li>
|
|
|
<li class="box"><a href="database.html">Database commands manual</a></li>
|
|
|
</ul>
|
|
|
</td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Temporal processing</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Temporal processing</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="temporalintro.html">Intro: temporal data processing</a></li>
|
|
|
<li class="box"><a href="temporal.html">Temporal commands manual</a></li>
|
|
@@ -157,21 +161,21 @@ r"""<!-- the files grass7.html & helptext.html file live in lib/init/ -->
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Cartography</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Cartography</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="postscript.html">Postscript commands manual</a></li>
|
|
|
<li class="box"><a href="g.gui.psmap.html">wxGUI Cartographic Composer</a></li>
|
|
|
</ul>
|
|
|
</td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> Miscellaneous & Variables</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Miscellaneous & Variables</h3>
|
|
|
<ul>
|
|
|
<li class="box"><a href="misc.html">Miscellaneous commands manual</a></li>
|
|
|
<li class="box"><a href="variables.html">GRASS variables and environment variables</a></li>
|
|
|
</ul>
|
|
|
</td>
|
|
|
- <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3> GRASS GIS Wiki</h3>
|
|
|
+ <td width="33%" valign="top" class="box"><h3> Python</h3>
|
|
|
<ul>
|
|
|
- <li class="box"><a href="http://grasswiki.osgeo.org/wiki/Faq">FAQ - Frequently Asked Questions</a></li>
|
|
|
+ <li class="box"><a href="http://grass.osgeo.org/grass${grass_version_major}${grass_version_minor}/manuals/libpython/pygrass_index.html">PyGRASS documentation</a></li>
|
|
|
</ul>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -184,6 +188,8 @@ footer_tmpl = string.Template(\
|
|
|
r"""<hr class="header">
|
|
|
<p><a href="${index_url}">Help Index</a> | <a href="topics.html">Topics Index</a> | <a href="keywords.html">Keywords Index</a> | <a href="full_index.html">Full Index</a></p>
|
|
|
<p>© 2003-${year} <a href="http://grass.osgeo.org">GRASS Development Team</a>, GRASS GIS ${grass_version} Reference Manual</p>
|
|
|
+
|
|
|
+</div>
|
|
|
</body>
|
|
|
</html>
|
|
|
""")
|
|
@@ -204,6 +210,7 @@ r"""<tr><td valign="top"><a href="${cmd}">${basename}</a></td> <td>${desc}</td><
|
|
|
toc = \
|
|
|
r"""
|
|
|
<div class="toc">
|
|
|
+<h4 class="toc">Table of contents</h4>
|
|
|
<ul class="toc">
|
|
|
<li class="toc"><a class="toc" href="full_index.html#d">Display commands (d.*)</a></li>
|
|
|
<li class="toc"><a class="toc" href="full_index.html#db">Database commands (db.*)</a></li>
|
|
@@ -266,6 +273,7 @@ r"""
|
|
|
<link rel="stylesheet" href="grassdocs.css" type="text/css">
|
|
|
</head>
|
|
|
<body style="width: 99%">
|
|
|
+<div id="container">
|
|
|
|
|
|
<a href="index.html"><img src="grass_logo.png" alt="GRASS logo"></a>
|
|
|
<hr class="header">
|
|
@@ -279,6 +287,7 @@ r"""
|
|
|
<link rel="stylesheet" href="grassdocs.css" type="text/css">
|
|
|
</head>
|
|
|
<body style="width: 99%">
|
|
|
+<div id="container">
|
|
|
|
|
|
<a href="index.html"><img src="grass_logo.png" alt="GRASS logo"></a>
|
|
|
<hr class="header">
|
|
@@ -291,6 +300,7 @@ r"""
|
|
|
<link rel="stylesheet" href="grassdocs.css" type="text/css">
|
|
|
</head>
|
|
|
<body bgcolor="white">
|
|
|
+<div id="container">
|
|
|
|
|
|
<a href="index.html"><img src="grass_logo.png" alt="GRASS logo"></a>
|
|
|
<hr class="header">
|
|
@@ -354,8 +364,8 @@ def write_html_header(f, title, ismain = False, body_width = "99%"):
|
|
|
f.write(header2_tmpl.substitute(grass_version = grass_version, body_width = body_width))
|
|
|
|
|
|
def write_html_cmd_overview(f):
|
|
|
- box_color = "#e1ecd0"
|
|
|
- f.write(overview_tmpl.substitute(box_color = box_color))
|
|
|
+ f.write(overview_tmpl.substitute(grass_version_major = grass_version_major,
|
|
|
+ grass_version_minor = grass_version_minor))
|
|
|
|
|
|
def write_html_footer(f, index_url, year = None):
|
|
|
if year is None:
|
|
@@ -395,6 +405,8 @@ arch_dist_dir = os.environ['ARCH_DISTDIR']
|
|
|
html_dir = os.path.join(arch_dist_dir, "docs", "html")
|
|
|
gisbase = os.environ['GISBASE']
|
|
|
grass_version = os.getenv("VERSION_NUMBER", "unknown")
|
|
|
+grass_version_major = grass_version.split('.')[0]
|
|
|
+grass_version_minor = grass_version.split('.')[1]
|
|
|
grass_mmver = '.'.join(grass_version.split('.')[0:2])
|
|
|
macosx = "darwin" in os.environ['ARCH'].lower()
|
|
|
default_year = os.getenv("VERSION_DATE")
|