diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 17:03:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 17:03:07 +0000 |
commit | ea48e55b5108c43c1f8c8c5e6e85758eb4ed5ae0 (patch) | |
tree | aff2fa01d68269e387fa3735b080f61c68d62e23 /cgi.c | |
parent | 3d0adafe1f349338ad37cd1ad02d235e3e203057 (diff) | |
download | mandoc-ea48e55b5108c43c1f8c8c5e6e85758eb4ed5ae0.tar.gz mandoc-ea48e55b5108c43c1f8c8c5e6e85758eb4ed5ae0.tar.zst mandoc-ea48e55b5108c43c1f8c8c5e6e85758eb4ed5ae0.zip |
some sugar for the index page
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.59 2014/07/09 16:23:01 schwarze Exp $ */ +/* $Id: cgi.c,v 1.60 2014/07/09 17:03:07 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de> @@ -381,7 +381,7 @@ resp_searchform(const struct req *req) html_print(req->q.arch ? req->q.arch : ""); printf("\">"); if (req->psz > 1) { - puts(", <SELECT NAME=\"manpath\">"); + puts(", in <SELECT NAME=\"manpath\">"); for (i = 0; i < (int)req->psz; i++) { printf("<OPTION "); if (NULL == req->q.manpath ? 0 == i : @@ -395,7 +395,7 @@ resp_searchform(const struct req *req) } puts("</SELECT>"); } - puts(".\n" + puts("—\n" "<INPUT TYPE=\"reset\" VALUE=\"Reset\">\n" "</FIELDSET>\n" "</FORM>\n" @@ -408,7 +408,15 @@ resp_index(const struct req *req) { resp_begin_html(200, NULL); + puts("<H1>\n" + "Online manuals with " + "<A HREF=\"http://mdocml.bsd.lv/\">mandoc</A>\n" + "</H1>"); resp_searchform(req); + puts("<P>\n" + "The <A HREF=\"search?expr=Nm~^apropos$&sec=1\">" + "apropos</A> manual explains the query syntax.\n" + "</P>"); resp_end_html(); } |