diff options
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 51 |
1 files changed, 27 insertions, 24 deletions
@@ -105,37 +105,39 @@ static const char *scriptname = SCRIPT_NAME; static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2, 9}; static const char *const sec_numbers[] = { - "0", "1", "2", "3", "3p", "4", "5", "6", "7", "8", "9" + "0", "0p", "1", "1p", "2", "3", "3p", "3lua", "4", "5", "6", "7", "8", "9", "9lua" }; static const char *const sec_names[] = { "All Sections", + "0p - POSIX Headers", "1 - General Commands", + "1p - POSIX Utilities", "2 - System Calls", "3 - Library Functions", - "3p - Perl Library", + "3p - POSIX Functions | Perl Library", + "3lua - Lua Modules", "4 - Device Drivers", "5 - File Formats", "6 - Games", "7 - Miscellaneous Information", "8 - System Manager\'s Manual", - "9 - Kernel Developer\'s Manual" + "9 - Kernel Developer\'s Manual", + "9lua - Lua Kernel Bindings" }; static const int sec_MAX = sizeof(sec_names) / sizeof(char *); static const char *const arch_names[] = { - "amd64", "alpha", "armv7", "arm64", - "hppa", "i386", "landisk", "loongson", - "luna88k", "macppc", "mips64", "octeon", - "powerpc64", "riscv64", "sparc64", - - "amiga", "arc", "armish", "arm32", - "atari", "aviion", "beagle", "cats", - "hppa64", "hp300", - "ia64", "mac68k", "mvme68k", "mvme88k", - "mvmeppc", "palm", "pc532", "pegasos", - "pmax", "powerpc", "sgi", "socppc", - "solbourne", "sparc", - "sun3", "vax", "wgrisc", "x68k", + "amd64", "arm64", "i386", "vax", + "tahoe", "hp300", "alpha", "armv7", + "hppa", "landisk", "loongson", "luna88k", + "macppc", "mips64", "octeon", "powerpc64", + "riscv64", "sparc64", "amiga", "arc", + "armish", "arm32", "atari", "aviion", + "beagle", "cats", "hppa64", "ia64", + "mac68k", "mvme68k", "mvme88k", "mvmeppc", + "palm", "pc532", "pegasos", "pmax", + "powerpc", "sgi", "socppc", "solbourne", + "sparc", "sun3", "wgrisc", "x68k", "zaurus" }; static const int arch_MAX = sizeof(arch_names) / sizeof(char *); @@ -439,19 +441,19 @@ resp_searchform(const struct req *req, enum focus focus) printf("<form role=\"search\" action=\"/%s\" method=\"get\" " "autocomplete=\"off\" autocapitalize=\"none\">\n" " <fieldset>\n" - " <legend>Manual Page Search Parameters</legend>\n", + " <legend>Manual Page Search Parameters</legend>\n" + " <div style=\"display: flex; flex-direction: row;\">\n", scriptname); /* Write query input box. */ - printf(" <label>Search query:\n" - " <input type=\"search\" name=\"query\" value=\""); + printf(" <input aria-label=\"Search query\" type=\"search\" name=\"query\" value=\""); if (req->q.query != NULL) html_print(req->q.query); - printf("\" size=\"40\""); + printf("\" style=\"flex-grow: 1;\""); if (focus == FOCUS_QUERY) printf(" autofocus"); - puts(">\n </label>"); + puts(">\n"); /* Write submission buttons. */ @@ -459,7 +461,7 @@ resp_searchform(const struct req *req, enum focus focus) "man</button>\n" " <button type=\"submit\" name=\"apropos\" value=\"1\">" "apropos</button>\n" - " <br/>\n"); + " </div>\n"); /* Write section selector. */ @@ -568,10 +570,10 @@ pg_index(const struct req *req) "<main>\n" "<p role=\"doc-notice\" aria-label=\"Usage\">\n" "This web interface is documented in the\n" - "<a class=\"Xr\" href=\"/%s%sman.cgi.8\"" + "<a class=\"Xr\" href=\"/%s%smandoc/man.cgi.8\"" " aria-label=\"man dot CGI, section 8\">man.cgi(8)</a>\n" "manual, and the\n" - "<a class=\"Xr\" href=\"/%s%sapropos.1\"" + "<a class=\"Xr\" href=\"/%s%smandoc/apropos.1\"" " aria-label=\"apropos, section 1\">apropos(1)</a>\n" "manual explains the query syntax.\n" "</p>\n" @@ -999,6 +1001,7 @@ pg_show(struct req *req, const char *fullpath) puts("<header>"); resp_searchform(req, FOCUS_NONE); puts("</header>"); + puts("<hr>"); resp_show(req, file); resp_end_html(); } |