Gathering the metadata of repos and projects requires a significant number of HTTP calls and is therefore slow and expensive. When hacking on www-generator.py the ability to skip these calls can save a lot of time allowing much more rapid iteration. So add a persistent cache for this data, using the percache Python module. This is mostly run in the gate, where the cache will be deleted on each run. Documentation contributors running this locally may occasionally need to manually remove the cache file, although governance data generally changes slow enough that this is expected to be a rare corner case. As noted by the comment in _get_official_repos(), in the future we may add support for loading governance data from a local repo, thereby skipping the need for slow HTTP calls. But for now this is a simpler solution. Change-Id: Ib52171625e37169d00da03f436b58456c103b04d
|2 years ago|
|doc||2 years ago|
|playbooks/build-manuals-tox||4 years ago|
|releasenotes/source||3 years ago|
|tools||2 years ago|
|www||2 years ago|
|.gitignore||2 years ago|
|.gitreview||10 years ago|
|.pydevproject||4 years ago|
|.zuul.yaml||3 years ago|
|CONTRIBUTING.rst||4 years ago|
|LICENSE||9 years ago|
|README.rst||3 years ago|
|bindep.txt||3 years ago|
|doc-tools-check-languages.conf||2 years ago|
|projects.txt||2 years ago|
|test-requirements.txt||2 years ago|
|tox.ini||3 years ago|
This repository contains documentation for the OpenStack project.
For more details, see the OpenStack Documentation Contributor Guide.
It includes these manuals:
In addition to the guides, this repository contains:
Various manuals are in subdirectories of the
Some pre-requisites are needed to build the guides. If you are using a Linux operating system you can generate a report of missing local requirements with the
$ tox -e bindep
All guides are in the RST format. You can use
tox to prepare virtual environment and build all guides (HTML only):
$ tox -e docs
You can also build a specific guide.
For example, to build OpenStack Virtual Machine Image Guide, use the following command:
$ tox -e build -- image-guide
You can find the root of the generated HTML documentation at:
To build a specific guide with a PDF file, add a
$ tox -e build -- image-guide --pdf
The generated PDF file will be copied to the root directory of the generated HTML documentation.
PDF builds are accomplished using LaTeX as an intermediate format. Currently, you can generate a PDF file for a limited number of guides. The supported list is maintained in the
If you get the error message
make: xelatex: No such file or directory, it means your local environment does not have LaTeX installed. Read Getting LaTeX and Install dependencies for building documentation for instructions.
Install the Python tox package and run
tox from the top-level directory to use the same tests that are done as part of the OpenStack CI jobs.
If you like to run individual tests, run:
tox -e checkbuild- to actually build the manual; this also generates a directory
publish-docsthat contains the built files for inspection
tox -e checklang- to build translated manuals
tox -e linters- to run the niceness tests, for example, to see extra whitespaces
tox -e linkcheck- to run the tests for working remote URLs
tox command uses the openstack-doc-tools package to run the tests.
Some documentation files are generated using tools. These files include a
do not edit header and should not be modified by hand. Please see Generated files.
Bugs should be filed on Launchpad, not GitHub:
Refer to https://docs.openstack.org to see where these documents are published and to learn more about the OpenStack project.