|
![]() |
Idiopidae: code is code; prose is prose.UPDATE: Be sure to look at the Vellum manual for a more complete example of what Idiopidae can do. You can grab the LaTeX code using Bazaar by typing bzr pull http://zedshaw.com/repository/vellum/ to see Idiopidae in a live project. Finally, the easiest way to install Idiopidae now is via: easy_install zapps pygments idiopidae. The rest of this page has been updated to reflect this. Read my blog for today and yesterday for more information and links about Vellum and Idiopidae. Idiopidae is a tool that helps technical documentation authors document software projects keeping the code in the code, and the prose in the prose. Idiopidae uses include/exclude statements to merge the code and the prose to produce the final result for publication. This lets the author work on the quality of the prose without need to focus on formatting, and on the code without worrying about it’s location in the book. The goal for Idiopidae is that it allows me (and other authors) to create LaTeX, HTML, wiki text, plain text, or anything documents that include source-highlighted source from an active functioning project with the least amount of interference. It should work for any language, and should let you put those languages into any book you’re working on. FeaturesIdiopidae already has most of the features you need to do single file prose that references multi-file source code. It should already work with HTML, Wiki text, plan text, and LaTeX, but you may have to play with it to get things right. Current list of features are:
Downloads and SourceYou can download the latest version 0.5 or you can grab the source using Bazaar by doing:
InstallationYou can also install it directly using easy_install with the command:
Which should be the latest version as well. TestingThen you should have the idio command line tool. The idio command just takes a file and expects all referenced source files to be accessible from your current working directory. To try it do this: > idio tests/data/output.html That’s all there is to it. It will output your code sections. ToolsIdiopidae is written in Python and uses Pygments for source formatting, Zapps for parsing, and Nose for testing. SamplesThe best sample is currently the Vellum manual which is the manual for my Vellum project done with LaTeX and Idiopidae. This manual is a work in progress so you can periodically grab it when I announce or you can grab the bzr repository for Vellum. See the Vellum project page for more information. The best section in the Vellum manual to look at is Appendix A, which walks through all of Vellum’s code. There’s a few other samples you can look to see what a document looks like at the different stages of processing:
The final document was produced by doing: > idio output/projects/idiopidae/sample.html > output/projects/idiopidae/sample.final.html Which takes the HTML produced by Textile and merges in all the code from Idiopidae. |