diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-07 19:19:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-07 19:19:01 +0000 |
commit | 1cbe4572a756539917456c7e9913fa4ba180a719 (patch) | |
tree | 754b37f3124cbe42ed8c16c979c74856443ce111 /man.cgi.3 | |
parent | b8d5cf8cee9a184753968d5512aa913c9d9d4348 (diff) | |
download | mandoc-1cbe4572a756539917456c7e9913fa4ba180a719.tar.gz |
update developer documentation
Diffstat (limited to 'man.cgi.3')
-rw-r--r-- | man.cgi.3 | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -55,14 +55,13 @@ the data directory containing all the manual trees; calls .Fn parse_manpath_conf ; .It -calls -.Fn parse_path_info ; -.It -calls -.Fn parse_query_string if .Ev PATH_INFO -is empty; +is empty, calls +.Fn parse_query_string ; +otherwise, +calls +.Fn parse_path_info ; .It validates the manpath and the architecture; .It @@ -227,9 +226,14 @@ to print the HTTP headers, then prints the HTML header up to the opening tag of the <body> element, then copies the file .Pa header.html to the output, if it exists and is readable. -.It Ft void Fn resp_searchform "const struct req *req" +.It Ft void Fn resp_searchform "const struct req *req" "enum focus focus" This generator prints a search form, filling it with data from the provided request object. +If the +.Fa focus +argument is +.Dv FOCUS_QUERY , +it sets the document's autofocus to the query input box. .It Ft void Fn resp_show "const struct req *req" "const char *file" This wrapper dispatches to either .Fn resp_catman @@ -278,5 +282,6 @@ and does not ascend to parent directories. .Sh SEE ALSO .Xr mandoc 3 , .Xr mansearch 3 , +.Xr mchars_alloc 3 , .Xr mandoc.db 5 , .Xr man.cgi 8 |