summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/cgi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* make source vs. formatted guessing a bit more robustschwarze2014-07-131-1/+3
|
* By popular demand, bring man.cgi default mode closer to what man(1) does:schwarze2014-07-131-21/+47
| | | | | | Even when there are multiple pages with the same name in different sections, show one of them, using the same priorities as in the default man.conf(5) file.
* Install the manuals of the web interface below the same directoryschwarze2014-07-131-5/+5
| | | | | | | | 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@.
* Polish the search form using feedback from beck@ and others,schwarze2014-07-121-28/+97
| | | | in particular introduce a section dropdown and an architecture dropdown.
* No need for run-time configuration, add minimal compile-timeschwarze2014-07-121-18/+8
| | | | | configuration facilities, just two paths and two HTML strings. Show the title on all pages, not just the index page.
* Simplify: Delete 74 lines of code including one enum type, oneschwarze2014-07-121-99/+26
| | | | | | global lookup table, two functions, two function arguments, one struct member, one local variable, and the "search/" and "show/" part of the URIs, all without losing functionality.
* Start fixing issues that beck@ helped find:schwarze2014-07-121-38/+35
| | | | | | | | | | | | Distinguish between man(1) and apropos(1) mode by adding back the classical QUERY_STRING variable "apropos=". Change the default back to "apropos=0". Control it by adding a HTML <SELECT> element for it. Rename the "expr=" QUERY_STRING variable back to its classical name "query=", i don't see how the new name is better than the classical one. While here, drop the concept of a "legacy mode". Simply continue to support the features, and use what we consider best.
* fix the two links on the start pageschwarze2014-07-121-8/+9
|
* make http decode linear time. also remove a redundant null check.tedu2014-07-111-7/+9
| | | | ok schwarze
* http headers must end lines with CRLF. ok schwarzetedu2014-07-111-9/+10
|
* Bring in man.cgi(8) to maintain it in our tree together with mandoc.schwarze2014-07-111-0/+954
It will not be enabled in the build nor installed by default. A comment in the Makefile lists the three simple steps needed to build, install, and run it on the two machines worldwide that are going to run it. deraadt@ agrees with having the code in the tree.