summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-13 09:39:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-13 09:39:32 +0000
commitf7cbf679908f58cb3462bdd42e4950810b04b85d (patch)
tree29122978cff78e3be560e4907588e9a94ce2a093 /cgi.c
parent2906400105b323eed34fff88bc761602177d6a6d (diff)
downloadmandoc-f7cbf679908f58cb3462bdd42e4950810b04b85d.tar.gz
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 'cgi.c')
-rw-r--r--cgi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgi.c b/cgi.c
index 221c186a..3948acb7 100644
--- a/cgi.c
+++ b/cgi.c
@@ -463,10 +463,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();