HowTo build the docs
Since you are already reading this, I assume that you have succeeded in checking
out the TortoiseSVN or just the doc sources.
There are some tools for processing the XML input that you need to build the docs.
Scripts and dtd are included, but the executables (formatting processor, microsoft
help compiler, translation tools) have to be installed separately.
You will also need to have a Java Runtime Environment version 1.3.x or above.
tools\fop\ - the fop processor
tools\xsl\ - the docbook xsl files from sourceforge
tools\ - xsl processor, hhc.exe, ...
you can download all the required tools as a zip package from our website:
Note that building the documentation for TSVN version 1.5 and later, you need the
Currently you can build the docs using NAnt. Download a current release from:
Please note that having spaces in your directory path will (for the time being)
cause the documentation build process to fail.
To build only the english docs, that's all you need. If you want to build translated
docs as well, you need:
- A Python runtime environment
- The Python libxml2 bindings
- Aspell (optional) for spell checking translations
For Chm docs you need:
- Microsofts makehm.exe, Part of visual studio, sources available on msdn
- Microsofts html workshop, Binaries available on msdn
The most important directories for you are:
source\en - contains the english XML text source.
images\en - contains the base (english) images for the docs. If you don't localize
your screenshots, these will be used instead.
images\* - contains the localized screenshots for other languages.
po\* - contains the translations for each language. Best edited with poEdit.
xsl\ - contains the stylesheets for the doc creation
dtd\ - contains the tools and the dtd to validate and build the docs.
You might want to place your tools directory somewhere else on your
harddisk, if you want to use it to build other docs too. This will
however require tweaking the build scripts.
I'd recommend to leave dtd in place, so the source stays
compatible between TSVN doc developers.
Building the docs:
A NAnt build script has been provided to build the docs. When doc.build is run for
the first time, the template doc.build.include.template is copied to doc.build.include.
For local customisations, copy the doc.build.user.tmpl file to doc.build.user and
modify that copy to point to the location of the tools on your system.
If you want to build the Japanese docs, you have to copy xsl\ja\userconfig.template.xml
to xsl\ja\userconfig.xml and adjust the path settings to the japanese fonts.
Currently nant supports three targets "all", "clean" and "potfile".
- "all" builds all the docs that are out of date. Runs the target "potfile" too.
- "clean" cleans only the output directory
- "potfile" updates the po template from the source document.
All other parameters are defined in doc.build.include. You can override all settings
in doc.build.user or via the NAnt command line.
If you want to translate the docs into a new language (assume french), just go ahead
and copy po\doc.pot to po\fr.po. Start to translate phrases and test your translation
with "TranslateDoc fr" and "makedoc tortoisesvn fr".
Place localized screenshots in images\fr. The file "screenshots.txt" contains some
instructions on how/where the images have been captured.
Now go ahead and translate the rest.