aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.h.example
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-12 18:32:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-12 18:32:47 +0000
commita797540135ad4c814fac00a6542da5d893786891 (patch)
treee7c4db12f1a710a2f00e58f263cf29f567a2ef35 /cgi.h.example
parentf11c12e77574a937415e1a9fa3fb12eb8a79b565 (diff)
downloadmandoc-a797540135ad4c814fac00a6542da5d893786891.tar.gz
mandoc-a797540135ad4c814fac00a6542da5d893786891.tar.zst
mandoc-a797540135ad4c814fac00a6542da5d893786891.zip
No need for run-time configuration, add minimal compile-time
configuration facilities, just two paths and two HTML strings. Show the title on all pages, not just the index page.
Diffstat (limited to 'cgi.h.example')
-rw-r--r--cgi.h.example7
1 files changed, 7 insertions, 0 deletions
diff --git a/cgi.h.example b/cgi.h.example
new file mode 100644
index 00000000..95508def
--- /dev/null
+++ b/cgi.h.example
@@ -0,0 +1,7 @@
+/* Example compile-time configuration file for man.cgi(8). */
+
+#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>"