[BACK]Return to cgi.h.example CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / cgi.h.example (download)

Revision 1.4, Thu Nov 5 20:55:41 2015 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +0 -2 lines

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.

/* Example compile-time configuration file for man.cgi(8). */

#define	HTTP_HOST "mdocml.bsd.lv"
#define	MAN_DIR "/var/www/man"
#define	CSS_DIR ""
#define	CUSTOMIZE_TITLE "Manual pages with mandoc"
#define	COMPAT_OLDURI Yes