Debian Codegraph @

docs/source/conf.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 #
3 # smoke-zephyr documentation build configuration file, created by
4 # sphinx-quickstart on Wed May 21 09:18:54 2014.
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
14 import sys
15 import os
16
17 _prj_root = os.path.dirname(__file__)
18 _prj_root = os.path.relpath(os.path.join('..', '..'), _prj_root)
19 _prj_root = os.path.abspath(_prj_root)
20 sys.path.insert(1, _prj_root)
21
22 del _prj_root
23
24 import smoke_zephyr
25
26 GITHUB_BRANCH = 'master'
27 GITHUB_REPO = 'zeroSteiner/smoke-zephyr'
28
29 # If extensions (or modules to document with autodoc) are in another directory,
30 # add these directories to sys.path here. If the directory is relative to the
31 # documentation root, use os.path.abspath to make it absolute, like shown here.
32 #sys.path.insert(0, os.path.abspath('.'))
33
34 # -- General configuration -----------------------------------------------------
35
36 # If your documentation needs a minimal Sphinx version, state it here.
37 needs_sphinx = '1.6'
38
39 # Add any Sphinx extension module names here, as strings. They can be extensions
40 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
41 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.intersphinx', 'sphinx.ext.linkcode']
42
43 intersphinx_mapping = {
44 'python': ('https://docs.python.org/3/', None),
45 }
46
47 def linkcode_resolve(domain, info):
48 if domain != 'py':
49 return None
50 if not info['module']:
51 return None
52 file_name = info['module'].replace('.', '/') + '.py'
53 return "https://github.com/{0}/blob/{1}/{2}".format(GITHUB_REPO, GITHUB_BRANCH, file_name)
54
55 # Add any paths that contain templates here, relative to this directory.
56 templates_path = ['_templates']
57
58 # The suffix of source filenames.
59 source_suffix = '.rst'
60
61 # The encoding of source files.
62 #source_encoding = 'utf-8-sig'
63
64 # The master toctree document.
65 master_doc = 'index'
66
67 # General information about the project.
68 project = u'smoke-zephyr'
69 copyright = u'2014-2018, Spencer McIntyre'
70
71 # The version info for the project you're documenting, acts as replacement for
72 # |version| and |release|, also used in various other places throughout the
73 # built documents.
74 #
75 # The short X.Y version.
76 version = smoke_zephyr.version.split('-')[0]
77 # The full version, including alpha/beta/rc tags.
78 release = smoke_zephyr.distutils_version
79
80 # The language for content autogenerated by Sphinx. Refer to documentation
81 # for a list of supported languages.
82 #language = None
83
84 # There are two options for replacing |today|: either, you set today to some
85 # non-false value, then it is used:
86 #today = ''
87 # Else, today_fmt is used as the format for a strftime call.
88 #today_fmt = '%B %d, %Y'
89
90 # List of patterns, relative to source directory, that match files and
91 # directories to ignore when looking for source files.
92 exclude_patterns = []
93
94 # The reST default role (used for this markup: `text`) to use for all documents.
95 #default_role = None
96
97 # If true, '()' will be appended to :func: etc. cross-reference text.
98 #add_function_parentheses = True
99
100 # If true, the current module name will be prepended to all description
101 # unit titles (such as .. function::).
102 add_module_names = False
103
104 # If true, sectionauthor and moduleauthor directives will be shown in the
105 # output. They are ignored by default.
106 #show_authors = False
107
108 # The name of the Pygments (syntax highlighting) style to use.
109 pygments_style = 'sphinx'
110
111 # A list of ignored prefixes for module index sorting.
112 #modindex_common_prefix = []
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 if os.environ.get('READTHEDOCS', None) != 'True':
120 html_theme = 'sphinx_rtd_theme'
121
122 # Theme options are theme-specific and customize the look and feel of a theme
123 # further. For a list of options available for each theme, see the
124 # documentation.
125 #html_theme_options = {}
126
127 # Add any paths that contain custom themes here, relative to this directory.
128 #html_theme_path = []
129
130 # The name for this set of Sphinx documents. If None, it defaults to
131 # "<project> v<release> documentation".
132 #html_title = None
133
134 # A shorter title for the navigation bar. Default is the same as html_title.
135 #html_short_title = None
136
137 # The name of an image file (relative to this directory) to place at the top
138 # of the sidebar.
139 #html_logo = None
140
141 # The name of an image file (within the static path) to use as favicon of the
142 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
143 # pixels large.
144 #html_favicon = None
145
146 # Add any paths that contain custom static files (such as style sheets) here,
147 # relative to this directory. They are copied after the builtin static files,
148 # so a file named "default.css" will overwrite the builtin "default.css".
149 html_static_path = ['_static']
150
151 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
152 # using the given strftime format.
153 #html_last_updated_fmt = '%b %d, %Y'
154
155 # If true, SmartyPants will be used to convert quotes and dashes to
156 # typographically correct entities.
157 #html_use_smartypants = True
158
159 # Custom sidebar templates, maps document names to template names.
160 #html_sidebars = {}
161
162 # Additional templates that should be rendered to pages, maps page names to
163 # template names.
164 #html_additional_pages = {}
165
166 # If false, no module index is generated.
167 #html_domain_indices = True
168
169 # If false, no index is generated.
170 #html_use_index = True
171
172 # If true, the index is split into individual pages for each letter.
173 #html_split_index = False
174
175 # If true, links to the reST sources are added to the pages.
176 #html_show_sourcelink = True
177
178 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
179 #html_show_sphinx = True
180
181 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
182 #html_show_copyright = True
183
184 # If true, an OpenSearch description file will be output, and all pages will
185 # contain a <link> tag referring to it. The value of this option must be the
186 # base URL from which the finished HTML is served.
187 #html_use_opensearch = ''
188
189 # This is the file name suffix for HTML files (e.g. ".xhtml").
190 #html_file_suffix = None
191
192 # Output file base name for HTML help builder.
193 htmlhelp_basename = 'smoke-zephyr-doc'
194
195
196 # -- Options for LaTeX output --------------------------------------------------
197
198 latex_elements = {
199 # The paper size ('letterpaper' or 'a4paper').
200 #'papersize': 'letterpaper',
201
202 # The font size ('10pt', '11pt' or '12pt').
203 #'pointsize': '10pt',
204
205 # Additional stuff for the LaTeX preamble.
206 #'preamble': '',
207 }
208
209 # Grouping the document tree into LaTeX files. List of tuples
210 # (source start file, target name, title, author, documentclass [howto/manual]).
211 latex_documents = [
212 ('index', 'smoke-zephyr.tex', u'smoke-zephyr Documentation',
213 u'Spencer McIntyre', 'manual'),
214 ]
215
216 # The name of an image file (relative to this directory) to place at the top of
217 # the title page.
218 #latex_logo = None
219
220 # For "manual" documents, if this is true, then toplevel headings are parts,
221 # not chapters.
222 #latex_use_parts = False
223
224 # If true, show page references after internal links.
225 #latex_show_pagerefs = False
226
227 # If true, show URL addresses after external links.
228 #latex_show_urls = False
229
230 # Documents to append as an appendix to all manuals.
231 #latex_appendices = []
232
233 # If false, no module index is generated.
234 #latex_domain_indices = True
235
236
237 # -- Options for manual page output --------------------------------------------
238
239 # One entry per manual page. List of tuples
240 # (source start file, name, description, authors, manual section).
241 man_pages = [
242 ('index', 'smoke-zephyr', u'smoke-zephyr Documentation',
243 [u'Spencer McIntyre'], 1)
244 ]
245
246 # If true, show URL addresses after external links.
247 #man_show_urls = False
248
249
250 # -- Options for Texinfo output ------------------------------------------------
251
252 # Grouping the document tree into Texinfo files. List of tuples
253 # (source start file, target name, title, author,
254 # dir menu entry, description, category)
255 texinfo_documents = [
256 ('index', 'smoke-zephyr', u'smoke-zephyr Documentation',
257 u'Spencer McIntyre', 'smoke-zephyr', 'Python utility collection',
258 'Miscellaneous'),
259 ]
260
261 # Documents to append as an appendix to all manuals.
262 #texinfo_appendices = []
263
264 # If false, no module index is generated.
265 #texinfo_domain_indices = True
266
267 # How to display URL addresses: 'footnote', 'no', or 'inline'.
268 #texinfo_show_urls = 'footnote'
269
270
271 # -- Options for Epub output ---------------------------------------------------
272
273 # Bibliographic Dublin Core info.
274 epub_title = u'smoke-zephyr'
275 epub_author = u'Spencer McIntyre'
276 epub_publisher = u'Spencer McIntyre'
277 epub_copyright = u'2014, Spencer McIntyre'
278
279 # The language of the text. It defaults to the language option
280 # or en if the language is not set.
281 #epub_language = ''
282
283 # The scheme of the identifier. Typical schemes are ISBN or URL.
284 #epub_scheme = ''
285
286 # The unique identifier of the text. This can be a ISBN number
287 # or the project homepage.
288 #epub_identifier = ''
289
290 # A unique identification for the text.
291 #epub_uid = ''
292
293 # A tuple containing the cover image and cover page html template filenames.
294 #epub_cover = ()
295
296 # HTML files that should be inserted before the pages created by sphinx.
297 # The format is a list of tuples containing the path and title.
298 #epub_pre_files = []
299
300 # HTML files shat should be inserted after the pages created by sphinx.
301 # The format is a list of tuples containing the path and title.
302 #epub_post_files = []
303
304 # A list of files that should not be packed into the epub file.
305 #epub_exclude_files = []
306
307 # The depth of the table of contents in toc.ncx.
308 #epub_tocdepth = 3
309
310 # Allow duplicate toc entries.
311 #epub_tocdup = True