When having to write documentation for different formats, I always use the reStructuredText  (or reST) format. As this is something that happens quite often, it made sense to put some effort in automating the set up of a new documentation framework, a reusable set up script.
The standard documentation framework that I use consists of Sphinx , which takes care of converting source pages written in reST into several formats: For example HTML, but also PDF or something more exotic like ePub files. Note that Sphinx already comes with a setup script, sphinx-quickstart  - but this doesn't take care of deploying files.
In order to be able to create a reusable framework, I split the necessary files into three groups:
- The Sphinx configuration itself,
- version information, and
- a LaTeX formatting template.
The Sphinx configuration
This part consists of two different files; A generic Makefile  to build the different artifact types - as well as a Sphinx configuration file (conf.py ) containing basic information about the project, and plugin details. These files rarely change after having initialized the framework.
The version information (version, or build number) can change per release, and is therefore contained in a separate …