summaryrefslogtreecommitdiffstats
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
commitdc4bfc16fa380a3b20f7c13d22ac797e7c540c3a (patch)
treea029fbda5aa1738fde29ed7262c1adda91b10f73 /cgi.h.example
parentaae3ab3e68edab90a23978db94cca91886c1a1f6 (diff)
downloadmandoc-dc4bfc16fa380a3b20f7c13d22ac797e7c540c3a.tar.gz
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>"