]> kaliko git repositories - python-musicpd.git/blob - doc/source/conf.py
6839ce53011f95166a6f5e8b77502cdfafa962a0
[python-musicpd.git] / doc / source / conf.py
1 # coding: utf-8
2 #
3 # Python MPD 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 MPD Module'
59 from datetime import datetime
60 copyright = u'2012-{}, {}'.format(datetime.now().year, __author__)
61 author = __author__
62
63 # The version info for the project you're documenting, acts as replacement for
64 # |version| and |release|, also used in various other places throughout the
65 # built documents.
66 #
67 # The short X.Y version.
68 version = VERSION
69 # The full version, including alpha/beta/rc tags.
70 release = VERSION
71
72 # The language for content autogenerated by Sphinx. Refer to documentation
73 # for a list of supported languages.
74 #
75 # This is also used if you do content translation via gettext catalogs.
76 # Usually you set "language" from the command line for these cases.
77 language = None
78
79 # There are two options for replacing |today|: either, you set today to some
80 # non-false value, then it is used:
81 #
82 # today = ''
83 #
84 # Else, today_fmt is used as the format for a strftime call.
85 #
86 # today_fmt = '%B %d, %Y'
87
88 # List of patterns, relative to source directory, that match files and
89 # directories to ignore when looking for source files.
90 # This patterns also effect to html_static_path and html_extra_path
91 exclude_patterns = []
92
93 # The reST default role (used for this markup: `text`) to use for all
94 # documents.
95 #
96 # default_role = None
97
98 # If true, '()' will be appended to :func: etc. cross-reference text.
99 #
100 # add_function_parentheses = True
101
102 # If true, the current module name will be prepended to all description
103 # unit titles (such as .. function::).
104 #
105 # add_module_names = True
106
107 # If true, sectionauthor and moduleauthor directives will be shown in the
108 # output. They are ignored by default.
109 #
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 # If true, `todo` and `todoList` produce output, else they produce nothing.
122 todo_include_todos = True
123
124
125 # -- Options for HTML output ----------------------------------------------
126
127 # The theme to use for HTML and HTML Help pages.  See the documentation for
128 # a list of builtin themes.
129 #
130 html_theme = 'classic'
131 #html_theme = "sphinx_rtd_theme"
132 #html_theme = 'bootstrap'
133
134 # Theme options are theme-specific and customize the look and feel of a theme
135 # further.  For a list of options available for each theme, see the
136 # documentation.
137 #
138 # html_theme_options = {}
139
140 # Add any paths that contain custom themes here, relative to this directory.
141 # html_theme_path = []
142 #html_theme_path = ['/usr/lib/python3/dist-packages/sphinx_bootstrap_theme']
143
144 # The name for this set of Sphinx documents.
145 # "<project> v<release> documentation" by default.
146 #
147 # html_title = u'Python MPD Module v0.0.1'
148
149 # A shorter title for the navigation bar.  Default is the same as html_title.
150 #
151 # html_short_title = None
152
153 # The name of an image file (relative to this directory) to place at the top
154 # of the sidebar.
155 #
156 # html_logo = None
157
158 # The name of an image file (relative to this directory) to use as a favicon of
159 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
160 # pixels large.
161 #
162 # html_favicon = None
163
164 # Add any paths that contain custom static files (such as style sheets) here,
165 # relative to this directory. They are copied after the builtin static files,
166 # so a file named "default.css" will overwrite the builtin "default.css".
167 #chtml_static_path = ['_static']
168
169 # Add any extra paths that contain custom files (such as robots.txt or
170 # .htaccess) here, relative to this directory. These files are copied
171 # directly to the root of the documentation.
172 #
173 # html_extra_path = []
174
175 # If not None, a 'Last updated on:' timestamp is inserted at every page
176 # bottom, using the given strftime format.
177 # The empty string is equivalent to '%b %d, %Y'.
178 #
179 # html_last_updated_fmt = None
180
181 # If true, SmartyPants will be used to convert quotes and dashes to
182 # typographically correct entities.
183 #
184 # html_use_smartypants = True
185
186 # Custom sidebar templates, maps document names to template names.
187 #
188 # html_sidebars = {}
189
190 # Additional templates that should be rendered to pages, maps page names to
191 # template names.
192 #
193 # html_additional_pages = {}
194
195 # If false, no module index is generated.
196 #
197 # html_domain_indices = True
198
199 # If false, no index is generated.
200 #
201 # html_use_index = True
202
203 # If true, the index is split into individual pages for each letter.
204 #
205 # html_split_index = False
206
207 # If true, links to the reST sources are added to the pages.
208 #
209 # html_show_sourcelink = True
210
211 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
212 #
213 # html_show_sphinx = True
214 html_show_sphinx = False
215
216 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
217 #
218 # html_show_copyright = True
219
220 # If true, an OpenSearch description file will be output, and all pages will
221 # contain a <link> tag referring to it.  The value of this option must be the
222 # base URL from which the finished HTML is served.
223 #
224 # html_use_opensearch = ''
225
226 # This is the file name suffix for HTML files (e.g. ".xhtml").
227 # html_file_suffix = None
228
229 # Language to be used for generating the HTML full-text search index.
230 # Sphinx supports the following languages:
231 #   'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
232 #   'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
233 #
234 # html_search_language = 'en'
235
236 # A dictionary with options for the search language support, empty by default.
237 # 'ja' uses this config value.
238 # 'zh' user can custom change `jieba` dictionary path.
239 #
240 # html_search_options = {'type': 'default'}
241
242 # The name of a javascript file (relative to the configuration directory) that
243 # implements a search results scorer. If empty, the default will be used.
244 #
245 # html_search_scorer = 'scorer.js'
246
247 # Output file base name for HTML help builder.
248 htmlhelp_basename = 'PythonMPDModuledoc'
249
250 # -- Options for LaTeX output ---------------------------------------------
251
252 latex_elements = {
253      # The paper size ('letterpaper' or 'a4paper').
254      #
255      # 'papersize': 'letterpaper',
256
257      # The font size ('10pt', '11pt' or '12pt').
258      #
259      # 'pointsize': '10pt',
260
261      # Additional stuff for the LaTeX preamble.
262      #
263      # 'preamble': '',
264
265      # Latex figure (float) alignment
266      #
267      # 'figure_align': 'htbp',
268 }
269
270 # Grouping the document tree into LaTeX files. List of tuples
271 # (source start file, target name, title,
272 #  author, documentclass [howto, manual, or own class]).
273 latex_documents = [
274     (master_doc, 'PythonMPDModule.tex', u'Python MPD Module Documentation',
275      u'kaliko', 'manual'),
276 ]
277
278 # The name of an image file (relative to this directory) to place at the top of
279 # the title page.
280 #
281 # latex_logo = None
282
283 # For "manual" documents, if this is true, then toplevel headings are parts,
284 # not chapters.
285 #
286 # latex_use_parts = False
287
288 # If true, show page references after internal links.
289 #
290 # latex_show_pagerefs = False
291
292 # If true, show URL addresses after external links.
293 #
294 # latex_show_urls = False
295
296 # Documents to append as an appendix to all manuals.
297 #
298 # latex_appendices = []
299
300 # It false, will not define \strong, \code,     itleref, \crossref ... but only
301 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
302 # packages.
303 #
304 # latex_keep_old_macro_names = True
305
306 # If false, no module index is generated.
307 #
308 # latex_domain_indices = True
309
310
311 # -- Options for manual page output ---------------------------------------
312
313 # One entry per manual page. List of tuples
314 # (source start file, name, description, authors, manual section).
315 man_pages = [
316     (master_doc, 'pythonmpdmodule', u'Python MPD Module Documentation',
317      [author], 1)
318 ]
319
320 # If true, show URL addresses after external links.
321 #
322 # man_show_urls = False
323
324
325 # -- Options for Texinfo output -------------------------------------------
326
327 # Grouping the document tree into Texinfo files. List of tuples
328 # (source start file, target name, title, author,
329 #  dir menu entry, description, category)
330 texinfo_documents = [
331     (master_doc, 'PythonMPDModule', u'Python MPD Module Documentation',
332      author, 'PythonMPDModule', 'One line description of project.',
333      'Miscellaneous'),
334 ]
335
336 # Documents to append as an appendix to all manuals.
337 #
338 # texinfo_appendices = []
339
340 # If false, no module index is generated.
341 #
342 # texinfo_domain_indices = True
343
344 # How to display URL addresses: 'footnote', 'no', or 'inline'.
345 #
346 # texinfo_show_urls = 'footnote'
347
348 # If true, do not generate a @detailmenu in the "Top" node's menu.
349 #
350 # texinfo_no_detailmenu = False
351
352
353 # -- Options for Epub output ----------------------------------------------
354
355 # Bibliographic Dublin Core info.
356 epub_title = project
357 epub_author = author
358 epub_publisher = author
359 epub_copyright = copyright
360
361 # The basename for the epub file. It defaults to the project name.
362 # epub_basename = project
363
364 # The HTML theme for the epub output. Since the default themes are not
365 # optimized for small screen space, using the same theme for HTML and epub
366 # output is usually not wise. This defaults to 'epub', a theme designed to save
367 # visual space.
368 #
369 # epub_theme = 'epub'
370
371 # The language of the text. It defaults to the language option
372 # or 'en' if the language is not set.
373 #
374 # epub_language = ''
375
376 # The scheme of the identifier. Typical schemes are ISBN or URL.
377 # epub_scheme = ''
378
379 # The unique identifier of the text. This can be a ISBN number
380 # or the project homepage.
381 #
382 # epub_identifier = ''
383
384 # A unique identification for the text.
385 #
386 # epub_uid = ''
387
388 # A tuple containing the cover image and cover page html template filenames.
389 #
390 # epub_cover = ()
391
392 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
393 #
394 # epub_guide = ()
395
396 # HTML files that should be inserted before the pages created by sphinx.
397 # The format is a list of tuples containing the path and title.
398 #
399 # epub_pre_files = []
400
401 # HTML files that should be inserted after the pages created by sphinx.
402 # The format is a list of tuples containing the path and title.
403 #
404 # epub_post_files = []
405
406 # A list of files that should not be packed into the epub file.
407 epub_exclude_files = ['search.html']
408
409 # The depth of the table of contents in toc.ncx.
410 #
411 # epub_tocdepth = 3
412
413 # Allow duplicate toc entries.
414 #
415 # epub_tocdup = True
416
417 # Choose between 'default' and 'includehidden'.
418 #
419 # epub_tocscope = 'default'
420
421 # Fix unsupported image types using the Pillow.
422 #
423 # epub_fix_images = False
424
425 # Scale large images.
426 #
427 # epub_max_image_width = 0
428
429 # How to display URL addresses: 'footnote', 'no', or 'inline'.
430 #
431 # epub_show_urls = 'inline'
432
433 # If false, no index is generated.
434 #
435 # epub_use_index = True
436
437
438 # Example configuration for intersphinx: refer to the Python standard library.
439 intersphinx_mapping = {'https://docs.python.org/': None}
440
441 # autodoc config
442 autodoc_member_order = 'bysource'