Skip to content
Kurt Stam edited this page Sep 12, 2013 · 3 revisions

How to build the DTGov Guide Book in Docbook format

This DTGov wiki is the source of the DTGov Guide document. We convert the asciidoc into an intermediate Docbook format, which then is used to create HTML and PDF versions. You can edit the pages right here on the github wiki or you can check out the wiki repository locally using:

git clone [email protected]:Governance/dtgov.wiki.git

Then run:

mvn clean install

and it will build HTML and PDF versions in the target/docbook/publish/en-US directory.

Q&A
  1. I spotted a typo, can I fix it?

    Yes please help us maintain the documentation. Simpy update the appropriate page right on github. Our nightly build will distribute the changes to docbook and the html and pdf versions.

  2. How do I add an image?

    Images can not be uploaded through the github UI. Instead you need to add them to the images directory in the root of the dtgov.wiki repo and then push it up to github. You can then reference your image on the page using image::images/<myimage>.ext. NOTE: Make sure to add an empty line before and after this image reference.

  3. How do add a numbering and references?

    You should add a label -we use the convention <type>-<chapter>-<label>, i.e. [[figure-gs-screenshot-of-the-dtgov-ui]]- , a title i.e. .Welcome screen of the dtgov-ui. and then the thing itself -for an image use something like image::images/dtgovui.png[Screenshot of the dtgov-ui]. The label figure-gs-screenshot-of-the-dtgov-ui can be used to link to this figure using <<figure-gs-screenshot-of-the-dtgov-ui>>.

  4. How do I add a chapter to the book in docbook?

    We add chapters as different files, and then include them in the Guide.asciidoc file. At docbook generation time it will pull in the chapter into the Guide.xml file. Also we add a link in the _Sidebar.asciidoc page to have a link when looking at it at Github in wiki style.