Tools used by OpenStack Documentation
Go to file
Gauvain Pocentek ecc3744a72 Fix extract_swift_flags.py
The renaming of the swift-conf-changes.xml in the openstack-manual
repository broke a test in the extract_swift_flags.py script. This patch
changes the test to make the script work again.

Change-Id: I71b6960801163c2d2c52253d0c9a45ec2bf02b0d
2014-10-07 07:07:06 +02:00
autogenerate_config_docs Fix extract_swift_flags.py 2014-10-07 07:07:06 +02:00
bin Fix issues found by bashate and include in gating 2014-08-17 15:17:30 +02:00
build_environment Fix issues found by bashate and include in gating 2014-08-17 15:17:30 +02:00
cleanup Typo "Initialze" instead of "Initialize" 2014-09-18 12:46:20 -07:00
doc/source Run doc8 as part of pep8 test 2014-08-17 06:51:54 +02:00
os_doc_tools Ensure a newline (\n) at the end of a file 2014-10-01 07:21:13 +02:00
sitemap Improve sitemap generation 2014-06-27 14:25:14 +02:00
tools Rename Openstack to OpenStack 2014-02-13 16:28:39 +08:00
.gitignore A virtual building and testing environment using Vagrant 2014-08-11 18:46:00 +02:00
.gitreview Add .gitreview 2013-12-04 20:44:41 +01:00
.mailmap Add .mailmap 2014-01-07 08:39:30 +01:00
doc-test.conf.sample Allow setting of publish directory 2014-02-13 14:07:53 -06:00
HACKING.rst Add HACKING.rst 2014-01-02 12:13:33 +01:00
LICENSE Add LICENSE and README.rst 2013-12-10 15:45:37 +01:00
MANIFEST.in Move release notes into a separate file 2014-07-28 22:04:02 +02:00
openstack-common.conf Import module log and needed dependencies from oslo-incubator 2014-08-11 15:42:52 +02:00
pylintrc Add pylint target for testing 2014-05-19 18:30:07 +02:00
README.rst Move release notes into a separate file 2014-07-28 22:04:02 +02:00
RELEASE_NOTES.rst Ensure a newline (\n) at the end of a file 2014-10-01 07:21:13 +02:00
requirements.txt Updated from global requirements 2014-09-19 08:49:23 +00:00
setup.cfg Mark openstack-doc-tools as being a universal wheel 2014-09-22 11:08:43 +02:00
setup.py Updated from global requirements 2014-04-30 02:43:55 +00:00
test-requirements.txt Provide the hotref sphinx extension 2014-09-06 14:11:44 +02:00
tox.ini Work toward Python 3.4 support and testing 2014-09-03 19:04:19 +00:00

OpenStack Doc Tools

This repository contains tools used by the OpenStack Documentation project.

For more details, see the OpenStack Documentation wiki page.

Prerequisites

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

On Fedora:

yum install maven3

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.

On Fedora:

yum install python-lxml

On openSUSE:

zypper in python-lxml

On Ubuntu:

apt-get install python-lxml

For building from source, install the dependencies of lxml.

On openSUSE:

zypper in libxslt-devel

On Ubuntu:

apt-get install libxml2-dev libxslt-dev

Updating RNG schema files

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.

Publishing of books

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 doc-test.conf:

  • book - the name of a book that needs special treatment
  • target_dir - the path of subdirectory starting at target that 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 publish-docs/api/openstack-compute/2, use:

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.

Contributing

Our community welcomes all people interested in open source cloud computing, and encourages you to join the OpenStack Foundation. The best way to get involved with the community is to talk with others online or at a meetup and offer contributions through our processes, the OpenStack wiki, blogs, or on IRC at #openstack on irc.freenode.net.

We welcome all types of contributions, from blueprint designs to documentation to testing to deployment scripts.

If you would like to contribute to the development, you must follow the steps in the "If you're a developer, start here" section of this page:

http://wiki.openstack.org/HowToContribute

Once those steps have been completed, changes to OpenStack should be submitted for review via the Gerrit tool, following the workflow documented at:

http://wiki.openstack.org/GerritWorkflow

Pull requests submitted through GitHub will be ignored.

Bugs should be filed on Launchpad, not GitHub:

https://bugs.launchpad.net/openstack-manuals