Skip to content

Commit 52614ce

Browse files
committed
python
1 parent 94f2ade commit 52614ce

File tree

2 files changed

+87
-16
lines changed

2 files changed

+87
-16
lines changed

.gitattributes

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11

2-
# Source files
3-
# ============
4-
*.pxd text
5-
*.py text
6-
*.py3 text
7-
*.pyw text
8-
*.pyx text
9-
10-
# Binary files
11-
# ============
12-
*.db binary
13-
*.p binary
14-
*.pkl binary
15-
*.pyc binary
16-
*.pyd binary
17-
*.pyo binary
2+
docs/* linguist-documentation
3+
_img/* linguist-vendored
184

conf.py

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import os
2+
import sys
3+
4+
import sphinx_rtd_theme
5+
sys.path.insert(0, os.path.abspath('_ext'))
6+
# from recommonmark.parser import CommonMarkParser
7+
8+
sys.path.insert(0, os.path.abspath('..'))
9+
sys.path.append(os.path.dirname(__file__))
10+
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.dev")
11+
12+
# from django.conf import settings
13+
14+
# import django
15+
# django.setup()
16+
17+
18+
sys.path.append(os.path.abspath('_ext'))
19+
extensions = [
20+
'sphinx.ext.autodoc',
21+
'sphinx.ext.intersphinx',
22+
]
23+
templates_path = ['_templates']
24+
25+
edit_on_github_project = 'astorfi/TensorFlow-World-Resources'
26+
edit_on_github_branch = 'master'
27+
28+
source_suffix = ['.rst', '.md']
29+
# source_parsers = {
30+
# '.md': CommonMarkParser,
31+
# }
32+
33+
master_doc = 'index'
34+
project = u'TensoFlow-World-Resources'
35+
copyright = u'2017, Amirsina Torfi'
36+
author = u'Amirsina Torfi'
37+
version = '1.0'
38+
release = '1.0'
39+
exclude_patterns = ['_build']
40+
default_role = 'obj'
41+
pygments_style = 'sphinx'
42+
# intersphinx_mapping = {
43+
# 'TensorFlow-World': ('https://github.com/astorfi/TensorFlow-World', None),
44+
# }
45+
htmlhelp_basename = 'ReadTheDocsdoc'
46+
latex_documents = [
47+
(master_doc, 'TensoFlow-World-Resources.tex', u'TensoFlow-World-Resources Documentation',
48+
u'Amirsina Torfi', 'manual'),
49+
]
50+
man_pages = [
51+
(master_doc, 'tensoflow-world-resources', u'TensoFlow-World-Resources Documentation',
52+
[author], 1)
53+
]
54+
exclude_patterns = [
55+
# 'api' # needed for ``make gettext`` to not die.
56+
]
57+
58+
language = 'en'
59+
60+
locale_dirs = [
61+
'locale/',
62+
]
63+
gettext_compact = False
64+
65+
html_theme = 'sphinx_rtd_theme'
66+
html_static_path = ['_static']
67+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
68+
html_logo = '_img/tflogo.gif'
69+
html_theme_options = {
70+
'logo_only': True,
71+
'display_version': False,
72+
}
73+
74+
github_url='https://github.com/astorfi/TensorFlow-World-Resources'
75+
76+
html_context = {
77+
"display_github": True, # Add 'Edit on Github' link instead of 'View page source'
78+
"last_updated": True,
79+
"commit": False,
80+
'github_url': 'https://github.com/astorfi/TensorFlow-World-Resources'
81+
}
82+
83+
84+
#def setup(app):
85+
# app.add_stylesheet('custom.css')

0 commit comments

Comments
 (0)