Переглянути джерело

add metatags so g.html2man can create whatis NAME entries for non-module intro help pages

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37874 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 роки тому
батько
коміт
465ba86279

+ 1 - 0
db/databaseintro.html

@@ -12,6 +12,7 @@
 
 <img src="grass_logo.png" alt="_\|/_ GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: Database management in GRASS GIS -->
 <h2>Database management in GRASS GIS</h2>
 
 <h3>Attribute management in general</h3>

+ 1 - 0
db/drivers/dbf/grass-dbf.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: DBF driver -->
 <h1>DBF driver in GRASS</h1>
 
 <h2>Defining the DBF driver</h2>

+ 2 - 1
db/drivers/mysql/grass-mesql.html

@@ -8,7 +8,8 @@
 <body bgcolor="white">
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
-    
+
+<!-- meta page description: MySQL embedded driver -->
 <h1>MySQL embedded driver in GRASS</h1>
 
 MySQL database driver in GRASS enables GRASS to store vector

+ 2 - 1
db/drivers/mysql/grass-mysql.html

@@ -8,7 +8,8 @@
 <body bgcolor="white">
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
-    
+
+<!-- meta page description: MySQL driver -->
 <h1>MySQL driver in GRASS</h1>
 
 MySQL database driver in GRASS enables GRASS to store vector

+ 1 - 0
db/drivers/odbc/grass-odbc.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: ODBC driver -->
 <h1>ODBC driver in GRASS</h1>
 
 Communication between GRASS and ODBC database for attribute management: <br>

+ 1 - 0
db/drivers/ogr/grass-ogr.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: OGR driver -->
 <h1>OGR driver in GRASS</h1>
 
 This driver is principally only used by <em>v.external</em>.

+ 1 - 0
db/drivers/postgres/grass-pg.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: PostgreSQL driver -->
 <h1>PostgreSQL driver in GRASS</h1>
 
 The driver name is 'pg'.

+ 1 - 0
db/drivers/sqlite/grass-sqlite.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: SQLite driver -->
 <h1>SQLite driver in GRASS</h1>
 
 <H2>Creating a SQLite database</H2>

+ 2 - 4
doc/projectionintro.html

@@ -10,11 +10,9 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
-<!-- file source:
-     ./doc/projectionintro.html
--->
-
+<!-- file source: doc/projectionintro.html -->
 
+<!-- meta page description: Projections and spatial transformations -->
 <h2>Projections and spatial transformations in GRASS GIS</h2>
 
 <h3>Introduction</h3>

+ 1 - 0
imagery/imageryintro.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: Image processing introduction -->
 <h2>Image processing in GRASS GIS</h2>
 
 

+ 1 - 0
lib/db/sqlp/sql.html

@@ -12,6 +12,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: SQL support introduction -->
 <H2>SQL support in GRASS GIS</H2>
 
 GRASS can use various RDBMS and embedded databases. 

+ 1 - 0
lib/init/helptext.html

@@ -12,6 +12,7 @@
 
 <!-- stored in CVS in: lib/init/helptext.html -->
 
+<!-- meta page description: GRASS Quickstart -->
 <H1>GRASS Quickstart</H1>
 
 <h2>Geographic Resources Analysis Support System</h2>

+ 4 - 4
lib/init/variables.html

@@ -7,14 +7,14 @@
 </head>
 <body bgcolor="white">
 
+
+<!-- file source: lib/init/variables.html -->
+
 <img src="grass_logo.png" alt="_\|/_ GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: GRASS variables and environment variables -->
 <h2>GRASS variables and environment variables</h2>
 
-<!-- file source:
-     ./lib/init/variables.html
--->
-
 There are two types of variables:
 <ul>
 <li><a href="#enviro">shell environment</a> variables,</li>

+ 1 - 0
raster/rasterintro.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: Raster data processing -->
 <h2>Raster data processing in GRASS GIS</h2>
 
 <h3>Raster maps in general</h3>

+ 1 - 0
raster3d/raster3dintro.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: 3D Raster data (voxel) introduction -->
 <h2>3D Raster data (voxel) in GRASS GIS</h2>
 
 <h3>3D Raster (voxel) import</h3>

+ 8 - 3
tools/g.html2man/g.html2man

@@ -137,8 +137,8 @@ sub DoLine {
   &DoPara($_);
   if (! $preformat) {
     if (m/^$/) {return 0};
-    s#^[ \t]*##;    
-    s#<[^>]*>##g;    
+    s#^[ \t]*##;
+    s#<[^>]*>##g;
   }
   return 1;
 }
@@ -279,6 +279,11 @@ print "Converting: $infile to $outfile\n";
 &PrintHeader($page,$sect,$TITLE[0]);
 
 while (<INP>) {
+  # for intro pages which lack a module NAME (for whois entry)
+  if ($_ =~ s/<!-- meta page description:(.*)-->/$1/) {
+	print OUT ".SH NAME\n$page -$_\n";
+  }
+
   s/\\/\\(rs/g;
   $result = &DoLine($_);
   if ($result == 2) {
@@ -286,6 +291,7 @@ while (<INP>) {
     close(OUT);
     return;
   }
+
   if (&DoLine($_) == 1) {
     s#&lt#<#g;
     s#&gt#>#g; 
@@ -312,7 +318,6 @@ while (<INP>) {
     #
     # end of comment part
     #
-
     
     $out .= $line;
 

+ 2 - 0
vector/v.lrs/lrs.html

@@ -10,7 +10,9 @@
 
 <img src="grass_logo.png" alt="_\|/_ GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: LRS (Linear Referencing System) -->
 <h2>LRS (Linear Referencing System)</h2>
+
 A Linear Referencing System (LRS) is a system
 where features (points or segments) are localized by a measure along a linear element.
 The LRS can be used to reference events for any network of linear

+ 1 - 0
vector/vectorintro.html

@@ -10,6 +10,7 @@
 
 <img src="grass_logo.png" alt="_\|/_ GRASS logo"><hr align=center size=6 noshade>
 
+<!-- meta page description: Vector data processing -->
 <h2>Vector data processing in GRASS GIS</h2>
 
 <h3>Vector maps in general</h3>