]> kaliko git repositories - python-musicpd.git/blob - doc/source/conf.py
Improved documentation
[python-musicpd.git] / doc / source / conf.py
1 # coding: utf-8
2 #
3 # Python ListenBrainz Module documentation build configuration file, created by
4 # sphinx-quickstart on Mon Mar 12 14:37:32 2018.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 #
19 import os
20 import sys
21 sys.path.insert(0, os.path.abspath('../../'))
22 from musicpd import VERSION
23 __author__ = 'kaliko'
24 # -- General configuration ------------------------------------------------
25
26 # If your documentation needs a minimal Sphinx version, state it here.
27 #
28 # needs_sphinx = '1.0'
29
30 # Add any Sphinx extension module names here, as strings. They can be
31 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32 # ones.
33 extensions = [
34     'sphinx.ext.autodoc',
35     'sphinx.ext.intersphinx',
36     #'sphinx.ext.coverage',
37     'sphinx.ext.viewcode',
38     'sphinx.ext.todo',
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 = u'Python ListenBrainz Module'
59 copyright = u'2018, {}'.format(__author__)
60 author = __author__
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 = None
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 = True
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 = []
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 = True
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 = 'classic'
130 #html_theme = "sphinx_rtd_theme"
131 #html_theme = 'bootstrap'
132
133 # Theme options are theme-specific and customize the look and feel of a theme
134 # further.  For a list of options available for each theme, see the
135 # documentation.
136 #
137 # html_theme_options = {}
138
139 # Add any paths that contain custom themes here, relative to this directory.
140 # html_theme_path = []
141 #html_theme_path = ['/usr/lib/python3/dist-packages/sphinx_bootstrap_theme']
142
143 # The name for this set of Sphinx documents.
144 # "<project> v<release> documentation" by default.
145 #
146 # html_title = u'Python ListenBrainz Module v0.0.1'
147
148 # A shorter title for the navigation bar.  Default is the same as html_title.
149 #
150 # html_short_title = None
151
152 # The name of an image file (relative to this directory) to place at the top
153 # of the sidebar.
154 #
155 # html_logo = None
156
157 # The name of an image file (relative to this directory) to use as a favicon of
158 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
159 # pixels large.
160 #
161 # html_favicon = None
162
163 # Add any paths that contain custom static files (such as style sheets) here,
164 # relative to this directory. They are copied after the builtin static files,
165 # so a file named "default.css" will overwrite the builtin "default.css".
166 #chtml_static_path = ['_static']
167
168 # Add any extra paths that contain custom files (such as robots.txt or
169 # .htaccess) here, relative to this directory. These files are copied
170 # directly to the root of the documentation.
171 #
172 # html_extra_path = []
173
174 # If not None, a 'Last updated on:' timestamp is inserted at every page
175 # bottom, using the given strftime format.
176 # The empty string is equivalent to '%b %d, %Y'.
177 #
178 # html_last_updated_fmt = None
179
180 # If true, SmartyPants will be used to convert quotes and dashes to
181 # typographically correct entities.
182 #
183 # html_use_smartypants = True
184
185 # Custom sidebar templates, maps document names to template names.
186 #
187 # html_sidebars = {}
188
189 # Additional templates that should be rendered to pages, maps page names to
190 # template names.
191 #
192 # html_additional_pages = {}
193
194 # If false, no module index is generated.
195 #
196 # html_domain_indices = True
197
198 # If false, no index is generated.
199 #
200 # html_use_index = True
201
202 # If true, the index is split into individual pages for each letter.
203 #
204 # html_split_index = False
205
206 # If true, links to the reST sources are added to the pages.
207 #
208 # html_show_sourcelink = True
209
210 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
211 #
212 # html_show_sphinx = True
213 html_show_sphinx = False
214
215 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
216 #
217 # html_show_copyright = True
218
219 # If true, an OpenSearch description file will be output, and all pages will
220 # contain a <link> tag referring to it.  The value of this option must be the
221 # base URL from which the finished HTML is served.
222 #
223 # html_use_opensearch = ''
224
225 # This is the file name suffix for HTML files (e.g. ".xhtml").
226 # html_file_suffix = None
227
228 # Language to be used for generating the HTML full-text search index.
229 # Sphinx supports the following languages:
230 #   'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
231 #   'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
232 #
233 # html_search_language = 'en'
234
235 # A dictionary with options for the search language support, empty by default.
236 # 'ja' uses this config value.
237 # 'zh' user can custom change `jieba` dictionary path.
238 #
239 # html_search_options = {'type': 'default'}
240
241 # The name of a javascript file (relative to the configuration directory) that
242 # implements a search results scorer. If empty, the default will be used.
243 #
244 # html_search_scorer = 'scorer.js'
245
246 # Output file base name for HTML help builder.
247 htmlhelp_basename = 'PythonListenBrainzModuledoc'
248
249 # -- Options for LaTeX output ---------------------------------------------
250
251 latex_elements = {
252      # The paper size ('letterpaper' or 'a4paper').
253      #
254      # 'papersize': 'letterpaper',
255
256      # The font size ('10pt', '11pt' or '12pt').
257      #
258      # 'pointsize': '10pt',
259
260      # Additional stuff for the LaTeX preamble.
261      #
262      # 'preamble': '',
263
264      # Latex figure (float) alignment
265      #
266      # 'figure_align': 'htbp',
267 }
268
269 # Grouping the document tree into LaTeX files. List of tuples
270 # (source start file, target name, title,
271 #  author, documentclass [howto, manual, or own class]).
272 latex_documents = [
273     (master_doc, 'PythonListenBrainzModule.tex', u'Python ListenBrainz Module Documentation',
274      u'kaliko', 'manual'),
275 ]
276
277 # The name of an image file (relative to this directory) to place at the top of
278 # the title page.
279 #
280 # latex_logo = None
281
282 # For "manual" documents, if this is true, then toplevel headings are parts,
283 # not chapters.
284 #
285 # latex_use_parts = False
286
287 # If true, show page references after internal links.
288 #
289 # latex_show_pagerefs = False
290
291 # If true, show URL addresses after external links.
292 #
293 # latex_show_urls = False
294
295 # Documents to append as an appendix to all manuals.
296 #
297 # latex_appendices = []
298
299 # It false, will not define \strong, \code,     itleref, \crossref ... but only
300 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
301 # packages.
302 #
303 # latex_keep_old_macro_names = True
304
305 # If false, no module index is generated.
306 #
307 # latex_domain_indices = True
308
309
310 # -- Options for manual page output ---------------------------------------
311
312 # One entry per manual page. List of tuples
313 # (source start file, name, description, authors, manual section).
314 man_pages = [
315     (master_doc, 'pythonlistenbrainzmodule', u'Python ListenBrainz Module Documentation',
316      [author], 1)
317 ]
318
319 # If true, show URL addresses after external links.
320 #
321 # man_show_urls = False
322
323
324 # -- Options for Texinfo output -------------------------------------------
325
326 # Grouping the document tree into Texinfo files. List of tuples
327 # (source start file, target name, title, author,
328 #  dir menu entry, description, category)
329 texinfo_documents = [
330     (master_doc, 'PythonListenBrainzModule', u'Python ListenBrainz Module Documentation',
331      author, 'PythonListenBrainzModule', 'One line description of project.',
332      'Miscellaneous'),
333 ]
334
335 # Documents to append as an appendix to all manuals.
336 #
337 # texinfo_appendices = []
338
339 # If false, no module index is generated.
340 #
341 # texinfo_domain_indices = True
342
343 # How to display URL addresses: 'footnote', 'no', or 'inline'.
344 #
345 # texinfo_show_urls = 'footnote'
346
347 # If true, do not generate a @detailmenu in the "Top" node's menu.
348 #
349 # texinfo_no_detailmenu = False
350
351
352 # -- Options for Epub output ----------------------------------------------
353
354 # Bibliographic Dublin Core info.
355 epub_title = project
356 epub_author = author
357 epub_publisher = author
358 epub_copyright = copyright
359
360 # The basename for the epub file. It defaults to the project name.
361 # epub_basename = project
362
363 # The HTML theme for the epub output. Since the default themes are not
364 # optimized for small screen space, using the same theme for HTML and epub
365 # output is usually not wise. This defaults to 'epub', a theme designed to save
366 # visual space.
367 #
368 # epub_theme = 'epub'
369
370 # The language of the text. It defaults to the language option
371 # or 'en' if the language is not set.
372 #
373 # epub_language = ''
374
375 # The scheme of the identifier. Typical schemes are ISBN or URL.
376 # epub_scheme = ''
377
378 # The unique identifier of the text. This can be a ISBN number
379 # or the project homepage.
380 #
381 # epub_identifier = ''
382
383 # A unique identification for the text.
384 #
385 # epub_uid = ''
386
387 # A tuple containing the cover image and cover page html template filenames.
388 #
389 # epub_cover = ()
390
391 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
392 #
393 # epub_guide = ()
394
395 # HTML files that should be inserted before the pages created by sphinx.
396 # The format is a list of tuples containing the path and title.
397 #
398 # epub_pre_files = []
399
400 # HTML files that should be inserted after the pages created by sphinx.
401 # The format is a list of tuples containing the path and title.
402 #
403 # epub_post_files = []
404
405 # A list of files that should not be packed into the epub file.
406 epub_exclude_files = ['search.html']
407
408 # The depth of the table of contents in toc.ncx.
409 #
410 # epub_tocdepth = 3
411
412 # Allow duplicate toc entries.
413 #
414 # epub_tocdup = True
415
416 # Choose between 'default' and 'includehidden'.
417 #
418 # epub_tocscope = 'default'
419
420 # Fix unsupported image types using the Pillow.
421 #
422 # epub_fix_images = False
423
424 # Scale large images.
425 #
426 # epub_max_image_width = 0
427
428 # How to display URL addresses: 'footnote', 'no', or 'inline'.
429 #
430 # epub_show_urls = 'inline'
431
432 # If false, no index is generated.
433 #
434 # epub_use_index = True
435
436
437 # Example configuration for intersphinx: refer to the Python standard library.
438 intersphinx_mapping = {'https://docs.python.org/': None}
439
440 # autodoc config
441 autodoc_member_order = 'bysource'