1
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
# |
3
|
|
|
# Configuration file for the Sphinx documentation builder. |
4
|
|
|
# |
5
|
|
|
# This file does only contain a selection of the most common options. For a |
6
|
|
|
# full list see the documentation: |
7
|
|
|
# http://www.sphinx-doc.org/en/master/config |
8
|
|
|
|
9
|
|
|
# -- Path setup -------------------------------------------------------------- |
10
|
|
|
|
11
|
|
|
# If extensions (or modules to document with autodoc) are in another directory, |
12
|
|
|
# add these directories to sys.path here. If the directory is relative to the |
13
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here. |
14
|
|
|
# |
15
|
|
|
import os |
16
|
|
|
import sys |
17
|
|
|
sys.path.insert(0, os.path.abspath('..')) |
18
|
|
|
|
19
|
|
|
|
20
|
|
|
import responsibly |
21
|
|
|
|
22
|
|
|
# -- Project information ----------------------------------------------------- |
23
|
|
|
|
24
|
|
|
project = 'Responsibly' |
25
|
|
|
copyright = '2018, Shlomi Hod' |
26
|
|
|
author = 'Shlomi Hod' |
27
|
|
|
|
28
|
|
|
# The short X.Y version |
29
|
|
|
version = responsibly.__version__ |
30
|
|
|
# The full version, including alpha/beta/rc tags |
31
|
|
|
release = responsibly.__version__ |
32
|
|
|
|
33
|
|
|
|
34
|
|
|
# -- General configuration --------------------------------------------------- |
35
|
|
|
|
36
|
|
|
# If your documentation needs a minimal Sphinx version, state it here. |
37
|
|
|
# |
38
|
|
|
# needs_sphinx = '1.0' |
39
|
|
|
|
40
|
|
|
# Add any Sphinx extension module names here, as strings. They can be |
41
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
42
|
|
|
# ones. |
43
|
|
|
extensions = [ |
44
|
|
|
'sphinx.ext.autodoc', |
45
|
|
|
'sphinx.ext.autosummary', |
46
|
|
|
'sphinx.ext.doctest', |
47
|
|
|
'sphinx.ext.intersphinx', |
48
|
|
|
'sphinx.ext.todo', |
49
|
|
|
'sphinx.ext.coverage', |
50
|
|
|
'sphinx.ext.mathjax', |
51
|
|
|
'sphinx.ext.viewcode', |
52
|
|
|
'sphinx.ext.githubpages', |
53
|
|
|
] |
54
|
|
|
|
55
|
|
|
|
56
|
|
|
# Theme options are theme-specific and customize the look and feel of a theme |
57
|
|
|
# further. For a list of options available for each theme, see the |
58
|
|
|
# documentation. |
59
|
|
|
## alabater theme opitons |
60
|
|
|
html_theme_options = { |
61
|
|
|
'github_button': True, |
62
|
|
|
'github_type': 'star&v=2', ## Use v2 button |
63
|
|
|
'github_user': 'ResponsiblyAI', |
64
|
|
|
'github_repo': 'responsibly', |
65
|
|
|
'github_banner': True, |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
## Include Python objects as they appear in source files |
69
|
|
|
## Default: alphabetically ('alphabetical') |
70
|
|
|
autodoc_member_order = 'bysource' |
71
|
|
|
## Default flags used by autodoc directives |
72
|
|
|
autodoc_default_flags = ['members', 'show-inheritance'] |
73
|
|
|
## Generate autodoc stubs with summaries from code |
74
|
|
|
autosummary_generate = True |
75
|
|
|
|
76
|
|
|
|
77
|
|
|
# Add any paths that contain templates here, relative to this directory. |
78
|
|
|
templates_path = ['_templates'] |
79
|
|
|
|
80
|
|
|
# The suffix(es) of source filenames. |
81
|
|
|
# You can specify multiple suffix as a list of string: |
82
|
|
|
# |
83
|
|
|
# source_suffix = ['.rst', '.md'] |
84
|
|
|
source_suffix = '.rst' |
85
|
|
|
|
86
|
|
|
# The master toctree document. |
87
|
|
|
master_doc = 'index' |
88
|
|
|
|
89
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation |
90
|
|
|
# for a list of supported languages. |
91
|
|
|
# |
92
|
|
|
# This is also used if you do content translation via gettext catalogs. |
93
|
|
|
# Usually you set "language" from the command line for these cases. |
94
|
|
|
language = None |
95
|
|
|
|
96
|
|
|
# List of patterns, relative to source directory, that match files and |
97
|
|
|
# directories to ignore when looking for source files. |
98
|
|
|
# This pattern also affects html_static_path and html_extra_path . |
99
|
|
|
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
100
|
|
|
|
101
|
|
|
# The name of the Pygments (syntax highlighting) style to use. |
102
|
|
|
pygments_style = 'sphinx' |
103
|
|
|
|
104
|
|
|
|
105
|
|
|
# -- Options for HTML output ------------------------------------------------- |
106
|
|
|
|
107
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for |
108
|
|
|
# a list of builtin themes. |
109
|
|
|
# |
110
|
|
|
html_theme = 'alabaster' |
111
|
|
|
|
112
|
|
|
# Theme options are theme-specific and customize the look and feel of a theme |
113
|
|
|
# further. For a list of options available for each theme, see the |
114
|
|
|
# documentation. |
115
|
|
|
# |
116
|
|
|
# html_theme_options = {} |
117
|
|
|
|
118
|
|
|
# Add any paths that contain custom static files (such as style sheets) here, |
119
|
|
|
# relative to this directory. They are copied after the builtin static files, |
120
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css". |
121
|
|
|
html_static_path = ['_static'] |
122
|
|
|
|
123
|
|
|
# Custom sidebar templates, must be a dictionary that maps document names |
124
|
|
|
# to template names. |
125
|
|
|
# |
126
|
|
|
# The default sidebars (for documents that don't match any pattern) are |
127
|
|
|
# defined by theme itself. Builtin themes are using these templates by |
128
|
|
|
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', |
129
|
|
|
# 'searchbox.html']``. |
130
|
|
|
# |
131
|
|
|
# html_sidebars = {} |
132
|
|
|
|
133
|
|
|
|
134
|
|
|
# -- Options for HTMLHelp output --------------------------------------------- |
135
|
|
|
|
136
|
|
|
# Output file base name for HTML help builder. |
137
|
|
|
htmlhelp_basename = 'Responsiblydoc' |
138
|
|
|
|
139
|
|
|
|
140
|
|
|
# -- Options for LaTeX output ------------------------------------------------ |
141
|
|
|
|
142
|
|
|
latex_elements = { |
143
|
|
|
# The paper size ('letterpaper' or 'a4paper'). |
144
|
|
|
# |
145
|
|
|
# 'papersize': 'letterpaper', |
146
|
|
|
|
147
|
|
|
# The font size ('10pt', '11pt' or '12pt'). |
148
|
|
|
# |
149
|
|
|
# 'pointsize': '10pt', |
150
|
|
|
|
151
|
|
|
# Additional stuff for the LaTeX preamble. |
152
|
|
|
# |
153
|
|
|
# 'preamble': '', |
154
|
|
|
|
155
|
|
|
# Latex figure (float) alignment |
156
|
|
|
# |
157
|
|
|
# 'figure_align': 'htbp', |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
# Grouping the document tree into LaTeX files. List of tuples |
161
|
|
|
# (source start file, target name, title, |
162
|
|
|
# author, documentclass [howto, manual, or own class]). |
163
|
|
|
latex_documents = [ |
164
|
|
|
(master_doc, 'Responsibly.tex', 'Responsibly Documentation', |
165
|
|
|
'Shlomi Hod', 'manual'), |
166
|
|
|
] |
167
|
|
|
|
168
|
|
|
|
169
|
|
|
# -- Options for manual page output ------------------------------------------ |
170
|
|
|
|
171
|
|
|
# One entry per manual page. List of tuples |
172
|
|
|
# (source start file, name, description, authors, manual section). |
173
|
|
|
man_pages = [ |
174
|
|
|
(master_doc, 'responsibly', 'Responsibly Documentation', |
175
|
|
|
[author], 1) |
176
|
|
|
] |
177
|
|
|
|
178
|
|
|
|
179
|
|
|
# -- Options for Texinfo output ---------------------------------------------- |
180
|
|
|
|
181
|
|
|
# Grouping the document tree into Texinfo files. List of tuples |
182
|
|
|
# (source start file, target name, title, author, |
183
|
|
|
# dir menu entry, description, category) |
184
|
|
|
texinfo_documents = [ |
185
|
|
|
(master_doc, 'Responsibly', 'Responsibly Documentation', |
186
|
|
|
author, 'Responsibly', 'One line description of project.', |
187
|
|
|
'Miscellaneous'), |
188
|
|
|
] |
189
|
|
|
|
190
|
|
|
|
191
|
|
|
# -- Options for Epub output ------------------------------------------------- |
192
|
|
|
|
193
|
|
|
# Bibliographic Dublin Core info. |
194
|
|
|
epub_title = project |
195
|
|
|
epub_author = author |
196
|
|
|
epub_publisher = author |
197
|
|
|
epub_copyright = copyright |
198
|
|
|
|
199
|
|
|
# The unique identifier of the text. This can be a ISBN number |
200
|
|
|
# or the project homepage. |
201
|
|
|
# |
202
|
|
|
# epub_identifier = '' |
203
|
|
|
|
204
|
|
|
# A unique identification for the text. |
205
|
|
|
# |
206
|
|
|
# epub_uid = '' |
207
|
|
|
|
208
|
|
|
# A list of files that should not be packed into the epub file. |
209
|
|
|
epub_exclude_files = ['search.html'] |
210
|
|
|
|
211
|
|
|
|
212
|
|
|
# -- Extension configuration ------------------------------------------------- |
213
|
|
|
|
214
|
|
|
# -- Options for intersphinx extension --------------------------------------- |
215
|
|
|
|
216
|
|
|
# Example configuration for intersphinx: refer to the Python standard library. |
217
|
|
|
# Configuration for intersphinx |
218
|
|
|
intersphinx_mapping = { |
219
|
|
|
'python': ('https://docs.python.org/3/', None), |
220
|
|
|
'numpy': ('https://docs.scipy.org/doc/numpy', None), |
221
|
|
|
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None), |
222
|
|
|
'matplotlib': ('https://matplotlib.org/', None), |
223
|
|
|
'sklearn': ('https://scikit-learn.org/stable', None), |
224
|
|
|
'statsmodels': ('http://www.statsmodels.org/stable/', None), |
225
|
|
|
'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None), |
226
|
|
|
'seaborn': ('http://seaborn.pydata.org/', None), |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
# -- Options for todo extension ---------------------------------------------- |
230
|
|
|
|
231
|
|
|
# If true, `todo` and `todoList` produce output, else they produce nothing. |
232
|
|
|
todo_include_todos = True |
233
|
|
|
|