Debian Codegraph @

doc/source/conf.py

raw
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
12 # under the License.
13
14 #
15 # Ceilometer documentation build configuration file, created by
16 # sphinx-quickstart on Thu Oct 27 11:38:59 2011.
17 #
18 # This file is execfile()d with the current directory set to its
19 # containing dir.
20 #
21 # Note that not all possible configuration values are present in this
22 # autogenerated file.
23 #
24 # All configuration values have a default; values that are commented out
25 # serve to show the default.
26
27 import os
28 import sys
29
30 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
31 ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
32
33 sys.path.insert(0, ROOT)
34 sys.path.insert(0, BASE_DIR)
35
36 # If extensions (or modules to document with autodoc) are in another directory,
37 # add these directories to sys.path here. If the directory is relative to the
38 # documentation root, use os.path.abspath to make it absolute, like shown here.
39 # sys.path.insert(0, os.path.abspath('.'))
40
41 # -- General configuration ----------------------------------------------------
42
43 # If your documentation needs a minimal Sphinx version, state it here.
44 # needs_sphinx = '1.0'
45
46 # Add any Sphinx extension module names here, as strings.
47 # They can be extensions coming with Sphinx (named 'sphinx.ext.*')
48 # or your custom ones.
49 extensions = [
50 'openstackdocstheme',
51 'sphinx.ext.autodoc',
52 'sphinx.ext.coverage',
53 'sphinx.ext.viewcode',
54 'oslo_config.sphinxconfiggen',
55 ]
56
57 config_generator_config_file = os.path.join(
58 ROOT, 'etc/ceilometer/ceilometer-config-generator.conf')
59 sample_config_basename = '_static/ceilometer'
60
61 todo_include_todos = True
62
63 # The suffix of source filenames.
64 source_suffix = '.rst'
65
66 # The encoding of source files.
67 # source_encoding = 'utf-8-sig'
68
69 # The master toctree document.
70 master_doc = 'index'
71
72 # General information about the project.
73 project = 'Ceilometer'
74 copyright = '2012-2015, OpenStack Foundation'
75
76 # The language for content autogenerated by Sphinx. Refer to documentation
77 # for a list of supported languages.
78 # language = None
79
80 # There are two options for replacing |today|: either, you set today to some
81 # non-false value, then it is used:
82 # today = ''
83 # Else, today_fmt is used as the format for a strftime call.
84 # today_fmt = '%B %d, %Y'
85
86 # List of patterns, relative to source directory, that match files and
87 # directories to ignore when looking for source files.
88 exclude_patterns = ['**/#*', '**~', '**/#*#']
89
90 # The reST default role (used for this markup: `text`)
91 # to use for all documents.
92 # default_role = None
93
94 # If true, '()' will be appended to :func: etc. cross-reference text.
95 # add_function_parentheses = True
96
97 # If true, the current module name will be prepended to all description
98 # unit titles (such as .. function::).
99 # add_module_names = True
100
101 # If true, sectionauthor and moduleauthor directives will be shown in the
102 # output. They are ignored by default.
103 show_authors = False
104
105 # The name of the Pygments (syntax highlighting) style to use.
106 pygments_style = 'native'
107
108 # A list of ignored prefixes for module index sorting.
109 # modindex_common_prefix = []
110
111 primary_domain = 'py'
112 nitpicky = False
113
114
115 # -- Options for HTML output --------------------------------------------------
116
117 # The theme to use for HTML and HTML Help pages. See the documentation for
118 # a list of builtin themes.
119 # html_theme_path = ['.']
120 # html_theme = '_theme'
121 html_theme = 'openstackdocs'
122
123 # openstackdocstheme options
124 openstackdocs_repo_name = 'openstack/ceilometer'
125 openstackdocs_pdf_link = True
126 openstackdocs_auto_name = False
127 openstackdocs_bug_project = 'ceilometer'
128 openstackdocs_bug_tag = ''
129
130 # Add any paths that contain custom themes here, relative to this directory.
131 # html_theme_path = []
132
133 # The name for this set of Sphinx documents. If None, it defaults to
134 # "<project> v<release> documentation".
135 # html_title = None
136
137 # A shorter title for the navigation bar. Default is the same as html_title.
138 # html_short_title = None
139
140 # The name of an image file (relative to this directory) to place at the top
141 # of the sidebar.
142 # html_logo = None
143
144 # The name of an image file (within the static path) to use as favicon of the
145 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
146 # pixels large.
147 # html_favicon = None
148
149 # Add any paths that contain custom static files (such as style sheets) here,
150 # relative to this directory. They are copied after the builtin static files,
151 # so a file named "default.css" will overwrite the builtin "default.css".
152 # html_static_path = ['_static']
153
154 # If true, SmartyPants will be used to convert quotes and dashes to
155 # typographically correct entities.
156 # html_use_smartypants = True
157
158 # Custom sidebar templates, maps document names to template names.
159 # html_sidebars = {}
160
161 # Additional templates that should be rendered to pages, maps page names to
162 # template names.
163 # html_additional_pages = {}
164
165 # If false, no module index is generated.
166 # html_domain_indices = True
167
168 # If false, no index is generated.
169 # html_use_index = True
170
171 # If true, the index is split into individual pages for each letter.
172 # html_split_index = False
173
174 # If true, links to the reST sources are added to the pages.
175 # html_show_sourcelink = True
176
177 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
178 # html_show_sphinx = True
179
180 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
181 # html_show_copyright = True
182
183 # If true, an OpenSearch description file will be output, and all pages will
184 # contain a <link> tag referring to it. The value of this option must be the
185 # base URL from which the finished HTML is served.
186 # html_use_opensearch = ''
187
188 # This is the file name suffix for HTML files (e.g. ".xhtml").
189 # html_file_suffix = None
190
191 # Output file base name for HTML help builder.
192 htmlhelp_basename = 'Ceilometerdoc'
193
194
195 # -- Options for LaTeX output -------------------------------------------------
196
197 latex_domain_indices = False
198
199 latex_elements = {
200 'makeindex': '',
201 'printindex': '',
202 'preamble': r'\setcounter{tocdepth}{3}',
203 'maxlistdepth': '10',
204 }
205
206 # Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
207 latex_use_xindy = False
208
209 # Disable smartquotes, they don't work in latex
210 smartquotes_excludes = {'builders': ['latex']}
211
212 # Grouping the document tree into LaTeX files. List of tuples
213 # (source start file, target name, title, author, documentclass
214 # [howto/manual]).
215 latex_documents = [
216 ('index', 'doc-ceilometer.tex', 'Ceilometer Documentation',
217 'OpenStack Foundation', 'manual'),
218 ]
219
220 # The name of an image file (relative to this directory) to place at the top of
221 # the title page.
222 # latex_logo = None
223
224 # For "manual" documents, if this is true, then toplevel headings are parts,
225 # not chapters.
226 # latex_use_parts = False
227
228 # If true, show page references after internal links.
229 # latex_show_pagerefs = False
230
231 # If true, show URL addresses after external links.
232 # latex_show_urls = False
233
234 # Documents to append as an appendix to all manuals.
235 # latex_appendices = []
236
237 # If false, no module index is generated.
238 # latex_domain_indices = True
239
240
241 # -- Options for manual page output -------------------------------------------
242
243 # One entry per manual page. List of tuples
244 # (source start file, name, description, authors, manual section).
245 man_pages = [
246 ('index', 'ceilometer', 'Ceilometer Documentation',
247 ['OpenStack'], 1)
248 ]
249
250 # If true, show URL addresses after external links.
251 # man_show_urls = False
252
253
254 # -- Options for Texinfo output -----------------------------------------------
255
256 # Grouping the document tree into Texinfo files. List of tuples
257 # (source start file, target name, title, author,
258 # dir menu entry, description, category)
259 texinfo_documents = [
260 ('index', 'Ceilometer', 'Ceilometer Documentation', 'OpenStack',
261 'Ceilometer', 'One line description of project.', 'Miscellaneous'),
262 ]
263
264 # Documents to append as an appendix to all manuals.
265 # texinfo_appendices = []
266
267 # If false, no module index is generated.
268 # texinfo_domain_indices = True
269
270 # How to display URL addresses: 'footnote', 'no', or 'inline'.
271 # texinfo_show_urls = 'footnote'
272
273
274 # -- Options for Epub output --------------------------------------------------
275
276 # Bibliographic Dublin Core info.
277 epub_title = 'Ceilometer'
278 epub_author = 'OpenStack'
279 epub_publisher = 'OpenStack'
280 epub_copyright = '2012-2015, OpenStack'
281
282 # The language of the text. It defaults to the language option
283 # or en if the language is not set.
284 # epub_language = ''
285
286 # The scheme of the identifier. Typical schemes are ISBN or URL.
287 # epub_scheme = ''
288
289 # The unique identifier of the text. This can be an ISBN number
290 # or the project homepage.
291 # epub_identifier = ''
292
293 # A unique identification for the text.
294 # epub_uid = ''
295
296 # A tuple containing the cover image and cover page html template filenames.
297 # epub_cover = ()
298
299 # HTML files that should be inserted before the pages created by sphinx.
300 # The format is a list of tuples containing the path and title.
301 # epub_pre_files = []
302
303 # HTML files that should be inserted after the pages created by sphinx.
304 # The format is a list of tuples containing the path and title.
305 # epub_post_files = []
306
307 # A list of files that should not be packed into the epub file.
308 # epub_exclude_files = []
309
310 # The depth of the table of contents in toc.ncx.
311 # epub_tocdepth = 3
312
313 # Allow duplicate toc entries.
314 # epub_tocdup = True
315
316 # NOTE(dhellmann): pbr used to set this option but now that we are
317 # using Sphinx>=1.6.2 it does not so we have to set it ourselves.
318 suppress_warnings = [
319 'app.add_directive', 'app.add_role',
320 'app.add_generic_role', 'app.add_node',
321 'image.nonlocal_uri',
322 ]