From bdcb15a7e65b5df030d7dac778cb68ac4e3277e6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 5 Nov 2015 20:55:41 +0000 Subject: 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 , but implemented in a much simpler way. --- man.cgi.8 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'man.cgi.8') diff --git a/man.cgi.8 b/man.cgi.8 index 49138c76..21f5e08e 100644 --- a/man.cgi.8 +++ b/man.cgi.8 @@ -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 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 -- cgit