[GRASS-SVN] r69584 - grass/trunk/man

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 27 11:17:36 PDT 2016


Author: wenzeslaus
Date: 2016-09-27 11:17:36 -0700 (Tue, 27 Sep 2016)
New Revision: 69584

Modified:
   grass/trunk/man/build_class.py
Log:
doc: fix link to 3D raster intro (split visible text and link id)

Modified: grass/trunk/man/build_class.py
===================================================================
--- grass/trunk/man/build_class.py	2016-09-27 17:25:42 UTC (rev 69583)
+++ grass/trunk/man/build_class.py	2016-09-27 18:17:36 UTC (rev 69584)
@@ -9,6 +9,9 @@
 
 from build_html import *
 
+
+no_into_page_classes = ['general', 'misc', 'postscript']
+
 os.chdir(html_dir)
 
 #write separate module pages:
@@ -25,12 +28,14 @@
 f = open(filename + ".tmp", 'wb')
 
 write_html_header(f, "GRASS GIS %s Reference Manual: %s" % (grass_version, modclass))
-if modclass.lower() not in ['general', 'misc', 'postscript']:
-    if modclass == 'raster3d':
+modclass_lower = modclass.lower()
+modclass_visible = modclass
+if modclass_lower not in no_into_page_classes:
+    if modclass_visible == 'raster3d':
         # covert keyword to nice form
-        modclass = '3D raster'
-    f.write(modclass_intro_tmpl.substitute(modclass = modclass, modclass_lower = modclass.lower()))
-f.write(modclass_tmpl.substitute(modclass=to_title(modclass)))
+        modclass_visible = '3D raster'
+    f.write(modclass_intro_tmpl.substitute(modclass=modclass_visible, modclass_lower=modclass_lower))
+f.write(modclass_tmpl.substitute(modclass=to_title(modclass_visible)))
 
 #for all modules:
 for cmd in html_files(cls):



More information about the grass-commit mailing list