-
Notifications
You must be signed in to change notification settings - Fork 56
/
common_conf.py
35 lines (30 loc) · 931 Bytes
/
common_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
# Common values for the Sphinx configuration for all languages.
# Get the version from build.gradle.kts
import re
regexp = re.compile(r'version\s*=\s*(.*)')
with open('../../../../gradle.properties') as f:
for line in f:
if regexp.match(line):
version = regexp.match(line).group(1)
break
release = version
project = u'EduMIPS64'
# rst2pdf config
extensions = ['sphinx.ext.autodoc','rst2pdf.pdfbuilder']
pdf_documents = [
('index', project, project, u'Andrea Spadaccini and the EduMIPS64 development team'),
]
# Other variables
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = 'epub'
html_static_path = ['_static']
htmlhelp_basename = 'EduMIPS64doc'
latex_preamble = u'''
\DeclareUnicodeCharacter{22C3}{$\cup$}
\DeclareUnicodeCharacter{2208}{$\in$}
\DeclareUnicodeCharacter{221E}{$\infty$}
'''