Debian Codegraph @

documentation/autopilot-helpers/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # Copyright (C) 2016 Canonical Ltd.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; version 3.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17 #
18 # lomiri-ui-toolkit-autopilot documentation build configuration file.
19 #
20 # This file is execfile()d with the current directory set to its
21 # containing dir.
22 #
23 # Note that not all possible configuration values are present in this
24 # autogenerated file.
25 #
26 # All configuration values have a default; values that are commented out
27 # serve to show the default.
28
29 import sys
30 import os
31 import lomiriuitoolkit
32
33 assert sys
34 assert os
35 assert lomiriuitoolkit
36
37 # If extensions (or modules to document with autodoc) are in another directory,
38 # add these directories to sys.path here. If the directory is relative to the
39 # documentation root, use os.path.abspath to make it absolute, like shown here.
40 sys.path.insert(0, os.path.join(os.path.abspath('../..'), 'tests/autopilot/'))
41
42
43 # -- General configuration ------------------------------------------------
44
45 # If your documentation needs a minimal Sphinx version, state it here.
46 # needs_sphinx = '1.0'
47
48 # Add any Sphinx extension module names here, as strings. They can be
49 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
50 # ones.
51 extensions = [
52 'sphinx.ext.autodoc',
53 'sphinx.ext.doctest',
54 'sphinx.ext.todo',
55 'sphinx.ext.viewcode',
56 ]
57
58 # Add any paths that contain templates here, relative to this directory.
59 templates_path = ['_templates']
60
61 # The suffix of source filenames.
62 source_suffix = '.rst'
63
64 # The encoding of source files.
65 # source_encoding = 'utf-8-sig'
66
67 # The master toctree document.
68 master_doc = 'index'
69
70 # General information about the project.
71 project = u'lomiri-ui-toolkit-autopilot'
72 copyright = u'2015, Canonical'
73
74 # The version info for the project you're documenting, acts as replacement for
75 # |version| and |release|, also used in various other places throughout the
76 # built documents.
77 #
78 # The short X.Y version.
79 version = '15.04'
80 # The full version, including alpha/beta/rc tags.
81 release = '15.04'
82
83 # The language for content autogenerated by Sphinx. Refer to documentation
84 # for a list of supported languages.
85 # language = None
86
87 # There are two options for replacing |today|: either, you set today to some
88 # non-false value, then it is used:
89 # today = ''
90 # Else, today_fmt is used as the format for a strftime call.
91 # today_fmt = '%B %d, %Y'
92
93 # List of patterns, relative to source directory, that match files and
94 # directories to ignore when looking for source files.
95 exclude_patterns = ['_build']
96
97 # The reST default role (used for this markup: `text`) to use for all
98 # documents.
99 # default_role = None
100
101 # If true, '()' will be appended to :func: etc. cross-reference text.
102 # add_function_parentheses = True
103
104 # If true, the current module name will be prepended to all description
105 # unit titles (such as .. function::).
106 # add_module_names = True
107
108 # If true, sectionauthor and moduleauthor directives will be shown in the
109 # output. They are ignored by default.
110 # show_authors = False
111
112 # The name of the Pygments (syntax highlighting) style to use.
113 pygments_style = 'sphinx'
114
115 # A list of ignored prefixes for module index sorting.
116 # modindex_common_prefix = []
117
118 # If true, keep warnings as "system message" paragraphs in the built documents.
119 # keep_warnings = False
120
121
122 # -- Options for HTML output ----------------------------------------------
123
124 # The theme to use for HTML and HTML Help pages. See the documentation for
125 # a list of builtin themes.
126 html_theme = 'default'
127
128 # Theme options are theme-specific and customize the look and feel of a theme
129 # further. For a list of options available for each theme, see the
130 # documentation.
131 # html_theme_options = {}
132
133 # Add any paths that contain custom themes here, relative to this directory.
134 # html_theme_path = []
135
136 # The name for this set of Sphinx documents. If None, it defaults to
137 # "<project> v<release> documentation".
138 # html_title = None
139
140 # A shorter title for the navigation bar. Default is the same as html_title.
141 # html_short_title = None
142
143 # The name of an image file (relative to this directory) to place at the top
144 # of the sidebar.
145 # html_logo = None
146
147 html_favicon = './images/favicon.ico'
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 # Add any extra paths that contain custom files (such as robots.txt or
155 # .htaccess) here, relative to this directory. These files are copied
156 # directly to the root of the documentation.
157 # html_extra_path = []
158
159 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
160 # using the given strftime format.
161 # html_last_updated_fmt = '%b %d, %Y'
162
163 # If true, SmartyPants will be used to convert quotes and dashes to
164 # typographically correct entities.
165 # html_use_smartypants = True
166
167 # Custom sidebar templates, maps document names to template names.
168 # html_sidebars = {}
169
170 html_domain_indices = True
171 # Additional templates that should be rendered to pages, maps page names to
172 # template names.
173 html_use_index = True
174 # html_additional_pages = {}
175
176 # If false, no module index is generated.
177 # html_domain_indices = True
178
179 html_show_sourcelink = False
180 # If false, no index is generated.
181 # html_use_index = True
182 html_show_sphinx = False
183
184 # If true, the index is split into individual pages for each letter.
185 html_show_copyright = True
186 # html_split_index = False
187
188 # If true, links to the reST sources are added to the pages.
189 # html_show_sourcelink = True
190
191 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
192 # html_show_sphinx = True
193
194 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
195 # html_show_copyright = True
196
197 # If true, an OpenSearch description file will be output, and all pages will
198 # contain a <link> tag referring to it. The value of this option must be the
199 # base URL from which the finished HTML is served.
200 # html_use_opensearch = ''
201
202 # This is the file name suffix for HTML files (e.g. ".xhtml").
203 # html_file_suffix = None
204
205 # Output file base name for HTML help builder.
206 htmlhelp_basename = 'lomiri-ui-toolkit-autopilotdoc'
207
208
209 # -- Options for LaTeX output ---------------------------------------------
210
211 latex_elements = {
212 # The paper size ('letterpaper' or 'a4paper').
213 # 'papersize': 'letterpaper',
214
215 # The font size ('10pt', '11pt' or '12pt').
216 # 'pointsize': '10pt',
217
218 # Additional stuff for the LaTeX preamble.
219 # 'preamble': '',
220 }
221
222 # Grouping the document tree into LaTeX files. List of tuples
223 # (source start file, target name, title,
224 # author, documentclass [howto, manual, or own class]).
225 latex_documents = [
226 ('index', 'lomiri-ui-toolkit-autopilot.tex',
227 u'lomiri-ui-toolkit-autopilot Documentation',
228 u'authors', 'manual'),
229 ]
230
231 # The name of an image file (relative to this directory) to place at the top of
232 # the title page.
233 # latex_logo = None
234
235 # For "manual" documents, if this is true, then toplevel headings are parts,
236 # not chapters.
237 # latex_use_parts = False
238
239 # If true, show page references after internal links.
240 # latex_show_pagerefs = False
241
242 # If true, show URL addresses after external links.
243 # latex_show_urls = False
244
245 # Documents to append as an appendix to all manuals.
246 # latex_appendices = []
247
248 # If false, no module index is generated.
249 # latex_domain_indices = True
250
251
252 # -- Options for manual page output ---------------------------------------
253
254 # One entry per manual page. List of tuples
255 # (source start file, name, description, authors, manual section).
256 man_pages = [
257 ('index', 'lomiri-ui-toolkit-autopilot',
258 u'lomiri-ui-toolkit-autopilot Documentation',
259 [u'authors'], 1)
260 ]
261
262 # If true, show URL addresses after external links.
263 # man_show_urls = False
264
265
266 # -- Options for Texinfo output -------------------------------------------
267
268 # Grouping the document tree into Texinfo files. List of tuples
269 # (source start file, target name, title, author,
270 # dir menu entry, description, category)
271 texinfo_documents = [
272 ('index', 'lomiri-ui-toolkit-autopilot',
273 u'lomiri-ui-toolkit-autopilot Documentation',
274 u'authors', 'lomiri-ui-toolkit-autopilot',
275 'An autopilot emulator for the lomiri sdk',
276 'Miscellaneous'),
277 ]
278
279 # Documents to append as an appendix to all manuals.
280 # texinfo_appendices = []
281
282 # If false, no module index is generated.
283 # texinfo_domain_indices = True
284
285 # How to display URL addresses: 'footnote', 'no', or 'inline'.
286 # texinfo_show_urls = 'footnote'
287
288 # If true, do not generate a @detailmenu in the "Top" node's menu.
289 # texinfo_no_detailmenu = False
290
291
292 # -- Options for Epub output ----------------------------------------------
293
294 # Bibliographic Dublin Core info.
295 epub_title = u'lomiri-ui-toolkit-autopilot'
296 epub_author = u'authors'
297 epub_publisher = u'Canonical'
298 epub_copyright = u'2015, Canonical'
299
300 # The basename for the epub file. It defaults to the project name.
301 # epub_basename = u'lomiri-ui-toolkit-autopilot'
302
303 # The HTML theme for the epub output. Since the default themes are not
304 # optimized for small screen space, using the same theme for HTML and
305 # epub output is usually not wise. This defaults to 'epub', a theme
306 # designed to save visual space.
307 # epub_theme = 'epub'
308
309 # The language of the text. It defaults to the language option
310 # or en if the language is not set.
311 # epub_language = ''
312
313 # The scheme of the identifier. Typical schemes are ISBN or URL.
314 # epub_scheme = ''
315
316 # The unique identifier of the text. This can be a ISBN number
317 # or the project homepage.
318 # epub_identifier = ''
319
320 # A unique identification for the text.
321 # epub_uid = ''
322
323 # A tuple containing the cover image and cover page html template filenames.
324 # epub_cover = ()
325
326 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
327 # epub_guide = ()
328
329 # HTML files that should be inserted before the pages created by sphinx.
330 # The format is a list of tuples containing the path and title.
331 # epub_pre_files = []
332
333 # HTML files shat should be inserted after the pages created by sphinx.
334 # The format is a list of tuples containing the path and title.
335 # epub_post_files = []
336
337 # A list of files that should not be packed into the epub file.
338 epub_exclude_files = ['search.html']
339
340 # The depth of the table of contents in toc.ncx.
341 # epub_tocdepth = 3
342
343 # Allow duplicate toc entries.
344 # epub_tocdup = True
345
346 # Choose between 'default' and 'includehidden'.
347 # epub_tocscope = 'default'
348
349 # Fix unsupported image types using the PIL.
350 # epub_fix_images = False
351
352 # Scale large images.
353 # epub_max_image_width = 0
354
355 # How to display URL addresses: 'footnote', 'no', or 'inline'.
356 # epub_show_urls = 'inline'
357
358 # If false, no index is generated.
359 # epub_use_index = True