Total Complexity | 0 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
2 | from __future__ import unicode_literals |
||
3 | |||
4 | import os |
||
5 | import traceback |
||
6 | |||
7 | extensions = [ |
||
8 | 'sphinx.ext.autodoc', |
||
9 | 'sphinx.ext.autosummary', |
||
10 | 'sphinx.ext.coverage', |
||
11 | 'sphinx.ext.doctest', |
||
12 | 'sphinx.ext.extlinks', |
||
13 | 'sphinx.ext.ifconfig', |
||
14 | 'sphinx.ext.napoleon', |
||
15 | 'sphinx.ext.todo', |
||
16 | 'sphinx.ext.viewcode', |
||
17 | ] |
||
18 | source_suffix = '.rst' |
||
19 | master_doc = 'index' |
||
20 | project = 'Music Album Creator' |
||
21 | year = '2019' |
||
22 | author = 'Konstantinos Lampridis' |
||
23 | copyright = '{0}, {1}'.format(year, author) |
||
24 | try: |
||
25 | from pkg_resources import get_distribution |
||
26 | version = release = get_distribution('music_album_creation').version |
||
27 | except Exception: |
||
28 | traceback.print_exc() |
||
29 | version = release = '0.0.0' |
||
30 | |||
31 | pygments_style = 'trac' |
||
32 | templates_path = ['.'] |
||
33 | extlinks = { |
||
34 | 'issue': ('https://github.com/boromir674/music-album-creator/issues/%s', '#'), |
||
35 | 'pr': ('https://github.com/boromir674/music-album-creator/pull/%s', 'PR #'), |
||
36 | } |
||
37 | # on_rtd is whether we are on readthedocs.org |
||
38 | on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
||
39 | |||
40 | if not on_rtd: # only set the theme if we're building docs locally |
||
41 | html_theme = 'sphinx_rtd_theme' |
||
42 | |||
43 | html_use_smartypants = True |
||
44 | html_last_updated_fmt = '%b %d, %Y' |
||
45 | html_split_index = False |
||
46 | html_sidebars = { |
||
47 | '**': ['searchbox.html', 'globaltoc.html', 'sourcelink.html'], |
||
48 | } |
||
49 | html_short_title = '%s-%s' % (project, version) |
||
50 | |||
51 | napoleon_use_ivar = True |
||
52 | napoleon_use_rtype = False |
||
53 | napoleon_use_param = False |
||
54 |