Skip to main content

Tools for OpenStack Documentation

Project description

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 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.

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 Fedora:

yum install python-devel libxml2-devel libxslt-devel

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstack-doc-tools-0.29.0.tar.gz (170.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstack_doc_tools-0.29.0-py2.py3-none-any.whl (179.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file openstack-doc-tools-0.29.0.tar.gz.

File metadata

File hashes

Hashes for openstack-doc-tools-0.29.0.tar.gz
Algorithm Hash digest
SHA256 e5f95098f9e2bf355d4f4314fd54cff31e0e50d4b02d78c0b5b424d30ac72a0a
MD5 71e59bf60ba76b830b8f8ea091e1129f
BLAKE2b-256 7ba45baa43823bf45466b1a25d7cdc1b2123404777d56ca862bfc6478b246cba

See more details on using hashes here.

File details

Details for the file openstack_doc_tools-0.29.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for openstack_doc_tools-0.29.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 27a538753f829be59ef67a328b78c706c6673e40787dd1cf82be7dfd9f0a9da9
MD5 49b2302104762f018518e48b163efc78
BLAKE2b-256 ebd4d968d626217b36149e125c970812bf43cc30ad8f21d6b4d60c9daae91ffc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page