-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconf.py
75 lines (60 loc) · 1.87 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
import codecs
import os
import sys
from datetime import datetime
HERE = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(HERE)
TT_MODULE_DIR = os.path.join(BASE_DIR, 'tt')
TT_VERSION_FILE = os.path.join(TT_MODULE_DIR, 'version.py')
sys.path.insert(0, BASE_DIR)
with codecs.open(TT_VERSION_FILE, encoding='utf-8') as f:
exec(f.read()) # loads __version__ and __version_info__
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode']
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
autodoc_default_flags = ['members',
'special-members',
'show-inheritance']
suppress_warnings = ['image.nonlocal_uri']
html_theme = 'alabaster'
html_sidebars = {
'**': [
'about.html',
'navigation.html',
'relations.html',
'searchbox.html'
]
}
html_theme_options = {
'logo': 'logo.png',
'logo_text_align': 'centered',
'description': 'logical tools for logic',
'github_user': 'welchbj',
'github_repo': 'tt',
'github_type': 'star',
'extra_nav_links': {},
'sidebar_includehidden': True,
'fixed_sidebar': False,
'warn_bg': '#f9e3ed',
'warn_border': '#ffa5ce',
'note_bg': '#e8f0fc',
'note_border': '#c4daff',
'pre_bg': '#f9f4fc',
'font_family': "'PT Sans Caption', sans-serif",
'font_size': '1.0em',
'code_font_size': '0.8em',
'head_font_family': "'Amaranth', sans-serif"
}
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
templates_path = ['_templates']
html_static_path = ['_static']
project = 'tt'
year = datetime.now().year
author = 'Brian Welch'
copyright = '{}, {}'.format(year, author)
version = '.'.join(str(i) for i in __version_info__[:2]) # noqa
release = __version__ # noqa
master_doc = 'index'
source_suffix = '.rst'
pygments_style = 'sphinx'