blob: 2edaddbdc01c996760c0d254e2af0e3f51f4349b [file] [log] [blame]
Sean Dagueb56052b2013-05-21 17:57:41 -04001# -*- coding: utf-8 -*-
2#
3# Tempest documentation build configuration file, created by
4# sphinx-quickstart on Tue May 21 17:43:32 2013.
5#
6# This file is execfile()d with the current directory set to its containing dir.
7#
8# Note that not all possible configuration values are present in this
9# autogenerated file.
10#
11# All configuration values have a default; values that are commented out
12# serve to show the default.
13
Matthew Treinish6d5c0522013-09-11 15:50:30 +000014import sys
15import os
Matthew Treinish13ed69f2015-08-10 11:51:54 -040016import subprocess
Thomas Bechtold89d56172016-08-30 18:57:09 +020017import warnings
Matthew Treinish13ed69f2015-08-10 11:51:54 -040018
Matthew Treinishfc463262016-06-29 10:39:02 -040019# Build the plugin registry
20def build_plugin_registry(app):
21 root_dir = os.path.dirname(
22 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
23 subprocess.call(['tools/generate-tempest-plugins-list.sh'], cwd=root_dir)
24
25def setup(app):
26 app.connect('builder-inited', build_plugin_registry)
27
28
29
Sean Dagueb56052b2013-05-21 17:57:41 -040030# If extensions (or modules to document with autodoc) are in another directory,
31# add these directories to sys.path here. If the directory is relative to the
32# documentation root, use os.path.abspath to make it absolute, like shown here.
33#sys.path.insert(0, os.path.abspath('.'))
34
35# -- General configuration -----------------------------------------------------
36
37# If your documentation needs a minimal Sphinx version, state it here.
38#needs_sphinx = '1.0'
39
40# Add any Sphinx extension module names here, as strings. They can be extensions
41# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
Matthew Treinish6d5c0522013-09-11 15:50:30 +000042extensions = ['sphinx.ext.autodoc',
Matthew Treinish6d5c0522013-09-11 15:50:30 +000043 'sphinx.ext.todo',
44 'sphinx.ext.viewcode',
Matthew Treinish1719dfe2015-08-24 17:55:09 -040045 'oslosphinx',
46 'oslo_config.sphinxconfiggen',
Matthew Treinish6d5c0522013-09-11 15:50:30 +000047 ]
48
Matthew Treinishbdef1c72016-06-21 18:06:49 -040049config_generator_config_file = '../../tempest/cmd/config-generator.tempest.conf'
Matthew Treinish1719dfe2015-08-24 17:55:09 -040050sample_config_basename = '_static/tempest'
51
Matthew Treinish6d5c0522013-09-11 15:50:30 +000052todo_include_todos = True
Sean Dagueb56052b2013-05-21 17:57:41 -040053
54# Add any paths that contain templates here, relative to this directory.
55templates_path = ['_templates']
56
57# The suffix of source filenames.
58source_suffix = '.rst'
59
60# The encoding of source files.
61#source_encoding = 'utf-8-sig'
62
63# The master toctree document.
64master_doc = 'index'
65
66# General information about the project.
67project = u'Tempest'
Matthew Treinish6d5c0522013-09-11 15:50:30 +000068copyright = u'2013, OpenStack QA Team'
Sean Dagueb56052b2013-05-21 17:57:41 -040069
Sean Dagueb56052b2013-05-21 17:57:41 -040070# The language for content autogenerated by Sphinx. Refer to documentation
71# for a list of supported languages.
72#language = None
73
74# There are two options for replacing |today|: either, you set today to some
75# non-false value, then it is used:
76#today = ''
77# Else, today_fmt is used as the format for a strftime call.
78#today_fmt = '%B %d, %Y'
79
80# List of patterns, relative to source directory, that match files and
81# directories to ignore when looking for source files.
82exclude_patterns = ['_build']
83
84# The reST default role (used for this markup: `text`) to use for all documents.
85#default_role = None
86
87# If true, '()' will be appended to :func: etc. cross-reference text.
88#add_function_parentheses = True
89
90# If true, the current module name will be prepended to all description
91# unit titles (such as .. function::).
Matthew Treinish6d5c0522013-09-11 15:50:30 +000092add_module_names = False
Sean Dagueb56052b2013-05-21 17:57:41 -040093
94# If true, sectionauthor and moduleauthor directives will be shown in the
95# output. They are ignored by default.
Matthew Treinish6d5c0522013-09-11 15:50:30 +000096show_authors = False
Sean Dagueb56052b2013-05-21 17:57:41 -040097
98# The name of the Pygments (syntax highlighting) style to use.
99pygments_style = 'sphinx'
100
101# A list of ignored prefixes for module index sorting.
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000102modindex_common_prefix = ['tempest.']
Sean Dagueb56052b2013-05-21 17:57:41 -0400103
104
105# -- Options for HTML output ---------------------------------------------------
106
107# The theme to use for HTML and HTML Help pages. See the documentation for
108# a list of builtin themes.
Sean Dague7679b482013-05-24 08:49:44 -0400109html_theme = 'nature'
Sean Dagueb56052b2013-05-21 17:57:41 -0400110
111# Theme options are theme-specific and customize the look and feel of a theme
112# further. For a list of options available for each theme, see the
113# documentation.
114#html_theme_options = {}
115
116# Add any paths that contain custom themes here, relative to this directory.
117#html_theme_path = []
118
119# The name for this set of Sphinx documents. If None, it defaults to
120# "<project> v<release> documentation".
121#html_title = None
122
123# A shorter title for the navigation bar. Default is the same as html_title.
124#html_short_title = None
125
126# The name of an image file (relative to this directory) to place at the top
127# of the sidebar.
128#html_logo = None
129
130# The name of an image file (within the static path) to use as favicon of the
131# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
132# pixels large.
133#html_favicon = None
134
135# Add any paths that contain custom static files (such as style sheets) here,
136# relative to this directory. They are copied after the builtin static files,
137# so a file named "default.css" will overwrite the builtin "default.css".
138html_static_path = ['_static']
139
140# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
141# using the given strftime format.
Harshada Mangesh Kakadd11d5ee2015-12-31 01:38:46 -0800142git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
143 "-n1"]
Thomas Bechtold89d56172016-08-30 18:57:09 +0200144try:
145 html_last_updated_fmt = subprocess.Popen(git_cmd,
146 stdout=subprocess.PIPE).\
147 communicate()[0]
148except Exception:
149 warnings.warn('Cannot get last updated time from git repository. '
150 'Not setting "html_last_updated_fmt".')
Sean Dagueb56052b2013-05-21 17:57:41 -0400151
152# If true, SmartyPants will be used to convert quotes and dashes to
153# typographically correct entities.
Masayuki Igawa44ca9ed2016-06-10 09:25:48 +0900154html_use_smartypants = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400155
156# Custom sidebar templates, maps document names to template names.
157#html_sidebars = {}
158
159# Additional templates that should be rendered to pages, maps page names to
160# template names.
161#html_additional_pages = {}
162
163# If false, no module index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000164html_domain_indices = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400165
166# If false, no index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000167html_use_index = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400168
169# If true, the index is split into individual pages for each letter.
170#html_split_index = False
171
172# If true, links to the reST sources are added to the pages.
173#html_show_sourcelink = True
174
175# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
176#html_show_sphinx = True
177
178# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
179#html_show_copyright = True
180
181# If true, an OpenSearch description file will be output, and all pages will
182# contain a <link> tag referring to it. The value of this option must be the
183# base URL from which the finished HTML is served.
184#html_use_opensearch = ''
185
186# This is the file name suffix for HTML files (e.g. ".xhtml").
187#html_file_suffix = None
188
189# Output file base name for HTML help builder.
190htmlhelp_basename = 'Tempestdoc'
191
192
193# -- Options for LaTeX output --------------------------------------------------
194
195latex_elements = {
196# The paper size ('letterpaper' or 'a4paper').
197#'papersize': 'letterpaper',
198
199# The font size ('10pt', '11pt' or '12pt').
200#'pointsize': '10pt',
201
202# Additional stuff for the LaTeX preamble.
203#'preamble': '',
204}
205
206# Grouping the document tree into LaTeX files. List of tuples
207# (source start file, target name, title, author, documentclass [howto/manual]).
208latex_documents = [
209 ('index', 'Tempest.tex', u'Tempest Documentation',
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000210 u'OpenStack QA Team', 'manual'),
Sean Dagueb56052b2013-05-21 17:57:41 -0400211]
212
213# The name of an image file (relative to this directory) to place at the top of
214# the title page.
215#latex_logo = None
216
217# For "manual" documents, if this is true, then toplevel headings are parts,
218# not chapters.
219#latex_use_parts = False
220
221# If true, show page references after internal links.
222#latex_show_pagerefs = False
223
224# If true, show URL addresses after external links.
225#latex_show_urls = False
226
227# Documents to append as an appendix to all manuals.
228#latex_appendices = []
229
230# If false, no module index is generated.
231#latex_domain_indices = True
232
233
234# -- Options for manual page output --------------------------------------------
235
236# One entry per manual page. List of tuples
237# (source start file, name, description, authors, manual section).
238man_pages = [
239 ('index', 'tempest', u'Tempest Documentation',
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000240 [u'OpenStack QA Team'], 1)
Sean Dagueb56052b2013-05-21 17:57:41 -0400241]
242
243# If true, show URL addresses after external links.
244#man_show_urls = False
245
246
247# -- Options for Texinfo output ------------------------------------------------
248
249# Grouping the document tree into Texinfo files. List of tuples
250# (source start file, target name, title, author,
251# dir menu entry, description, category)
252texinfo_documents = [
253 ('index', 'Tempest', u'Tempest Documentation',
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000254 u'OpenStack QA Team', 'Tempest', 'One line description of project.',
Sean Dagueb56052b2013-05-21 17:57:41 -0400255 'Miscellaneous'),
256]
257
258# Documents to append as an appendix to all manuals.
259#texinfo_appendices = []
260
261# If false, no module index is generated.
262#texinfo_domain_indices = True
263
264# How to display URL addresses: 'footnote', 'no', or 'inline'.
265#texinfo_show_urls = 'footnote'
266
267
268# -- Options for Epub output ---------------------------------------------------
269
270# Bibliographic Dublin Core info.
271epub_title = u'Tempest'
272epub_author = u'Sean Dague'
Matthew Treinish6d5c0522013-09-11 15:50:30 +0000273epub_publisher = u'OpenStack QA Team'
274epub_copyright = u'2013, OpenStack QA Team'
Sean Dagueb56052b2013-05-21 17:57:41 -0400275
276# The language of the text. It defaults to the language option
277# or en if the language is not set.
278#epub_language = ''
279
280# The scheme of the identifier. Typical schemes are ISBN or URL.
281#epub_scheme = ''
282
283# The unique identifier of the text. This can be a ISBN number
284# or the project homepage.
285#epub_identifier = ''
286
287# A unique identification for the text.
288#epub_uid = ''
289
290# A tuple containing the cover image and cover page html template filenames.
291#epub_cover = ()
292
293# HTML files that should be inserted before the pages created by sphinx.
294# The format is a list of tuples containing the path and title.
295#epub_pre_files = []
296
297# HTML files shat should be inserted after the pages created by sphinx.
298# The format is a list of tuples containing the path and title.
299#epub_post_files = []
300
301# A list of files that should not be packed into the epub file.
302#epub_exclude_files = []
303
304# The depth of the table of contents in toc.ncx.
305#epub_tocdepth = 3
306
307# Allow duplicate toc entries.
308#epub_tocdup = True