mantisbt:docbook
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mantisbt:docbook [2008/08/25 13:32] – jreese | mantisbt:docbook [2025/12/30 07:11] (current) – [MantisBT 1.3 and later] fix broken link dregad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Working with DocBook Manuals ====== | ||
| + | ===== Required Tools ===== | ||
| + | |||
| + | No special tools are needed to edit DocBook files, a plain-text editor is good enough to do the job, although a specialized XML editor may be useful. | ||
| + | |||
| + | In order to build the manuals however, you need to have a working DocBook tool chain installed on your system. | ||
| + | |||
| + | |||
| + | ==== MantisBT 1.3 and later ==== | ||
| + | |||
| + | MantisBT 1.3 uses [[https:// | ||
| + | |||
| + | < | ||
| + | $ sudo apt-get install publican | ||
| + | </ | ||
| + | |||
| + | This was tested successfully on Ubuntu 14.04 LTS, but should work with older versions too. | ||
| + | |||
| + | |||
| + | ==== MantisBT 1.2 ==== | ||
| + | |||
| + | To build MantisBT 1.2 documentation, | ||
| + | |||
| + | The command below installs the toolchain on **Ubuntu**-based systems (tested successfully on Ubuntu 12.04 LTS and 13.04 desktop) | ||
| + | < | ||
| + | $ sudo apt-get install docbook docbook-dsssl docbook-slides docbook-utils linuxdoc-tools make openjade xmlto | ||
| + | </ | ||
| + | |||
| + | For **Debian**-based Linux distributions, | ||
| + | < | ||
| + | $ sudo aptitude install docbook docbook-dsssl docbook-slides docbook-utils linuxdoc-tools make openjade xmlto | ||
| + | </ | ||
| + | |||
| + | For **Fedora**-based distros, run this command instead: | ||
| + | < | ||
| + | $ su -c 'yum groupinstall " | ||
| + | </ | ||
| + | |||
| + | ===== Building a DocBook Manual ===== | ||
| + | |||
| + | ==== MantisBT 1.3 and later ==== | ||
| + | |||
| + | GNU Make files are present in each DocBook' | ||
| + | |||
| + | To build all DocBooks in default // | ||
| + | cd / | ||
| + | make | ||
| + | </ | ||
| + | |||
| + | To process a specific DocBook, first go to the corresponding directory, e.g. for Administrator' | ||
| + | </ | ||
| + | |||
| + | then execute the appropriate command: | ||
| + | |||
| + | * Build it in default (// | ||
| + | * Validate the XML files, without building the DocBook < | ||
| + | * Build a PDF < | ||
| + | * Clean build in all available formats < | ||
| + | |||
| + | This is just a few examples, refer to the [[https:// | ||
| + | |||
| + | It is also possible to manually execute Publican, e.g. < | ||
| + | publican build --langs=en-US --formats=html-desktop, | ||
| + | </ | ||
| + | |||
| + | ==== MantisBT 1.2 ==== | ||
| + | |||
| + | We will use the Developer' | ||
| + | |||
| + | Enter the directory containing the preferred manual: | ||
| + | < | ||
| + | $ cd / | ||
| + | </ | ||
| + | |||
| + | Run '' | ||
| + | < | ||
| + | $ make pdf html | ||
| + | $ ls -R build/ | ||
| + | build: | ||
| + | developers | ||
| + | |||
| + | build/ | ||
| + | dev.database.html | ||
| + | dev.database.install.html | ||
| + | </ | ||
| + | |||
| + | For installing manuals into a specific location, such as for building manuals on web servers, first clean and build the desired DocBook manuals, and then run the install routine with the necessary install path: | ||
| + | < | ||
| + | $ make clean | ||
| + | $ make pdf html | ||
| + | $ make INSTALL_DIR=/ | ||
| + | </ | ||
| + | |||
| + | - or for cron jobs (order matters): | ||
| + | < | ||
| + | $ make INSTALL_DIR=/ | ||
| + | </ | ||
| + | |||
| + | ===== Simple Build Script ===== | ||
| + | |||
| + | Taking it one step further, there is a Python script in '' | ||
| + | |||
| + | < | ||
| + | $ docbook-manual.py < | ||
| + | </ | ||
| + | |||
| + | The last parameter is optional, and can be a space-separated list of docbook languages to build. | ||
| + | |||
| + | < | ||
| + | $ / | ||
| + | $ tree / | ||
| + | mantis | ||
| + | -- en | ||
| + | ---- administration_guide | ||
| + | ---- developers | ||
| + | -- de | ||
| + | ---- administration_guide | ||
| + | ---- developers | ||
| + | </ | ||
