Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix assertion found when plugging legacy man.cgi query string into my | Kristaps Dzonsons | 2011-12-16 | 1 | -2/+4 |
| | | | | man.cgi. | ||||
* | Edge in a little style. Why not. | Kristaps Dzonsons | 2011-12-16 | 1 | -1/+3 |
| | |||||
* | When routing to a "result" page in the cgi, remember our input parameters | Kristaps Dzonsons | 2011-12-16 | 1 | -38/+72 |
| | | | | | and repeat them in the search bar. This is handy. While here, make the QUERY_STRING parser a bit simpler. | ||||
* | Have results table inherit the small font. | Kristaps Dzonsons | 2011-12-16 | 1 | -0/+1 |
| | |||||
* | Make sure that "any" is UINT64_MAX, not just INT_MAX, else "any" won't | Kristaps Dzonsons | 2011-12-16 | 1 | -2/+2 |
| | | | | cover all types. Found after some database trawling. | ||||
* | Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-character | Kristaps Dzonsons | 2011-12-16 | 6 | -44/+56 |
| | | | | | bytes. This cuts down a little in index size and allows for cleaner extraction of information. | ||||
* | Make paths in the mandocdb(8) index relative to the databases' path | Kristaps Dzonsons | 2011-12-16 | 4 | -74/+72 |
| | | | | | | | prefix. This means that an index in, say, /usr/share/man will point to man1/foo.1 instead of /usr/share/man/man1/foo.1. Not only does this save a lot of space, it also allows manual trees to be moved around without any side effects to the mandocdb(8) databases. | ||||
* | Don't make man.cgi default font-size dictate manual style. | Kristaps Dzonsons | 2011-12-15 | 1 | -3/+3 |
| | |||||
* | Further tweaks for output consistency. | Kristaps Dzonsons | 2011-12-15 | 3 | -7/+15 |
| | |||||
* | Update man.cgi.7 with new CSS files. | Kristaps Dzonsons | 2011-12-15 | 1 | -9/+13 |
| | |||||
* | Some presentation polish in man.cgi: | Kristaps Dzonsons | 2011-12-15 | 5 | -182/+148 |
| | | | | | | | | | | | | - include search bar above result page (I relent: it's annoying to follow three links then press back three times to get a search page); - make man.cgi.css into man-cgi.css so Apache isn't confused by two handlers (css, cgi); - finally consolidate example.style.css to be under the div.mandoc css selector; - put catman pages under div.catman; - put search bar under div#mancgi; - reflect this properly in the bundled CSS files. | ||||
* | Note that archives are being hosted at gmane. | Kristaps Dzonsons | 2011-12-14 | 1 | -1/+7 |
| | |||||
* | Unbreak man.cgi's css directories when CSS_DIR isn't specified. | Kristaps Dzonsons | 2011-12-14 | 2 | -3/+5 |
| | |||||
* | Remove stray warnx() left in the manpath.c code. | Kristaps Dzonsons | 2011-12-13 | 1 | -2/+1 |
| | |||||
* | Have manpath.c properly use manpath(1), that is, using -C and -m and so on. | Kristaps Dzonsons | 2011-12-13 | 2 | -45/+54 |
| | | | | | This also cleans up the code a little bit. While here, make some functions static that are only used within manpath.c. | ||||
* | Compatibility support fgetln() on Linux. This uses the BSD-licensed | Kristaps Dzonsons | 2011-12-13 | 5 | -3/+129 |
| | | | | | | | | | | implementation from NetBSD tnftpd, Christos Zoulas (copyright message retained in the compat_fgetln.c file). Patch verified by schwarze@. He notes that you'll need -pthread for -static binaries (due to libdb), so I've noted that -static should really only be used for BSD UNIX. While here, add some forgotten goop to the Makefile, building and cleaning extra manpages. | ||||
* | implement -C (alternative config file) for apropos(1) and mandocdb(8), | Ingo Schwarze | 2011-12-12 | 9 | -50/+144 |
| | | | | | including various tweaks to the whatis(8) manual; ok kristaps@ | ||||
* | Explain where .so paths are rooted, and why, and discourage its use; | Ingo Schwarze | 2011-12-11 | 1 | -2/+18 |
| | | | | feedback and ok jmc@, suggested by and ok kristaps@. | ||||
* | Ugh, environmental variables are Ev, not Er. Fix typos. | Kristaps Dzonsons | 2011-12-11 | 1 | -2/+2 |
| | |||||
* | Note CSS_DIR in man.cgi.7. | Kristaps Dzonsons | 2011-12-11 | 1 | -1/+3 |
| | |||||
* | When 303'ing a search directly to a page, remember to specify its manroot. | Kristaps Dzonsons | 2011-12-11 | 1 | -57/+54 |
| | | | | | | Also allow for a CSS_DIR to specify alternate CSS locations. Finally, some clutter as I assume that "css" and "progname" are already HTML-safe. | ||||
* | Begin working on release notes. Also whitespace-fix man.cgi.7. | Kristaps Dzonsons | 2011-12-10 | 2 | -8/+36 |
| | |||||
* | Update man.cgi.7 to note compatibility and running with multiple roots. | Kristaps Dzonsons | 2011-12-10 | 1 | -16/+64 |
| | |||||
* | Slip in a fix to allow for empty cache directories. | Kristaps Dzonsons | 2011-12-10 | 1 | -2/+2 |
| | |||||
* | Finishing touches on multi-manroot man.cgi. If more than one root is | Kristaps Dzonsons | 2011-12-10 | 1 | -5/+24 |
| | | | | | specified, write them out using a SELECT box. Else write nothing (the manroot will still be checked if it's specified). | ||||
* | Switch on "manpath=" handling, which I call the "manroot" (as "manpath" is | Kristaps Dzonsons | 2011-12-10 | 1 | -29/+46 |
| | | | | | | | | reserved for paths within a manroot). This functionality is bare-bones: right now, the default manroot is the first one scanned from the cache directory. At some point this will be sexy and smooth, but it's easy to upgrade functionality by modifying pathgen() and so forth. If a manroot isn't parsed from the "manpath=", results are always empty. | ||||
* | Encode "manroot" into file URL and parse it properly. Right now this | Kristaps Dzonsons | 2011-12-10 | 1 | -14/+27 |
| | | | | just uses the first manroot by default. | ||||
* | Avoid leaking index records: | Ingo Schwarze | 2011-12-10 | 1 | -21/+25 |
| | | | | | Before allocating a record for a file, first make sure we actually want to use the file. | ||||
* | Big upgrade and polish for cgi.c. | Kristaps Dzonsons | 2011-12-10 | 1 | -163/+284 |
| | | | | | | | | | | | | | | | | | | | - Deprecate kvals (key/value pairs for QUERY_STRING values). Since there's only one place that uses this, kval_parse (now http_parse()) dumps directly into struct query, which is more high-level. - Put query values directly into struct req. - The biggest difference is dynamic support for multiple "manroots". A "manroot" is a path with an "etc/catman.conf" file. When the cgi starts, it (prefix) recurses through its CACHE_DIR searching for "etc" directories. When one's found, it sees if a catman.conf file exists. This is marked as a manroot and appended to a list. The name of a manroot is the path without slashes (e.g., OpenBSD/4.9 -> "OpenBSD 4.9"). Right now "manroot" isn't enabled. The first manroot is chosen as the real one. I'll add the interface to it in the next checkins, but it'll be quite simple. | ||||
* | Plug a memory leak in single_search(). | Kristaps Dzonsons | 2011-12-10 | 1 | -2/+3 |
| | |||||
* | Fix selection of arch-specific manuals: | Ingo Schwarze | 2011-12-10 | 1 | -3/+7 |
| | | | | | | (1) Correctly compare cat vs. man paths. (2) Compare arch (and section) names case-insensitively. Problem noticed by kristaps@. | ||||
* | Adding some missing "install" bits to Makefile. | Kristaps Dzonsons | 2011-12-10 | 1 | -8/+20 |
| | |||||
* | FreeBSD's man.cgi uses a "default" value for no arch. | Kristaps Dzonsons | 2011-12-10 | 1 | -4/+11 |
| | |||||
* | Add some periods (just to see if mlmmj is working again...). | Kristaps Dzonsons | 2011-12-10 | 1 | -3/+3 |
| | |||||
* | Forgot to make whatis the default during abstraction. Do it again. | Kristaps Dzonsons | 2011-12-09 | 1 | -3/+5 |
| | |||||
* | Abstract query extraction code. Perform some readability fixes while here. | Kristaps Dzonsons | 2011-12-09 | 1 | -138/+154 |
| | |||||
* | When specifying an architecture to whatis(1)/apropos(1)/man.cgi(7), do a | Kristaps Dzonsons | 2011-12-09 | 1 | -3/+5 |
| | | | | | | comparison only if the manual specifies an architecture, otherwise let it through. Looked over by schwarze@. This brings us much more in line with OpenBSD's behaviour. | ||||
* | Tweak pformatted(): | Ingo Schwarze | 2011-12-09 | 1 | -13/+14 |
| | | | | | | | * If the first section is empty, use the file name as .Nd. * No need to check (len > 0) after successful fgetln(3). * Improve some comments and strip trailing whitespace. ok kristaps@ | ||||
* | Considerably tidy mandocdb(8) catman descriptions by skipping to the first | Kristaps Dzonsons | 2011-12-09 | 1 | -3/+3 |
| | | | | hyphen-space combo, not the last hyphen as done previously. | ||||
* | Strip backspace encoding from preformatted manuals. This cleans up a lot | Kristaps Dzonsons | 2011-12-09 | 1 | -1/+13 |
| | | | | of catpage entries in the mandoc databases. | ||||
* | If no man.cgi `whatis' results are found, offer a quick link to the apropos | Kristaps Dzonsons | 2011-12-08 | 1 | -4/+42 |
| | | | | query mode. | ||||
* | Fix stupid typo: strlcpy() instead of strlcat(). | Kristaps Dzonsons | 2011-12-08 | 1 | -2/+2 |
| | |||||
* | Clean up grok of preformatted manual description. | Kristaps Dzonsons | 2011-12-08 | 1 | -29/+36 |
| | | | | | | (1) put fclose() at the end, as line isn't valid afterward (see fgetln()) (2) clean up loops to be more readable to my old eyes (3) mandate trailing newline, nul-terminate, and use strrchr | ||||
* | index_prune always counted the free slots, | Ingo Schwarze | 2011-12-08 | 1 | -10/+10 |
| | | | | but didn't tell anybody about them, so they weren't reused | ||||
* | If arguments are passed to mandocdb(8) in "default" mode, then use | Kristaps Dzonsons | 2011-12-08 | 1 | -5/+12 |
| | | | | | realpath() to convert them into absolute paths before putting the traversed subdirectory filenames into the index. | ||||
* | Look for man.cgi files in the cache, not under the volume path. | Kristaps Dzonsons | 2011-12-08 | 1 | -3/+3 |
| | |||||
* | First, remove the catman(8) jobstart() stuff. It only copies files. | Kristaps Dzonsons | 2011-12-08 | 1 | -114/+34 |
| | | | | | | Second, when creating the destination filename, append the index's file (which is an absolute path) to the cache directory, not to the index's directory name. | ||||
* | Tweak to make man.cgi's search results validate properly. | Kristaps Dzonsons | 2011-12-07 | 1 | -1/+4 |
| | |||||
* | Apropos and man.cgi should strcasecmp their output sorting. | Kristaps Dzonsons | 2011-12-07 | 2 | -7/+17 |
| | | | | | man.cgi should sort in the first place -- it wasn't before. Revert uppercasing of man.cgi title. | ||||
* | Add skeleton man.cgi.css file. I don't think this should become more | Kristaps Dzonsons | 2011-12-07 | 2 | -21/+34 |
| | | | | | complicated than this. Also make the title be printed out in caps as it is in apropos(1) and whatis(1). |