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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 11 09:41:44 PDT 2013


Author: neteler
Date: 2013-03-11 09:41:44 -0700 (Mon, 11 Mar 2013)
New Revision: 55320

Modified:
   grass/trunk/man/build_html.py
   grass/trunk/man/build_keywords.py
Log:
cosmetics

Modified: grass/trunk/man/build_html.py
===================================================================
--- grass/trunk/man/build_html.py	2013-03-11 16:15:45 UTC (rev 55319)
+++ grass/trunk/man/build_html.py	2013-03-11 16:41:44 UTC (rev 55320)
@@ -258,6 +258,18 @@
 """
 #"
 
+headerkeywords_tmpl = \
+r"""
+<link rel="stylesheet" href="grassdocs.css" type="text/css">
+</head>
+<body bgcolor="white">
+
+<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade> 
+<h2>Keywords - Index of GRASS GIS modules</h2>
+<ul>
+"""
+#"
+
 headerkey_tmpl = string.Template(\
 r"""
 <link rel="stylesheet" href="grassdocs.css" type="text/css">

Modified: grass/trunk/man/build_keywords.py
===================================================================
--- grass/trunk/man/build_keywords.py	2013-03-11 16:15:45 UTC (rev 55319)
+++ grass/trunk/man/build_keywords.py	2013-03-11 16:41:44 UTC (rev 55320)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
-# generates topics.html and topic_*.html
+# generates keywords.html
 # (c) 2013 by the GRASS Development Team, Luca Delucchi
 
 import os
@@ -47,10 +47,10 @@
     except:
         continue
 
-topicsfile = open(os.path.join(path, 'keywords.html'), 'w')
-topicsfile.write(header1_tmpl.substitute(title = "GRASS GIS " \
-                        "%s Reference Manual: Topics index" % grass_version))
-topicsfile.write(headertopics_tmpl)
+keywordsfile = open(os.path.join(path, 'keywords.html'), 'w')
+keywordsfile.write(header1_tmpl.substitute(title = "GRASS GIS " \
+                        "%s Reference Manual: Keyword 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:
@@ -58,9 +58,9 @@
                                                                         ''))
     keyword_line = keyword_line.rstrip(',')
     keyword_line += '</li>\n'
-    topicsfile.write(keyword_line)
+    keywordsfile.write(keyword_line)
 
-topicsfile.write("</ul>\n")
-write_html_footer(topicsfile, "index.html", year)  
-topicsfile.close()
+keywordsfile.write("</ul>\n")
+write_html_footer(keywordsfile, "index.html", year)  
+keywordsfile.close()
     



More information about the grass-commit mailing list