|5 years ago|
|autogenerate_config_docs||5 years ago|
|bin||5 years ago|
|build_environment||5 years ago|
|cleanup||5 years ago|
|doc/source||5 years ago|
|os_doc_tools||5 years ago|
|sitemap||5 years ago|
|.gitignore||6 years ago|
|.gitreview||6 years ago|
|.mailmap||6 years ago|
|CONTRIBUTING.rst||5 years ago|
|HACKING.rst||6 years ago|
|LICENSE||6 years ago|
|MANIFEST.in||6 years ago|
|README.rst||5 years ago|
|RELEASE_NOTES.rst||5 years ago|
|doc-test.conf.sample||6 years ago|
|openstack-common.conf||5 years ago|
|pylintrc||6 years ago|
|requirements.txt||5 years ago|
|setup.cfg||5 years ago|
|setup.py||5 years ago|
|test-requirements.txt||5 years ago|
|tox.ini||5 years ago|
This repository contains tools used by the OpenStack Documentation project.
For more details, see the OpenStack Documentation wiki page.
Apache Maven must be installed to build the documentation.
To install Maven 3 for Ubuntu 12.04 and later, and Debian wheezy and later:
apt-get install maven
yum install maven
You need to have Python 2.7 installed for using the tools.
This package needs a few external dependencies including lxml. If you do not have lxml installed, you can either install python-lxml or have it installed automatically and build from sources. To build lxml from sources, you need a C compiler and the xml and xslt development packages installed.
To install python-lxml, execute the following based on your distribution.
yum install python-lxml
zypper in python-lxml
apt-get install python-lxml
For building from source, install the dependencies of lxml.
yum install python-devel libxml2-devel libxslt-devel
zypper in libxslt-devel
apt-get install libxml2-dev libxslt-dev
The repository contains in the directory
os_doc_tools/resources a local copy of some RNG schema files so that they do not need to be downloaded each time for validation of XML and WADL files.
Please see the
README.txt in the directory for details on where these files come from.
If you run the
openstack-doc-test --check-build, it will copy all the books to the directory
publish-docs in the top-level directory of your repository.
By default, it outputs a directory with the same name as the directory where the pom.xml file lives in, such as admin-guide-cloud. You can also check the output of the build job for the name.
Some books need special treatment and there are three options you can set in the file
book- the name of a book that needs special treatment
target_dir- the path of subdirectory starting at
targetthat is the root for publishing
publish_dir- a new name to publish a book under
As an example, to publish the compute-api version 2 in the directory
book = openstack-compute-api-2 target_dir = target/docbkx/webhelp/api/openstack-compute/2 publish_dir = api/openstack-compute/2
Note that these options can be specified multiple times and should always be used this way. You do not need to set
publish_dir but if you set it, you need to use it every time.
Also note that these are optional settings, the logic in the tool is sufficient for many of the books.