1.1. Docbook and maven
I was looking for a maven plugin that produces documentation with syntax highlighting from docbook .
1.2. For the impatient
This article has been written in docbook , and generated via maven with the docbkx maven plugin .
You can check it out
*
as multi pages html
*
as a single html page
*
in PDF
You can download a ready-to-build maven project here http://www.springfuse.com/blog/docbook/docbook-1.0.0-src.zip . It is ready to be customized for your needs.
Five Minute Introduction
(Note that the actual manual is located here. Also note that this plugin has not been made available through the central Maven repository yet; you should instead add http://agilejava.com/maven/ to your list of repositories.)
The Docbkx Tools project provides a number of tools for supporting DocBook in a Maven environment. This may seem odd to you, since 1) Maven 2 is supposed to support DocBook natively, relying on Doxia, and 2) there is already another DocBook plugin at mojo.codehaus.org.
The thruth however is that DocBook support in Doxia is fairly limited, mainly because Doxia as a framework supports only a small fraction of the concepts found in DocBook. The subset of DocBook supported by Doxia is not even close to simplified DocBook.
The DocBook plugin at mojo.codehaus.org is supporting a wider range of DocBook markup, and is in fact more similar to the DocBook tools provided with this project. There are however some significant differences:
* The focus is on ease of use.
* You should not be required to install additional stuff to your hard disk in order to generate content from your DocBook sources. Simply adding a reference to the plugin in your POM should be sufficient.
* This project focuses on providing dedicated support for particular DocBook XSL stylesheet distributions. That means you can rely on the dedicated parameterization mechanism of Maven Plugins to pass in the XSLT parameters defined for a particular version and type of XSLT stylesheet.
* In the DocBook Plugin found at mojo.codehaus.org, you will be required to download a specific version of the DocBook XSL stylesheets manually. The plugins packaged contain the stylesheets as well. (In this project, a particular version of the stylesheets is closely tied to a particular version of the plugin. That you means you can always rely on the plugin's documentation to know which parameters you could pass in.)
* The DocBook plugin found at mojo.codehaus.org requires you to have access to the Internet in order allow the plugin to resolve URI's. The plugins provided in this project act differently: if your DocBook sources are referening to a DTD, then you can simply add a dependency to a jar file containing the DTD and related entities, and the plugin will make sure that all references will be resolved correctly.
Docbook2odf is a toolkit that automaticaly converts DocBook to OASIS OpenDocument (ODF, the ISO standardized format used for texts, spreadsheets and presentations). Conversion is based on a XSLT which makes it easy to convert DocBook->ODF, ODT, ODS and ODP as all these documents are XML based.
Also goal of docbook2odf is to generate well formatted documents in OpenDocument, ready to be used in instant, with actually considering current rules of the Corporate Identity of organizations. Final results should not be restricted to text like documents but also many other forms could be generated, like presentations, charts or forms with images and multimedia.
The result is provided in a one zipped ODF file (.odt/.odp/.ods) with all required content. There are group of utilities like docbook2odt, docbook2ods and docbook2odp as docbook2odf is actually universally converting to these respective formats.
Docbook2odf is open source. This means that the source codes is not only available for download free of charge, but developers have access to the source code and may modify it.
Dopus is a Docbook publishing framework. It was designed with portability and extensibility in mind. Dopus can run on any Windows or Unix platform that supports Java.
Dopus was developed during a project for T-Systems Germany. T-Systems generously agreed to open source the newly developed parts of Dopus (Ant script and Docbook customization layer) for which we are very gratefull.
We have agreed to host Dopus here on our website as a free product we want to give back to the Docbook community. The Dopus framework is distributed under the GNU General Public License. The various parts of the Dopus framework are distributed under their respective (free) licenses.
Dopus is still pretty young but is already used in various projects.
The DocBook Doclet (dbdoclet) creates DocBook code from Java source documentation. It is helpful, if you want to print reference handbooks of your API. The program can be used as javadoc doclet or as standalone application. The standalone application can