Debian Codegraph @

doc/source/conf.py

raw
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 #
4 # BuildStream documentation build configuration file, created by
5 # sphinx-quickstart on Mon Nov 7 21:03:37 2016.
6 #
7 # This file is execfile()d with the current directory set to its
8 # containing dir.
9 #
10 # Note that not all possible configuration values are present in this
11 # autogenerated file.
12 #
13 # All configuration values have a default; values that are commented out
14 # serve to show the default.
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.
19 #
20 import os
21 import sys
22 from buildstream_plugins import __version__
23
24 sys.path.insert(0, os.path.abspath('..'))
25
26 # -- General configuration ------------------------------------------------
27
28 # If your documentation needs a minimal Sphinx version, state it here.
29 #
30 # needs_sphinx = '1.0'
31
32 # Add any Sphinx extension module names here, as strings. They can be
33 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34 # ones.
35 extensions = [
36 'sphinx.ext.autodoc',
37 'sphinx.ext.napoleon',
38 'sphinx.ext.extlinks',
39 ]
40
41 # Add any paths that contain templates here, relative to this directory.
42 templates_path = ['.templates']
43
44 # The suffix(es) of source filenames.
45 # You can specify multiple suffix as a list of string:
46 #
47 # source_suffix = ['.rst', '.md']
48 source_suffix = '.rst'
49
50 # The encoding of source files.
51 #
52 # source_encoding = 'utf-8-sig'
53
54 # The master toctree document.
55 master_doc = 'index'
56
57 # General information about the project.
58 project = 'BuildStream Plugins'
59 copyright = '2022, The Apache Software Foundation'
60 author = 'The Apache Software Foundation'
61
62 # The version info for the project you're documenting, acts as replacement for
63 # |version| and |release|, also used in various other places throughout the
64 # built documents.
65 #
66 # The short X.Y version.
67 version = __version__
68 # The full version, including alpha/beta/rc tags.
69 release = __version__
70
71 # The language for content autogenerated by Sphinx. Refer to documentation
72 # for a list of supported languages.
73 #
74 # This is also used if you do content translation via gettext catalogs.
75 # Usually you set "language" from the command line for these cases.
76 language = "en"
77
78 # There are two options for replacing |today|: either, you set today to some
79 # non-false value, then it is used:
80 #
81 # today = ''
82 #
83 # Else, today_fmt is used as the format for a strftime call.
84 #
85 # today_fmt = '%B %d, %Y'
86
87 # List of patterns, relative to source directory, that match files and
88 # directories to ignore when looking for source files.
89 # This patterns also effect to html_static_path and html_extra_path
90 exclude_patterns = []
91
92 # The reST default role (used for this markup: `text`) to use for all
93 # documents.
94 #
95 # default_role = None
96
97 # If true, '()' will be appended to :func: etc. cross-reference text.
98 #
99 # add_function_parentheses = True
100
101 # If true, the current module name will be prepended to all description
102 # unit titles (such as .. function::).
103 #
104 add_module_names = False
105
106 # If true, sectionauthor and moduleauthor directives will be shown in the
107 # output. They are ignored by default.
108 #
109 # show_authors = False
110
111 # The name of the Pygments (syntax highlighting) style to use.
112 pygments_style = 'sphinx'
113
114 # A list of ignored prefixes for module index sorting.
115 modindex_common_prefix = [ 'buildstream.' ]
116
117 # If true, keep warnings as "system message" paragraphs in the built documents.
118 # keep_warnings = False
119
120 # If true, `todo` and `todoList` produce output, else they produce nothing.
121 todo_include_todos = False
122
123
124 # -- Options for HTML output ----------------------------------------------
125
126 # The theme to use for HTML and HTML Help pages. See the documentation for
127 # a list of builtin themes.
128 #
129 html_theme = 'sphinx_rtd_theme'
130
131 # Theme options are theme-specific and customize the look and feel of a theme
132 # further. For a list of options available for each theme, see the
133 # documentation.
134 #
135 # html_theme_options = {}
136
137 # Add any paths that contain custom themes here, relative to this directory.
138 # html_theme_path = []
139
140 # The name for this set of Sphinx documents.
141 # "<project> v<release> documentation" by default.
142 #
143 # html_title = 'BuildStream v0.1'
144
145 # A shorter title for the navigation bar. Default is the same as html_title.
146 #
147 # html_short_title = None
148
149 # The name of an image file (relative to this directory) to place at the top
150 # of the sidebar.
151 #
152 # html_logo = None
153
154 # The name of an image file (relative to this directory) to use as a favicon of
155 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
156 # pixels large.
157 #
158 # html_favicon = None
159
160 # Add any paths that contain custom static files (such as style sheets) here,
161 # relative to this directory. They are copied after the builtin static files,
162 # so a file named "default.css" will overwrite the builtin "default.css".
163 html_static_path = []
164
165 # Add any extra paths that contain custom files (such as robots.txt or
166 # .htaccess) here, relative to this directory. These files are copied
167 # directly to the root of the documentation.
168 #
169 # html_extra_path = []
170
171 # If not None, a 'Last updated on:' timestamp is inserted at every page
172 # bottom, using the given strftime format.
173 # The empty string is equivalent to '%b %d, %Y'.
174 #
175 # html_last_updated_fmt = None
176
177 # If true, SmartyPants will be used to convert quotes and dashes to
178 # typographically correct entities.
179 #
180 # html_use_smartypants = True
181
182 # Custom sidebar templates, maps document names to template names.
183 #
184 # html_sidebars = {}
185
186 # Additional templates that should be rendered to pages, maps page names to
187 # template names.
188 #
189 # html_additional_pages = {}
190
191 # If false, no module index is generated.
192 #
193 # html_domain_indices = True
194
195 # If false, no index is generated.
196 #
197 # html_use_index = True
198
199 # If true, the index is split into individual pages for each letter.
200 #
201 # html_split_index = False
202
203 # If true, links to the reST sources are added to the pages.
204 #
205 # html_show_sourcelink = True
206
207 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
208 #
209 # html_show_sphinx = True
210
211 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
212 #
213 # html_show_copyright = True
214
215 # If true, an OpenSearch description file will be output, and all pages will
216 # contain a <link> tag referring to it. The value of this option must be the
217 # base URL from which the finished HTML is served.
218 #
219 # html_use_opensearch = ''
220
221 # This is the file name suffix for HTML files (e.g. ".xhtml").
222 # html_file_suffix = None
223
224 # Language to be used for generating the HTML full-text search index.
225 # Sphinx supports the following languages:
226 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
227 # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
228 #
229 # html_search_language = 'en'
230
231 # A dictionary with options for the search language support, empty by default.
232 # 'ja' uses this config value.
233 # 'zh' user can custom change `jieba` dictionary path.
234 #
235 # html_search_options = {'type': 'default'}
236
237 # The name of a javascript file (relative to the configuration directory) that
238 # implements a search results scorer. If empty, the default will be used.
239 #
240 # html_search_scorer = 'scorer.js'
241
242 # Output file base name for HTML help builder.
243 htmlhelp_basename = 'BuildStreamdoc'
244
245 # -- Options for LaTeX output ---------------------------------------------
246
247 latex_elements = {
248 # The paper size ('letterpaper' or 'a4paper').
249 #
250 # 'papersize': 'letterpaper',
251
252 # The font size ('10pt', '11pt' or '12pt').
253 #
254 # 'pointsize': '10pt',
255
256 # Additional stuff for the LaTeX preamble.
257 #
258 # 'preamble': '',
259
260 # Latex figure (float) alignment
261 #
262 # 'figure_align': 'htbp',
263 }
264
265 # Grouping the document tree into LaTeX files. List of tuples
266 # (source start file, target name, title,
267 # author, documentclass [howto, manual, or own class]).
268 latex_documents = [
269 (master_doc, 'BuildStream.tex', 'BuildStream Plugins Documentation',
270 'BuildStream Developers', 'manual'),
271 ]
272
273 # The name of an image file (relative to this directory) to place at the top of
274 # the title page.
275 #
276 # latex_logo = None
277
278 # For "manual" documents, if this is true, then toplevel headings are parts,
279 # not chapters.
280 #
281 # latex_use_parts = False
282
283 # If true, show page references after internal links.
284 #
285 # latex_show_pagerefs = False
286
287 # If true, show URL addresses after external links.
288 #
289 # latex_show_urls = False
290
291 # Documents to append as an appendix to all manuals.
292 #
293 # latex_appendices = []
294
295 # It false, will not define \strong, \code, itleref, \crossref ... but only
296 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
297 # packages.
298 #
299 # latex_keep_old_macro_names = True
300
301 # If false, no module index is generated.
302 #
303 # latex_domain_indices = True
304
305
306 # -- Options for manual page output ---------------------------------------
307
308 # One entry per manual page. List of tuples
309 # (source start file, name, description, authors, manual section).
310 man_pages = [
311 (master_doc, 'buildstream', 'BuildStream Documentation',
312 [author], 1)
313 ]
314
315 # If true, show URL addresses after external links.
316 #
317 # man_show_urls = False
318
319
320 # -- Options for Texinfo output -------------------------------------------
321
322 # Grouping the document tree into Texinfo files. List of tuples
323 # (source start file, target name, title, author,
324 # dir menu entry, description, category)
325 texinfo_documents = [
326 (master_doc, 'BuildStream', 'BuildStream Plugins Documentation',
327 author, 'BuildStream', 'A collection of BuildStream plugins.',
328 'Miscellaneous'),
329 ]
330
331 # Documents to append as an appendix to all manuals.
332 #
333 # texinfo_appendices = []
334
335 # If false, no module index is generated.
336 #
337 # texinfo_domain_indices = True
338
339 # How to display URL addresses: 'footnote', 'no', or 'inline'.
340 #
341 # texinfo_show_urls = 'footnote'
342
343 # If true, do not generate a @detailmenu in the "Top" node's menu.
344 #
345 # texinfo_no_detailmenu = False
346
347 autodoc_member_order = 'bysource'