Просмотр исходного кода

manual: change table background to white (increase readability)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62101 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 лет назад
Родитель
Сommit
a37c7e005b
2 измененных файлов с 14 добавлено и 16 удалено
  1. 13 15
      man/build_html.py
  2. 1 1
      man/grassdocs.css

+ 13 - 15
man/build_html.py

@@ -80,7 +80,7 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
 <table align="center" border="0" cellspacing="8">
   <tbody>
     <tr>
-      <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3>&nbsp;Quick Introduction</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>
@@ -94,7 +94,7 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
        <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>&nbsp;Display/Graphical User Interfaces</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;Display/Graphical User Interfaces</h3>
        <ul>
         <li class="box"><span><a href="wxGUI.html">wxGUI</a> Graphical User Interface</span></li>
         <li class="box"><a href="wxGUI.components.html">wxGUI components</a></li>
@@ -110,7 +110,7 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
         <li class="box"><a href="displaydrivers.html">Display drivers</a></li>
        </ul>
       </td>
-      <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3>&nbsp;General</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;General</h3>
        <ul>
         <li class="box"><a href="grass${grass_version_major}.html">GRASS GIS startup manual page</a></li>
         <li class="box"><a href="general.html">General commands manual</a></li>
@@ -122,38 +122,38 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
       </td>
     </tr>
     <tr>
-      <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3>&nbsp;Raster processing</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>&nbsp;3D raster processing</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>&nbsp;Image processing</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>&nbsp;Vector processing</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>&nbsp;Database</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>&nbsp;Temporal processing</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>
@@ -161,19 +161,19 @@ r"""<!-- the files grass${grass_version_major}.html & helptext.html file live in
       </td>
     </tr>
     <tr>
-      <td width="33%" valign="top" bgcolor="${box_color}" class="box"><h3>&nbsp;Cartography</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;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>&nbsp;Miscellaneous&nbsp;&amp;&nbsp;Variables</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;Miscellaneous&nbsp;&amp;&nbsp;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>&nbsp;Python</h3>
+      <td width="33%" valign="top" class="box"><h3>&nbsp;Python</h3>
        <ul>
         <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>
         <li class="box"><a href="http://grass.osgeo.org/grass${grass_version_major}${grass_version_minor}/manuals/libpython/gunittest_testing.html">GRASS GIS Testsuite</a></li>
@@ -365,9 +365,7 @@ 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,
-                                     grass_version_major = grass_version_major,
+    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):

+ 1 - 1
man/grassdocs.css

@@ -107,7 +107,7 @@ span.code {
 }
 
 td.box {
-    border:  1px solid #c9c9c9;
+    border:  2px solid rgb(25%, 60%, 25%);
     border-radius: 10px;
     margin: 0px 2px 2px 10px;
     padding: 4px 4px 4px 4px;