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