summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/cgi.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-07-13 09:58:52 +0000
committerschwarze <schwarze@openbsd.org>2014-07-13 09:58:52 +0000
commit2a43838fedadb22f6d0488b9189c3439ad71e06b (patch)
tree449052ffeaa001f1960823af54a8e173367bd68c /usr.bin/mandoc/cgi.c
parenttreat external storage allocated by the mbuf layer the same as (diff)
downloadwireguard-openbsd-2a43838fedadb22f6d0488b9189c3439ad71e06b.tar.xz
wireguard-openbsd-2a43838fedadb22f6d0488b9189c3439ad71e06b.zip
Install the manuals of the web interface below the same directory
as manpath.conf, such that we do not need to mix our own documentation into the documentation we are serving, which may not even be possible if the latter is updated automatically. Based on an idea by beck@.
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r--usr.bin/mandoc/cgi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c
index b00bb55dfdd..f68977e75cc 100644
--- a/usr.bin/mandoc/cgi.c
+++ b/usr.bin/mandoc/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.8 2014/07/12 23:40:44 schwarze Exp $ */
+/* $Id: cgi.c,v 1.9 2014/07/13 09:58:52 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de>
@@ -459,10 +459,10 @@ resp_index(const struct req *req)
resp_searchform(req);
printf("<P>\n"
"This web interface is documented in the "
- "<A HREF=\"%s?query=man.cgi&amp;sec=8\">"
- "man.cgi</A> manual, and the "
- "<A HREF=\"%s?query=apropos&amp;sec=1\">"
- "apropos</A> manual explains the query syntax.\n"
+ "<A HREF=\"%s/mandoc/man8/man.cgi.8\">man.cgi</A> "
+ "manual, and the "
+ "<A HREF=\"%s/mandoc/man1/apropos.1\">apropos</A> "
+ "manual explains the query syntax.\n"
"</P>\n",
scriptname, scriptname);
resp_end_html();