-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconf.py
79 lines (62 loc) · 1.76 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, os.path.abspath('../'))
class Mock(object):
def __init__(self, *args, **kwargs):
pass
def __call__(self, *args, **kwargs):
return Mock()
@classmethod
def __getattr__(cls, name):
print "Getting mock: ", name
if name in ('__file__', '__path__'):
return '/dev/null'
elif name == 'eval':
def mock_eval(lua_code):
lua_code = lua_code.strip()
if lua_code.startswith('type'):
return False
elif lua_code.startswith('function'):
return lambda *kargs, **kwargs: True
return mock_eval
else:
return Mock()
MOCK_MODULES = ['lupa']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
]
autoclass_content = 'init'
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'chdkptp.py'
copyright = u'2014, Johannes Baiter'
version = '0.1'
release = '0.1'
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = 'default'
html_static_path = ['_static']
htmlhelp_basename = 'chdkptppydoc'
latex_elements = {
'preamble': '',
}
latex_documents = [
('index', 'chdkptppy.tex', u'chdkptp.py Documentation',
u'Johannes Baiter', 'manual'),
]
man_pages = [
('index', 'chdkptppy', u'chdkptp.py Documentation',
[u'Johannes Baiter'], 1)
]
texinfo_documents = [
('index', 'chdkptppy', u'chdkptp.py Documentation',
u'Johannes Baiter', 'chdkptppy', 'One line description of project.',
'Miscellaneous'),
]
intersphinx_mapping = {'http://docs.python.org/': None}