aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.h.example
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 /cgi.h.example
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 'cgi.h.example')
-rw-r--r--cgi.h.example2
1 files changed, 0 insertions, 2 deletions
diff --git a/cgi.h.example b/cgi.h.example
index f4c78318..c4878d34 100644
--- a/cgi.h.example
+++ b/cgi.h.example
@@ -4,6 +4,4 @@
#define MAN_DIR "/var/www/man"
#define CSS_DIR ""
#define CUSTOMIZE_TITLE "Manual pages with mandoc"
-#define CUSTOMIZE_BEGIN "<H2>\nManual pages with " \
- "<A HREF=\"http://mdocml.bsd.lv/\">mandoc</A>\n</H2>"
#define COMPAT_OLDURI Yes