blob: ded713d2f82b20dd3562fa588b742abf210b674c [file] [log] [blame]
yuhui_inspurcd420fb2017-04-11 01:46:48 -07001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
Sean Dagueb56052b2013-05-21 17:57:41 -040014# Tempest documentation build configuration file, created by
15# sphinx-quickstart on Tue May 21 17:43:32 2013.
16#
17# This file is execfile()d with the current directory set to its containing dir.
18#
19# Note that not all possible configuration values are present in this
20# autogenerated file.
21#
22# All configuration values have a default; values that are commented out
23# serve to show the default.
24
Matthew Treinish6d5c0522013-09-11 15:50:30 +000025import os
Matthew Treinish13ed69f2015-08-10 11:51:54 -040026import subprocess
27
Matthew Treinishfc463262016-06-29 10:39:02 -040028# Build the plugin registry
29def build_plugin_registry(app):
30 root_dir = os.path.dirname(
31 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
32 subprocess.call(['tools/generate-tempest-plugins-list.sh'], cwd=root_dir)
33
34def setup(app):
Masayuki Igawaaa516f82017-07-12 13:56:04 +090035 if os.getenv('GENERATE_TEMPEST_PLUGIN_LIST', 'true').lower() == 'true':
36 app.connect('builder-inited', build_plugin_registry)
Matthew Treinishfc463262016-06-29 10:39:02 -040037
38
39
Sean Dagueb56052b2013-05-21 17:57:41 -040040# If extensions (or modules to document with autodoc) are in another directory,
41# add these directories to sys.path here. If the directory is relative to the
42# documentation root, use os.path.abspath to make it absolute, like shown here.
43#sys.path.insert(0, os.path.abspath('.'))
44
45# -- General configuration -----------------------------------------------------
46
47# If your documentation needs a minimal Sphinx version, state it here.
48#needs_sphinx = '1.0'
49
50# Add any Sphinx extension module names here, as strings. They can be extensions
51# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
Matthew Treinish6d5c0522013-09-11 15:50:30 +000052extensions = ['sphinx.ext.autodoc',
Matthew Treinish6d5c0522013-09-11 15:50:30 +000053 'sphinx.ext.todo',
54 'sphinx.ext.viewcode',
Masayuki Igawa7e4ef4c2019-07-03 17:17:44 +090055 'sphinxcontrib.rsvgconverter',
bhavani.cr29b22302017-07-04 12:00:58 +053056 'openstackdocstheme',
Matthew Treinish1719dfe2015-08-24 17:55:09 -040057 'oslo_config.sphinxconfiggen',
Matthew Treinish6d5c0522013-09-11 15:50:30 +000058 ]
59
Matthew Treinishbdef1c72016-06-21 18:06:49 -040060config_generator_config_file = '../../tempest/cmd/config-generator.tempest.conf'
Matthew Treinish1719dfe2015-08-24 17:55:09 -040061sample_config_basename = '_static/tempest'
62
Matthew Treinish6d5c0522013-09-11 15:50:30 +000063todo_include_todos = True
Sean Dagueb56052b2013-05-21 17:57:41 -040064
bhavani.cr29b22302017-07-04 12:00:58 +053065# openstackdocstheme options
Andreas Jaeger0fbce172020-05-18 19:32:19 +020066openstackdocs_repo_name = 'openstack/tempest'
67openstackdocs_bug_project = 'tempest'
68openstackdocs_bug_tag = 'doc'
69openstackdocs_pdf_link = True
bhavani.cr29b22302017-07-04 12:00:58 +053070
Sean Dagueb56052b2013-05-21 17:57:41 -040071# Add any paths that contain templates here, relative to this directory.
72templates_path = ['_templates']
73
74# The suffix of source filenames.
75source_suffix = '.rst'
76
77# The encoding of source files.
78#source_encoding = 'utf-8-sig'
79
80# The master toctree document.
81master_doc = 'index'
82
83# General information about the project.
Matthew Treinish6d5c0522013-09-11 15:50:30 +000084copyright = u'2013, OpenStack QA Team'
Sean Dagueb56052b2013-05-21 17:57:41 -040085
Sean Dagueb56052b2013-05-21 17:57:41 -040086# The language for content autogenerated by Sphinx. Refer to documentation
87# for a list of supported languages.
88#language = None
89
90# There are two options for replacing |today|: either, you set today to some
91# non-false value, then it is used:
92#today = ''
93# Else, today_fmt is used as the format for a strftime call.
94#today_fmt = '%B %d, %Y'
95
96# List of patterns, relative to source directory, that match files and
97# directories to ignore when looking for source files.
98exclude_patterns = ['_build']
99
100# The reST default role (used for this markup: `text`) to use for all documents.
101#default_role = None
102
103# If true, '()' will be appended to :func: etc. cross-reference text.
104#add_function_parentheses = True
105
106# If true, the current module name will be prepended to all description
107# unit titles (such as .. function::).
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000108add_module_names = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400109
110# If true, sectionauthor and moduleauthor directives will be shown in the
111# output. They are ignored by default.
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000112show_authors = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400113
114# The name of the Pygments (syntax highlighting) style to use.
melissaml217eebd2020-06-24 10:13:45 +0800115pygments_style = 'native'
Sean Dagueb56052b2013-05-21 17:57:41 -0400116
117# A list of ignored prefixes for module index sorting.
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000118modindex_common_prefix = ['tempest.']
Sean Dagueb56052b2013-05-21 17:57:41 -0400119
120
121# -- Options for HTML output ---------------------------------------------------
122
123# The theme to use for HTML and HTML Help pages. See the documentation for
124# a list of builtin themes.
Masayuki Igawad2a657d2017-05-08 15:25:56 -0400125html_theme = 'openstackdocs'
Sean Dagueb56052b2013-05-21 17:57:41 -0400126
127# Theme options are theme-specific and customize the look and feel of a theme
128# further. For a list of options available for each theme, see the
129# documentation.
130#html_theme_options = {}
131
132# Add any paths that contain custom themes here, relative to this directory.
bhavani.cr29b22302017-07-04 12:00:58 +0530133#html_theme_path = []
Sean Dagueb56052b2013-05-21 17:57:41 -0400134
135# The name for this set of Sphinx documents. If None, it defaults to
136# "<project> v<release> documentation".
137#html_title = None
138
139# A shorter title for the navigation bar. Default is the same as html_title.
140#html_short_title = None
141
142# The name of an image file (relative to this directory) to place at the top
143# of the sidebar.
144#html_logo = None
145
146# The name of an image file (within the static path) to use as favicon of the
147# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
148# pixels large.
149#html_favicon = None
150
151# Add any paths that contain custom static files (such as style sheets) here,
152# relative to this directory. They are copied after the builtin static files,
153# so a file named "default.css" will overwrite the builtin "default.css".
154html_static_path = ['_static']
Matthew Treinishcd2fef92017-11-06 20:11:45 -0500155# Add any paths that contain "extra" files, such as .htaccess or
156# robots.txt.
157html_extra_path = ['_extra']
Sean Dagueb56052b2013-05-21 17:57:41 -0400158
159# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
160# using the given strftime format.
Sean Dagueb56052b2013-05-21 17:57:41 -0400161
Sean Dagueb56052b2013-05-21 17:57:41 -0400162# Custom sidebar templates, maps document names to template names.
163#html_sidebars = {}
164
165# Additional templates that should be rendered to pages, maps page names to
166# template names.
167#html_additional_pages = {}
168
169# If false, no module index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000170html_domain_indices = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400171
172# If false, no index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000173html_use_index = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400174
175# If true, the index is split into individual pages for each letter.
176#html_split_index = False
177
178# If true, links to the reST sources are added to the pages.
179#html_show_sourcelink = True
180
181# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
182#html_show_sphinx = True
183
184# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
185#html_show_copyright = True
186
187# If true, an OpenSearch description file will be output, and all pages will
188# contain a <link> tag referring to it. The value of this option must be the
189# base URL from which the finished HTML is served.
190#html_use_opensearch = ''
191
192# This is the file name suffix for HTML files (e.g. ".xhtml").
193#html_file_suffix = None
Stephen Finucaned1148042017-03-22 12:35:10 +0000194
195# A list of warning types to suppress arbitrary warning messages.
196suppress_warnings = ['image.nonlocal_uri']
Masayuki Igawa7e4ef4c2019-07-03 17:17:44 +0900197
198# -- Options for LaTeX output -------------------------------------------------
199
200# Grouping the document tree into LaTeX files. List of tuples
201# (source start file, target name, title, author, documentclass
202# [howto/manual]).
203latex_documents = [
204 ('index', 'doc-tempest.tex', u'Tempest Testing Project',
205 u'OpenStack Foundation', 'manual'),
206]
207
208# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
209latex_use_xindy = False