Chapter 10. Online Documentation
Some common kinds of documentation---for example, manuals for computer programs---present a unique challenge to the author. In many cases, it would be nice to be able to provide online documentation in addition to a typeset manual.
One option is to maintain two different documents: one for publication and one for online access. This is difficult to maintain and is prone to error. As the documentation evolves, it is almost inevitable that some changes to one document will not be implemented in the other.
Another option is to include only very limited formatting information in the document designed for publication so that it is easy to “strip out” the formatting commands and produce an online manual. The unfortunate side effect of this approach is that the resulting typeset documentation doesn't have a very professional appearance.
With care, TeX can be the basis for a middle-ground approach to this problem.[109] If you are starting a new documentation project, TeXinfo and LameTeX provide two alternatives for the production of typeset and online documentation from the same source. \LaTeX2HTML and \LaTeX2hy provide alternatives that may be suitable for existing documentation.
You'll find that the best results occur when you plan ahead: if you know that you need both typeset and ASCII documentation, try to use tools that will make the task easier. But, even if you try to plan ahead, it's not uncommon to find out after the fact that you need or want ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access