forked from William93/TensorFlow-World-Resources
-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.py
85 lines (69 loc) · 2.04 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
80
81
82
83
84
85
import os
import sys
import sphinx_rtd_theme
sys.path.insert(0, os.path.abspath('_ext'))
# from recommonmark.parser import CommonMarkParser
sys.path.insert(0, os.path.abspath('..'))
sys.path.append(os.path.dirname(__file__))
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.dev")
# from django.conf import settings
# import django
# django.setup()
sys.path.append(os.path.abspath('_ext'))
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
]
templates_path = ['_templates']
edit_on_github_project = 'astorfi/TensorFlow-World-Resources'
edit_on_github_branch = 'master'
source_suffix = ['.rst', '.md']
# source_parsers = {
# '.md': CommonMarkParser,
# }
master_doc = 'index'
project = u'TensoFlow-World-Resources'
copyright = u'2017, Amirsina Torfi'
author = u'Amirsina Torfi'
version = '1.0'
release = '1.0'
exclude_patterns = ['_build']
default_role = 'obj'
pygments_style = 'sphinx'
# intersphinx_mapping = {
# 'TensorFlow-World': ('https://github.com/astorfi/TensorFlow-World', None),
# }
htmlhelp_basename = 'ReadTheDocsdoc'
latex_documents = [
(master_doc, 'TensoFlow-World-Resources.tex', u'TensoFlow-World-Resources Documentation',
u'Amirsina Torfi', 'manual'),
]
man_pages = [
(master_doc, 'tensoflow-world-resources', u'TensoFlow-World-Resources Documentation',
[author], 1)
]
exclude_patterns = [
# 'api' # needed for ``make gettext`` to not die.
]
language = 'en'
locale_dirs = [
'locale/',
]
gettext_compact = False
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_logo = '_img/tflogo.gif'
html_theme_options = {
'logo_only': True,
'display_version': False,
}
github_url='https://github.com/astorfi/TensorFlow-World-Resources'
html_context = {
"display_github": True, # Add 'Edit on Github' link instead of 'View page source'
"last_updated": True,
"commit": False,
'github_url': 'https://github.com/astorfi/TensorFlow-World-Resources'
}
#def setup(app):
# app.add_stylesheet('custom.css')