blob: 201d3877bf045b44fd324e788a77dff6bf2941ef [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 sys
26import os
Matthew Treinish13ed69f2015-08-10 11:51:54 -040027import subprocess
Thomas Bechtold89d56172016-08-30 18:57:09 +020028import warnings
Matthew Treinish13ed69f2015-08-10 11:51:54 -040029
Masayuki Igawad2a657d2017-05-08 15:25:56 -040030import openstackdocstheme
31
Matthew Treinishfc463262016-06-29 10:39:02 -040032# Build the plugin registry
33def build_plugin_registry(app):
34 root_dir = os.path.dirname(
35 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
36 subprocess.call(['tools/generate-tempest-plugins-list.sh'], cwd=root_dir)
37
38def setup(app):
Masayuki Igawaaa516f82017-07-12 13:56:04 +090039 if os.getenv('GENERATE_TEMPEST_PLUGIN_LIST', 'true').lower() == 'true':
40 app.connect('builder-inited', build_plugin_registry)
Matthew Treinishfc463262016-06-29 10:39:02 -040041
42
43
Sean Dagueb56052b2013-05-21 17:57:41 -040044# If extensions (or modules to document with autodoc) are in another directory,
45# add these directories to sys.path here. If the directory is relative to the
46# documentation root, use os.path.abspath to make it absolute, like shown here.
47#sys.path.insert(0, os.path.abspath('.'))
48
49# -- General configuration -----------------------------------------------------
50
51# If your documentation needs a minimal Sphinx version, state it here.
52#needs_sphinx = '1.0'
53
54# Add any Sphinx extension module names here, as strings. They can be extensions
55# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
Matthew Treinish6d5c0522013-09-11 15:50:30 +000056extensions = ['sphinx.ext.autodoc',
Matthew Treinish6d5c0522013-09-11 15:50:30 +000057 'sphinx.ext.todo',
58 'sphinx.ext.viewcode',
bhavani.cr29b22302017-07-04 12:00:58 +053059 'openstackdocstheme',
Matthew Treinish1719dfe2015-08-24 17:55:09 -040060 'oslo_config.sphinxconfiggen',
Matthew Treinish6d5c0522013-09-11 15:50:30 +000061 ]
62
Matthew Treinishbdef1c72016-06-21 18:06:49 -040063config_generator_config_file = '../../tempest/cmd/config-generator.tempest.conf'
Matthew Treinish1719dfe2015-08-24 17:55:09 -040064sample_config_basename = '_static/tempest'
65
Matthew Treinish6d5c0522013-09-11 15:50:30 +000066todo_include_todos = True
Sean Dagueb56052b2013-05-21 17:57:41 -040067
bhavani.cr29b22302017-07-04 12:00:58 +053068# openstackdocstheme options
69repository_name = 'openstack/tempest'
70bug_project = 'tempest'
71bug_tag = ''
72
73# Must set this variable to include year, month, day, hours, and minutes.
74html_last_updated_fmt = '%Y-%m-%d %H:%M'
75
Sean Dagueb56052b2013-05-21 17:57:41 -040076# Add any paths that contain templates here, relative to this directory.
77templates_path = ['_templates']
78
79# The suffix of source filenames.
80source_suffix = '.rst'
81
82# The encoding of source files.
83#source_encoding = 'utf-8-sig'
84
85# The master toctree document.
86master_doc = 'index'
87
88# General information about the project.
89project = u'Tempest'
Matthew Treinish6d5c0522013-09-11 15:50:30 +000090copyright = u'2013, OpenStack QA Team'
Sean Dagueb56052b2013-05-21 17:57:41 -040091
Sean Dagueb56052b2013-05-21 17:57:41 -040092# The language for content autogenerated by Sphinx. Refer to documentation
93# for a list of supported languages.
94#language = None
95
96# There are two options for replacing |today|: either, you set today to some
97# non-false value, then it is used:
98#today = ''
99# Else, today_fmt is used as the format for a strftime call.
100#today_fmt = '%B %d, %Y'
101
102# List of patterns, relative to source directory, that match files and
103# directories to ignore when looking for source files.
104exclude_patterns = ['_build']
105
106# The reST default role (used for this markup: `text`) to use for all documents.
107#default_role = None
108
109# If true, '()' will be appended to :func: etc. cross-reference text.
110#add_function_parentheses = True
111
112# If true, the current module name will be prepended to all description
113# unit titles (such as .. function::).
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000114add_module_names = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400115
116# If true, sectionauthor and moduleauthor directives will be shown in the
117# output. They are ignored by default.
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000118show_authors = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400119
120# The name of the Pygments (syntax highlighting) style to use.
121pygments_style = 'sphinx'
122
123# A list of ignored prefixes for module index sorting.
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000124modindex_common_prefix = ['tempest.']
Sean Dagueb56052b2013-05-21 17:57:41 -0400125
126
127# -- Options for HTML output ---------------------------------------------------
128
129# The theme to use for HTML and HTML Help pages. See the documentation for
130# a list of builtin themes.
Masayuki Igawad2a657d2017-05-08 15:25:56 -0400131html_theme = 'openstackdocs'
Sean Dagueb56052b2013-05-21 17:57:41 -0400132
133# Theme options are theme-specific and customize the look and feel of a theme
134# further. For a list of options available for each theme, see the
135# documentation.
136#html_theme_options = {}
137
138# Add any paths that contain custom themes here, relative to this directory.
bhavani.cr29b22302017-07-04 12:00:58 +0530139#html_theme_path = []
Sean Dagueb56052b2013-05-21 17:57:41 -0400140
141# The name for this set of Sphinx documents. If None, it defaults to
142# "<project> v<release> documentation".
143#html_title = None
144
145# A shorter title for the navigation bar. Default is the same as html_title.
146#html_short_title = None
147
148# The name of an image file (relative to this directory) to place at the top
149# of the sidebar.
150#html_logo = None
151
152# The name of an image file (within the static path) to use as favicon of the
153# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
154# pixels large.
155#html_favicon = None
156
157# Add any paths that contain custom static files (such as style sheets) here,
158# relative to this directory. They are copied after the builtin static files,
159# so a file named "default.css" will overwrite the builtin "default.css".
160html_static_path = ['_static']
161
162# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
163# using the given strftime format.
Sean Dagueb56052b2013-05-21 17:57:41 -0400164
165# If true, SmartyPants will be used to convert quotes and dashes to
166# typographically correct entities.
Masayuki Igawa44ca9ed2016-06-10 09:25:48 +0900167html_use_smartypants = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400168
169# Custom sidebar templates, maps document names to template names.
170#html_sidebars = {}
171
172# Additional templates that should be rendered to pages, maps page names to
173# template names.
174#html_additional_pages = {}
175
176# If false, no module index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000177html_domain_indices = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400178
179# If false, no index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000180html_use_index = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400181
182# If true, the index is split into individual pages for each letter.
183#html_split_index = False
184
185# If true, links to the reST sources are added to the pages.
186#html_show_sourcelink = True
187
188# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
189#html_show_sphinx = True
190
191# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
192#html_show_copyright = True
193
194# If true, an OpenSearch description file will be output, and all pages will
195# contain a <link> tag referring to it. The value of this option must be the
196# base URL from which the finished HTML is served.
197#html_use_opensearch = ''
198
199# This is the file name suffix for HTML files (e.g. ".xhtml").
200#html_file_suffix = None
Stephen Finucaned1148042017-03-22 12:35:10 +0000201
202# A list of warning types to suppress arbitrary warning messages.
203suppress_warnings = ['image.nonlocal_uri']