blob: d6ccf8e475925168ccc7ee903b59c93ec766ae44 [file] [log] [blame]
Graham Hayesc392cf92017-02-23 16:06:04 -05001# -*- coding: utf-8 -*-
2#
3# designate documentation build configuration file, created by
4# sphinx-quickstart on Wed Oct 31 18:58:17 2012.
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
14import sys, os, subprocess
15
16# If extensions (or modules to document with autodoc) are in another directory,
17# add these directories to sys.path here. If the directory is relative to the
18# documentation root, use os.path.abspath to make it absolute, like shown here.
19sys.path.insert(0, os.path.abspath('../../'))
20sys.path.insert(0, os.path.abspath('../'))
21sys.path.insert(0, os.path.abspath('./'))
22
23# -- General configuration -----------------------------------------------------
24
25# If your documentation needs a minimal Sphinx version, state it here.
26#needs_sphinx = '1.0'
27
28# Add any Sphinx extension module names here, as strings. They can be extensions
29# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
30extensions = []
31
32import openstackdocstheme
33
34html_theme = 'openstackdocs'
35html_theme_path = [openstackdocstheme.get_html_theme_path()]
36
37# We ask git for the SHA checksum
38# The git SHA checksum is used by "log-a-bug"
39git_cmd = ["/usr/bin/git", "rev-parse", "HEAD"]
40gitsha = subprocess.Popen(
41 git_cmd, stdout=subprocess.PIPE).communicate()[0].strip('\n')
42# tag that reported bugs will be tagged with
43bug_tag = "tempest-plugin-docs"
44# source tree
45pwd = os.getcwd()
46# html_context allows us to pass arbitrary values into the html template
47html_context = {"pwd": pwd, "gitsha": gitsha}
48# Must set this variable to include year, month, day, hours, and minutes.
49html_last_updated_fmt = '%Y-%m-%d %H:%M'
50
51# Add any paths that contain templates here, relative to this directory.
52templates_path = ['_templates']
53
54# The suffix of source filenames.
55source_suffix = '.rst'
56
57# The encoding of source files.
58#source_encoding = 'utf-8-sig'
59
60# The master toctree document.
61master_doc = 'index'
62
63# General information about the project.
64project = u'designate'
65copyright = u'2012, Managed I.T.'
66
67# The version info for the project you're documenting, acts as replacement for
68# |version| and |release|, also used in various other places throughout the
69# built documents.
70#
71# The language for content autogenerated by Sphinx. Refer to documentation
72# for a list of supported languages.
73#language = None
74
75# There are two options for replacing |today|: either, you set today to some
76# non-false value, then it is used:
77#today = ''
78# Else, today_fmt is used as the format for a strftime call.
79#today_fmt = '%B %d, %Y'
80
81# List of patterns, relative to source directory, that match files and
82# directories to ignore when looking for source files.
83exclude_patterns = []
84
85# The reST default role (used for this markup: `text`) to use for all documents.
86#default_role = None
87
88# If true, '()' will be appended to :func: etc. cross-reference text.
89#add_function_parentheses = True
90
91# If true, the current module name will be prepended to all description
92# unit titles (such as .. function::).
93#add_module_names = True
94
95# If true, sectionauthor and moduleauthor directives will be shown in the
96# output. They are ignored by default.
97#show_authors = False
98
99# The name of the Pygments (syntax highlighting) style to use.
100pygments_style = 'sphinx'
101
102# A list of ignored prefixes for module index sorting.
103modindex_common_prefix = ["designate_tempest_plugin."]
104
105
106# -- Options for HTML output ---------------------------------------------------
107
108# Add any paths that contain custom themes here, relative to this directory.
109#html_theme_path = []
110
111# The name for this set of Sphinx documents. If None, it defaults to
112# "<project> v<release> documentation".
113#html_title = None
114
115# A shorter title for the navigation bar. Default is the same as html_title.
116#html_short_title = None
117
118# The name of an image file (relative to this directory) to place at the top
119# of the sidebar.
120#html_logo = None
121
122# The name of an image file (within the static path) to use as favicon of the
123# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
124# pixels large.
125#html_favicon = None
126
127# Add any paths that contain custom static files (such as style sheets) here,
128# relative to this directory. They are copied after the builtin static files,
129# so a file named "default.css" will overwrite the builtin "default.css".
130html_static_path = ['_static']
131
132# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
133# using the given strftime format.
134#html_last_updated_fmt = '%b %d, %Y'
135
136# If true, SmartyPants will be used to convert quotes and dashes to
137# typographically correct entities.
138#html_use_smartypants = True
139
140# Custom sidebar templates, maps document names to template names.
141#html_sidebars = {}
142
143# Additional templates that should be rendered to pages, maps page names to
144# template names.
145#html_additional_pages = {}
146
147# If false, no module index is generated.
148#html_domain_indices = True
149
150# If false, no index is generated.
151#html_use_index = True
152
153# If true, the index is split into individual pages for each letter.
154#html_split_index = False
155
156# If true, links to the reST sources are added to the pages.
157#html_show_sourcelink = True
158
159# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
160#html_show_sphinx = True
161
162# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
163#html_show_copyright = True
164
165# If true, an OpenSearch description file will be output, and all pages will
166# contain a <link> tag referring to it. The value of this option must be the
167# base URL from which the finished HTML is served.
168#html_use_opensearch = ''
169
170# This is the file name suffix for HTML files (e.g. ".xhtml").
171#html_file_suffix = None
172
173# Output file base name for HTML help builder.
174htmlhelp_basename = 'designatedoc'
175
176
177# -- Options for LaTeX output --------------------------------------------------
178
179latex_elements = {
180# The paper size ('letterpaper' or 'a4paper').
181#'papersize': 'letterpaper',
182
183# The font size ('10pt', '11pt' or '12pt').
184#'pointsize': '10pt',
185
186# Additional stuff for the LaTeX preamble.
187#'preamble': '',
188}
189
190# Grouping the document tree into LaTeX files. List of tuples
191# (source start file, target name, title, author, documentclass [howto/manual]).
192latex_documents = [
193 ('index', 'designate.tex', u'Designate Tempest Plugin Documentation',
194 u'Managed I.T.', 'manual'),
195]
196
197# The name of an image file (relative to this directory) to place at the top of
198# the title page.
199#latex_logo = None
200
201# For "manual" documents, if this is true, then toplevel headings are parts,
202# not chapters.
203#latex_use_parts = False
204
205# If true, show page references after internal links.
206#latex_show_pagerefs = False
207
208# If true, show URL addresses after external links.
209#latex_show_urls = False
210
211# Documents to append as an appendix to all manuals.
212#latex_appendices = []
213
214# If false, no module index is generated.
215#latex_domain_indices = True
216
217
218# -- Options for manual page output --------------------------------------------
219
220# One entry per manual page. List of tuples
221# (source start file, name, description, authors, manual section).
222man_pages = [
223# ('index', 'designate', u'Designate Documentation',
224# [u'Managed I.T.'], 1)
225]
226
227# If true, show URL addresses after external links.
228#man_show_urls = False
229
230
231# -- Options for Texinfo output ------------------------------------------------
232
233# Grouping the document tree into Texinfo files. List of tuples
234# (source start file, target name, title, author,
235# dir menu entry, description, category)
236texinfo_documents = [
237 ('index', 'designate', u'Designate Tempest Plugin Documentation',
238 u'Managed I.T.', 'designate_tempest_plugin', 'One line description of project.',
239 'Miscellaneous'),
240]
241
242# Documents to append as an appendix to all manuals.
243#texinfo_appendices = []
244
245# If false, no module index is generated.
246#texinfo_domain_indices = True
247
248# How to display URL addresses: 'footnote', 'no', or 'inline'.
249#texinfo_show_urls = 'footnote'