1# -*- coding: utf-8 -*-
2
3import os
4import sys
5
6dir_ = os.path.dirname(os.path.realpath(__file__))
7sys.path.insert(0, dir_)
8sys.path.insert(0, os.path.abspath(os.path.join(dir_, "..")))
9
10needs_sphinx = "1.3"
11
12extensions = [
13    'sphinx.ext.autodoc',
14    'sphinx.ext.napoleon',
15    'sphinx.ext.intersphinx',
16    'sphinx.ext.extlinks',
17]
18intersphinx_mapping = {
19    'python': ('https://docs.python.org/2', None),
20    'python3': ('https://docs.python.org/3', None),
21}
22source_suffix = '.rst'
23master_doc = 'index'
24project = 'mutagen'
25copyright = u'2016, Joe Wreschnig, Michael Urman, Lukáš Lalinský, ' \
26            u'Christoph Reiter, Ben Ockmore & others'
27html_title = project
28exclude_patterns = ['_build']
29
30extlinks = {
31    'bug': ('https://github.com/quodlibet/mutagen/issues/%s', '#'),
32    'pr': ('https://github.com/quodlibet/mutagen/pull/%s', '#pr'),
33    'commit': ('https://github.com/quodlibet/mutagen/commit/%s', '#'),
34    'user': ('https://github.com/%s', ''),
35}
36
37
38autodoc_member_order = "bysource"
39default_role = "obj"
40
41html_theme = "sphinx_rtd_theme"
42html_favicon = "images/favicon.ico"
43html_theme_options = {
44    "display_version": False,
45}
46
47html_context = {
48    'extra_css_files': [
49        '_static/extra.css',
50    ],
51}
52
53html_static_path = [
54    "extra.css",
55]
56
57suppress_warnings = ["image.nonlocal_uri"]
58