Unixdoc - an Integrated Offline and Online Documentation Framework
Introduction
The traditional Unix help command is the ubiquitous man command, which displays a page using a pager (such as GNU less), and lets you read it forward and backward and search for patterns there. Obviously this solution is inadequate, and several better solutions evolved. The purpose of Unixdoc (a pun on the Perl Perldoc command) is to create one fully-featured and integrated system for offline and online technical documentation.
How Unixdoc Works
The following figure shows the Unixdoc workflow:
Essentially it receives inputs in most popular formats:
- Man page (formatted using nroff macros)
- perl POD
- The WikiWiki formats of MediaWiki and other popular wikis.
- HTML and XHTML.
- Etc.
And displays them using several popular media: a terminal display, a web browser, a graphical user interface, etc.
That's not all. Other functions that Unixdoc will provide are:
- Hyperlinking.
- Applying visual and logical style to the document.
- Annotating using keywords.
- Searching using keywords, phrases, words in the internal hyperlinks that point to the document (a la Google's PageRank algorith ).
- Including and embedding rich media such as images, videos, sounds, mathematical equations and line drawings.
Eric Raymond talks about "the present chaos (of Unix documentation) and a Possible Way Out" in his book "The Art of Unix Programming". He gives DocBook/XML as the possible solution, and this may actually be a good final format for Unixdoc.