Skip to content

Commit

Permalink
manual: put module name at first position (#248)
Browse files Browse the repository at this point in the history
Show the individual manual page titles with module name at first position to render them visible on a bar of tabs in the browser.
Fixes https://trac.osgeo.org/grass/ticket/3994
  • Loading branch information
neteler committed Dec 8, 2019
1 parent f5adfb6 commit ad0e965
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion db/drivers/mysql/grass-mesql.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS manual: GRASS-MySQL embedded driver</title>
<title>GRASS-MySQL embedded driver - GRASS GIS manual</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
Expand Down
10 changes: 5 additions & 5 deletions general/g.setproj/g.setproj.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>g.setproj</title>
<title>g.setproj - GRASS GIS manual</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
Expand All @@ -11,9 +11,9 @@

<h2>NAME</h2>

<em><b>g.setproj</b></em> - Allows the user to create the PROJ_INFO and the
PROJ_UNITS files to record the projection information associated with a
current location.
<em><b>g.setproj</b></em> allows the user to create the PROJ_INFO and the
PROJ_UNITS files to record the projection information associated with a
current location.
<br>

<h2>SYNOPSIS</h2>
Expand Down Expand Up @@ -77,7 +77,7 @@ <h2>SEE ALSO</h2>
<li> <a href="http://www.remotesensing.org/geotiff/proj_list/">Projections Transform List</a> (PROJ4)
</ul>

<h2>AUTHOR</h2>
<h2>AUTHORS</h2>

Irina Kosinovsky,
U.S. Army Construction Engineering
Expand Down
2 changes: 1 addition & 1 deletion lib/gis/parser_html.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void G__usage_html(void)
fprintf(stdout,
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
fprintf(stdout, "<html>\n<head>\n");
fprintf(stdout, "<title>GRASS GIS manual: %s</title>\n", st->pgm_name);
fprintf(stdout, "<title>%s - GRASS GIS manual</title>\n", st->pgm_name);
fprintf(stdout,
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n");
fprintf(stdout,
Expand Down
2 changes: 1 addition & 1 deletion lib/gis/parser_rest.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void G__usage_rest(void)
fprintf(stdout, "=");
}
fprintf(stdout, "\n");
fprintf(stdout, "GRASS GIS manual: %s\n", st->pgm_name);
fprintf(stdout, "%s - GRASS GIS manual\n", st->pgm_name);
fprintf(stdout, "=================");
for (s = 0; s <= strlen(st->pgm_name); s++) {
fprintf(stdout, "=");
Expand Down
2 changes: 1 addition & 1 deletion raster/r.li/r.li.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS manual: r.li</title>
<title>r.li - GRASS GIS manual</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
Expand Down
2 changes: 1 addition & 1 deletion tools/g.html2man/ggroff.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def pp_title(self):
os.path.basename(self.filename).replace(".html", "") +
" 1 \"\" \"GRASS " +
version +
"\" \"Grass User's Manual\"")
"\" \"GRASS GIS User's Manual\"")

def pp_tr(self, content):
content = clean(content)
Expand Down

0 comments on commit ad0e965

Please sign in to comment.