Rundoc is an Ant task designed to help with the single- sourcing of program documentation. This task replaces special commands embedded within text files with their output in a specified format. Currently, only Docbook format is supported. It was written to keep sample code output in program documentation synchronized with the actual output of the current code, by running the referenced code when the documentation is built.
deplate converts wiki-like markup to LaTeX (standard classes, koma, dramatist, sweave), HTML/PHP (single page, chunked/website, HTML, or s5-based slideshow), DocBook (article, book, man/ref page), and really plain text. Currently supported input formats are viki and Ruby's rdoc. The viki markup supports footnotes, citations, index, table of contents, embedded LaTeX for mathematics, integration with R for dynamically generated figures and tables, and more. Output can be customized via page templates.