aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.cgi.8
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-05 20:55:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-05 20:55:41 +0000
commit3e3c69e597d7b127284c4d3fc3acbffb42f51999 (patch)
tree5f7b0c8190a8748956e1ceaac0e3a766cc7727bd /man.cgi.8
parent19b3dcea79a7058bdd6e153461a7e967e68db921 (diff)
downloadmandoc-3e3c69e597d7b127284c4d3fc3acbffb42f51999.tar.gz
mandoc-3e3c69e597d7b127284c4d3fc3acbffb42f51999.tar.zst
mandoc-3e3c69e597d7b127284c4d3fc3acbffb42f51999.zip
Use include files "header.html" and "footer.html" rather than a
compiled-in string. This is not a security risk, we read the file manpath.conf from the same directory, anyway. No error handling is needed; even if the files are absent, that's not an error. This is more flexible without causing complication of the code or the user interface. It helps the upcoming revamp of the online manual pages on man.NetBSD.org. Based on an idea by Jean-Yves Migeon <jeanyves dot migeon at free dot fr>, but implemented in a much simpler way.
Diffstat (limited to 'man.cgi.8')
-rw-r--r--man.cgi.816
1 files changed, 8 insertions, 8 deletions
diff --git a/man.cgi.8 b/man.cgi.8
index 80391d72..2e54dbf4 100644
--- a/man.cgi.8
+++ b/man.cgi.8
@@ -1,4 +1,4 @@
-.\" $Id: man.cgi.8,v 1.12 2015/11/05 17:47:51 schwarze Exp $
+.\" $Id: man.cgi.8,v 1.13 2015/11/05 20:55:41 schwarze Exp $
.\"
.\" Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
.\"
@@ -190,14 +190,8 @@ and to be specified without a trailing slash.
When not specified, the CSS files
are assumed to be in the document root.
This is used in generated HTML code.
-.It Ev CUSTOMIZE_BEGIN
-A HTML string to be inserted right after opening the
-.Aq BODY
-element.
.It Ev CUSTOMIZE_TITLE
-An ASCII string to be used for the HTML
-.Aq TITLE
-element.
+An ASCII string to be used for the HTML <TITLE> element.
.It Ev HTTP_HOST
The FQDN of the (possibly virtual) host the HTTP server is running on.
This is used for
@@ -374,6 +368,12 @@ or any character not contained in the
.Sx Restricted character set ,
.Nm
reports an internal server error and exits without doing anything.
+.It Pa /man/header.html
+An optional file containing static HTML code to be inserted right
+after opening the <BODY> element.
+.It Pa /man/footer.html
+An optional file containing static HTML code to be inserted right
+before closing the <BODY> element.
.It Pa /man/OpenBSD-current/man1/mandoc.1
An example
.Xr mdoc 7