blob: 2597f04c4817395b54fb664e6051ef74397da654 [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:
Stephen Finucaned1148042017-03-22 12:35:10 +0000143 html_last_updated_fmt = str(
144 subprocess.Popen(git_cmd, stdout=subprocess.PIPE).communicate()[0])
Thomas Bechtold89d56172016-08-30 18:57:09 +0200145except Exception:
146 warnings.warn('Cannot get last updated time from git repository. '
147 'Not setting "html_last_updated_fmt".')
Sean Dagueb56052b2013-05-21 17:57:41 -0400148
149# If true, SmartyPants will be used to convert quotes and dashes to
150# typographically correct entities.
Masayuki Igawa44ca9ed2016-06-10 09:25:48 +0900151html_use_smartypants = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400152
153# Custom sidebar templates, maps document names to template names.
154#html_sidebars = {}
155
156# Additional templates that should be rendered to pages, maps page names to
157# template names.
158#html_additional_pages = {}
159
160# If false, no module index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000161html_domain_indices = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400162
163# If false, no index is generated.
Michael Chapman4410ca12013-06-25 13:05:10 +1000164html_use_index = False
Sean Dagueb56052b2013-05-21 17:57:41 -0400165
166# If true, the index is split into individual pages for each letter.
167#html_split_index = False
168
169# If true, links to the reST sources are added to the pages.
170#html_show_sourcelink = True
171
172# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
173#html_show_sphinx = True
174
175# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
176#html_show_copyright = True
177
178# If true, an OpenSearch description file will be output, and all pages will
179# contain a <link> tag referring to it. The value of this option must be the
180# base URL from which the finished HTML is served.
181#html_use_opensearch = ''
182
183# This is the file name suffix for HTML files (e.g. ".xhtml").
184#html_file_suffix = None
Stephen Finucaned1148042017-03-22 12:35:10 +0000185
186# A list of warning types to suppress arbitrary warning messages.
187suppress_warnings = ['image.nonlocal_uri']