summaryrefslogtreecommitdiffstats
path: root/mandoc-db.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename mandoc-db to makewhatis. On the suggestion of schwarze@; I agree.Kristaps Dzonsons2011-05-131-962/+0
| | | | Add initial version notes.
* Correctly catch `Vt' semicolon in mandoc-db.Kristaps Dzonsons2011-05-121-2/+3
|
* Make sure that we check for the \(en, \(em, \-, and - separators forKristaps Dzonsons2011-05-121-3/+8
| | | | the heuristic dance to grab manual descriptions from man documents.
* Grok manual architecture in mandoc-db.c.Kristaps Dzonsons2011-05-041-0/+5
|
* Add configurations (`Cd') to mandoc-db mining.Kristaps Dzonsons2011-05-041-2/+21
| | | | | Also put some notes into index.sgml to the effect that mandoc-db exists, but is not linked to the build.
* Pick up authors in mandoc-db.Kristaps Dzonsons2011-05-031-2/+21
|
* Have mandoc-db grok `Dt'/`TH' manual title as well.Kristaps Dzonsons2011-05-031-0/+6
|
* Back out stripping of non-predef and non-special escape sequences fromKristaps Dzonsons2011-05-021-4/+3
| | | | | input (this is not yet possible with mandoc_escape(), which depends on nil-terminated strings).
* Have mandoc-db strip out escapes that aren't special or predefinedKristaps Dzonsons2011-05-011-15/+54
| | | | characters. This is a work-in-progress that has some issues.
* Let mandoc-db grok `St' tokens.Kristaps Dzonsons2011-04-281-2/+20
|
* Let mandoc-db also collect -man descriptions.Kristaps Dzonsons2011-04-121-5/+25
|
* Have mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance)Kristaps Dzonsons2011-04-111-29/+79
| | | | | in the index. This allows, with both the btree and index, full emulation of apropos(1) and other goodies.
* Use dbt_xxxx functions to stash both filename and manual section in theKristaps Dzonsons2011-04-111-16/+18
| | | | | | value part of the index. This is the actual manual section---before, mandoc.cgi was relying on the file suffix, but this can be (e.g.) .man or whatnot. This is The Correct Way (tm).
* Lint-checks over mandoc-db.c.Kristaps Dzonsons2011-04-051-18/+14
|
* Use a little more horsepower in parsing out NAME sections from -manKristaps Dzonsons2011-04-051-16/+56
| | | | manuals. This covers the majority case.
* Fix type- and NULL-check to be correct node (last, not child). PreventsKristaps Dzonsons2011-04-051-1/+1
| | | | segfault in NetBSD.
* Add mandoc-db.c checking for utility-name in NAME section of -manKristaps Dzonsons2011-04-051-3/+77
| | | | documents.
* Have `Fd' detection in mandoc-db also look for local includes (i.e.,Kristaps Dzonsons2011-04-041-2/+2
| | | | those that are quoted and not angular-bracketed).
* Add manual page for mandoc-db (mostly to document the file format ofKristaps Dzonsons2011-04-041-16/+17
| | | | | the generated index and keyword databases). Add some documentation within mandoc-db.c.
* Have mandoc-db create an recno-addressed index of files alongside theKristaps Dzonsons2011-04-031-59/+83
| | | | keyword database, which references the index of hard-coding files.
* Have mandoc-db use config.h for strlcat(). Then create the btreeKristaps Dzonsons2011-04-031-29/+37
| | | | | | database from a directory, instead of a path. This is because it'll also output an index of files to that same directory. Add documentation to the local variable names, too.
* Add an initial keyword-indexer as an alternative front-end to libmandoc.a.Kristaps Dzonsons2011-04-021-0/+636
This will be used during BSDCan-2011, paired with a web front-end, as a demonstrandum of semantic annotations (mdoc) versus those of man. This isn't linked to the build in any way but for cleaning created files. This code has been heavily tested under valgrind and is known to work on GNU/Linux (needs -ldb library), all BSDs, and Mac OSX. Please don't repost this, for the time being, as I don't want to spoil the fun for the conference. This utility is still constantly under development (e.g., it will also generate a recno database of filenames and `Nd' output so that paths needn't be hard-coded) but is mature enough to warrant being checked in.