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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 12 02:01:11 PDT 2013


Author: lucadelu
Date: 2013-03-12 02:01:11 -0700 (Tue, 12 Mar 2013)
New Revision: 55333

Modified:
   grass/trunk/man/build_html.py
   grass/trunk/man/build_keywords.py
Log:
small fix on keywords page

Modified: grass/trunk/man/build_html.py
===================================================================
--- grass/trunk/man/build_html.py	2013-03-12 00:48:10 UTC (rev 55332)
+++ grass/trunk/man/build_html.py	2013-03-12 09:01:11 UTC (rev 55333)
@@ -162,7 +162,7 @@
 
 footer_tmpl = string.Template(\
 r"""<hr>
-<p><a href="${index_url}">Help Index</a> | <a href="topics.html">Topics Index</a> | <a href="full_index.html">Full Index</a></p>
+<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>
 </body>
 </html>

Modified: grass/trunk/man/build_keywords.py
===================================================================
--- grass/trunk/man/build_keywords.py	2013-03-12 00:48:10 UTC (rev 55332)
+++ grass/trunk/man/build_keywords.py	2013-03-12 09:01:11 UTC (rev 55333)
@@ -34,7 +34,8 @@
     except:
         continue
     for key in keys:
-        key = key.strip().title()
+        key = key.strip()
+        key = "%s%s" % (key[0].upper(), key[1:])
         if key not in keywords.keys():
             keywords[key] = []
             keywords[key].append(fname)
@@ -49,11 +50,11 @@
 
 keywordsfile = open(os.path.join(path, 'keywords.html'), 'w')
 keywordsfile.write(header1_tmpl.substitute(title = "GRASS GIS " \
-                        "%s Reference Manual: Keyword index" % grass_version))
+                        "%s Reference Manual: Keywords index" % grass_version))
 keywordsfile.write(headerkeywords_tmpl)
 for key, values in sorted(keywords.iteritems()):
     keyword_line = "<li><b>%s</b>:" % key
-    for value in values:
+    for value in sorted(values):
         keyword_line += ' <a href="%s">%s</a>,' % (value, value.replace('.html',
                                                                         ''))
     keyword_line = keyword_line.rstrip(',')



More information about the grass-commit mailing list