diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-15 13:18:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-03-15 13:18:53 +0000 |
commit | 45aa7e5c566905aca26d452ba4a9467300d052ff (patch) | |
tree | 8eec435e6d8e3087fd508c280554a71c55f6acaa /man.cgi.3 | |
parent | 28bf3097cb23e1f811b5273cd04e16d309f04607 (diff) | |
download | mandoc-45aa7e5c566905aca26d452ba4a9467300d052ff.tar.gz |
Mention the manual page name and section in the HTML page <title>.
Based on a patch from <Anton dot Lindqvist at gmail dot com>,
but simplified and also covering apropos(1) search results.
Diffstat (limited to 'man.cgi.3')
-rw-r--r-- | man.cgi.3 | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,6 @@ .\" $Id$ .\" -.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> +.\" Copyright (c) 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above @@ -237,13 +237,18 @@ and are used. The highest level result generators are: .Bl -tag -width 1n -.It Ft void Fn resp_begin_html "int code" "const char *msg" +.It Ft void Fn resp_begin_html "int code" "const char *msg" "const char *file" This generator calls .Fn resp_begin_http to print the HTTP headers, then prints the HTML header up to the opening tag of the <body> element, then copies the file .Pa header.html to the output, if it exists and is readable. +If +.Fa file +is not +.Dv NULL , +it is used for the <title> element. .It Ft void Fn resp_searchform "const struct req *req" "enum focus focus" This generator prints a search form, filling it with data from the provided request object. |