-
Notifications
You must be signed in to change notification settings - Fork 6
/
conf.py
33 lines (27 loc) · 848 Bytes
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
def setup(app):
app.add_object_type(
'confval', 'confval',
objname='configuration value',
indextemplate='pair: %s; configuration value'
)
def get_version(filename):
import re
with open(filename) as fh:
metadata = dict(re.findall(r"__([a-z]+)__ = '([^']+)'", fh.read()))
return metadata['version']
project = 'Mopidy-InternetArchive'
copyright = '2014, 2015 Thomas Kemmer'
version = get_version(b'../mopidy_internetarchive/__init__.py')
release = version
exclude_patterns = ['_build']
master_doc = 'index'
html_theme = 'default'
latex_documents = [(
'index', 'Mopidy-InternetArchive.tex',
'Mopidy-InternetArchive Documentation',
'Thomas Kemmer', 'manual'
)]
man_pages = [(
'index', 'mopidy-internetarchive', 'Mopidy-InternetArchive Documentation',
['Thomas Kemmer'], 1
)]