summaryrefslogtreecommitdiffstatshomepage
path: root/mandoc-db.c
Commit message (Collapse)AuthorAgeFilesLines
* Add configurations (`Cd') to mandoc-db mining.Kristaps Dzonsons2011-05-041-3/+22
| | | | | 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-3/+22
|
* Have mandoc-db grok `Dt'/`TH' manual title as well.Kristaps Dzonsons2011-05-031-1/+7
|
* Back out stripping of non-predef and non-special escape sequences fromKristaps Dzonsons2011-05-021-5/+4
| | | | | 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-16/+55
| | | | characters. This is a work-in-progress that has some issues.
* Let mandoc-db grok `St' tokens.Kristaps Dzonsons2011-04-281-3/+21
|
* Let mandoc-db also collect -man descriptions.Kristaps Dzonsons2011-04-121-6/+26
|
* Have mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance)Kristaps Dzonsons2011-04-111-30/+80
| | | | | 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-17/+19
| | | | | | 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-19/+15
|
* Use a little more horsepower in parsing out NAME sections from -manKristaps Dzonsons2011-04-051-17/+57
| | | | manuals. This covers the majority case.
* Fix type- and NULL-check to be correct node (last, not child). PreventsKristaps Dzonsons2011-04-051-2/+2
| | | | segfault in NetBSD.
* Add mandoc-db.c checking for utility-name in NAME section of -manKristaps Dzonsons2011-04-051-4/+78
| | | | documents.
* Have `Fd' detection in mandoc-db also look for local includes (i.e.,Kristaps Dzonsons2011-04-041-3/+3
| | | | those that are quoted and not angular-bracketed).
* Add manual page for mandoc-db (mostly to document the file format ofKristaps Dzonsons2011-04-041-17/+18
| | | | | 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-60/+84
| | | | 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-30/+38
| | | | | | 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.