Issues (1006)

docs/conf.py (5 issues)

1
# -*- coding: utf-8 -*-
2
#
3
# Topik documentation build configuration file, created by
4
# sphinx-quickstart on Mon Feb  9 16:24:14 2015.
5
#
6
# This file is execfile()d with the current directory set to its
7
# containing dir.
8
#
9
# Note that not all possible configuration values are present in this
10
# autogenerated file.
11
#
12
# All configuration values have a default; values that are commented out
13
# serve to show the default.
14
15
try:
16
    from unittest.mock import MagicMock  # Python 3.3+
17
except ImportError:
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable ImportError does not seem to be defined.
Loading history...
18
    from mock import Mock as MagicMock
19
20
class Mock(MagicMock):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable MagicMock does not seem to be defined.
Loading history...
21
    @classmethod
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable classmethod does not seem to be defined.
Loading history...
22
    def __getattr__(cls, name):
23
            return Mock()
24
25
MOCK_MODULES = ['numpy', 'pandas', 'scipy', 'gensim', 'blaze', 'textblob', 'nltk',
26
                'odo', 'bokeh', 'bokeh.models', 'elasticsearch', 'jsonpickle']
27
import sys
28
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable mod_name does not seem to be defined.
Loading history...
29
30
31
# If extensions (or modules to document with autodoc) are in another directory,
32
# add these directories to sys.path here. If the directory is relative to the
33
# documentation root, use os.path.abspath to make it absolute, like shown here.
34
#sys.path.insert(0, os.path.abspath('.'))
35
36
# -- General configuration ------------------------------------------------
37
38
# If your documentation needs a minimal Sphinx version, state it here.
39
#needs_sphinx = '1.0'
40
41
# Add any Sphinx extension module names here, as strings. They can be
42
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
43
# ones.
44
extensions = [
45
    'sphinx.ext.autodoc',
46
    'sphinx.ext.autosummary',
47
    'sphinx.ext.doctest',
48
    'sphinx.ext.coverage',
49
    'sphinx.ext.viewcode',
50
    'numpydoc'
51
]
52
53
numpydoc_show_class_members = False
54
55
# Add any paths that contain templates here, relative to this directory.
56
57
# on_rtd is whether we are on readthedocs.org
58
import os
59
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
60
61
if not on_rtd:  # only import and set the theme if we're building docs locally
62
    import sphinx_rtd_theme
63
    html_theme = 'sphinx_rtd_theme'
64
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
65
66
67
# The suffix of source filenames.
68
source_suffix = '.rst'
69
70
# The encoding of source files.
71
#source_encoding = 'utf-8-sig'
72
73
# The master toctree document.
74
master_doc = 'index'
75
76
# General information about the project.
77
project = 'Topik'
78
copyright = '2015, Continuum Analytics'
79
80
# The version info for the project you're documenting, acts as replacement for
81
# |version| and |release|, also used in various other places throughout the
82
# built documents.
83
#
84
85
# Topik is run from its source checkout
86
sys.path.insert(0, os.path.abspath('..'))
87
import topik
88
89
# The full version, including alpha/beta/rc tags.
90
release = topik.__version__
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable topik does not seem to be defined.
Loading history...
91
# the short version
92
version = '.'.join(topik.__version__.split('.')[:2])
93
94
95
# The language for content autogenerated by Sphinx. Refer to documentation
96
# for a list of supported languages.
97
#language = None
98
99
# There are two options for replacing |today|: either, you set today to some
100
# non-false value, then it is used:
101
#today = ''
102
# Else, today_fmt is used as the format for a strftime call.
103
#today_fmt = '%B %d, %Y'
104
105
# List of patterns, relative to source directory, that match files and
106
# directories to ignore when looking for source files.
107
exclude_patterns = ['_build']
108
109
# The reST default role (used for this markup: `text`) to use for all
110
# documents.
111
#default_role = None
112
113
# If true, '()' will be appended to :func: etc. cross-reference text.
114
#add_function_parentheses = True
115
116
# If true, the current module name will be prepended to all description
117
# unit titles (such as .. function::).
118
#add_module_names = True
119
120
# If true, sectionauthor and moduleauthor directives will be shown in the
121
# output. They are ignored by default.
122
#show_authors = False
123
124
# The name of the Pygments (syntax highlighting) style to use.
125
pygments_style = 'sphinx'
126
127
# A list of ignored prefixes for module index sorting.
128
#modindex_common_prefix = []
129
130
# If true, keep warnings as "system message" paragraphs in the built documents.
131
#keep_warnings = False
132
133
134
# -- Options for HTML output ----------------------------------------------
135
136
# The theme to use for HTML and HTML Help pages.  See the documentation for
137
# a list of builtin themes.
138
#html_theme = 'default'
139
140
# Theme options are theme-specific and customize the look and feel of a theme
141
# further.  For a list of options available for each theme, see the
142
# documentation.
143
#html_theme_options = {}
144
145
# Add any paths that contain custom themes here, relative to this directory.
146
#html_theme_path = []
147
148
# The name for this set of Sphinx documents.  If None, it defaults to
149
# "<project> v<release> documentation".
150
#html_title = None
151
152
# A shorter title for the navigation bar.  Default is the same as html_title.
153
#html_short_title = None
154
155
# The name of an image file (relative to this directory) to place at the top
156
# of the sidebar.
157
#html_logo = None
158
159
# The name of an image file (within the static path) to use as favicon of the
160
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
161
# pixels large.
162
#html_favicon = None
163
164
# Add any paths that contain custom static files (such as style sheets) here,
165
# relative to this directory. They are copied after the builtin static files,
166
# so a file named "default.css" will overwrite the builtin "default.css".
167
html_static_path = ['_static']
168
169
# Add any extra paths that contain custom files (such as robots.txt or
170
# .htaccess) here, relative to this directory. These files are copied
171
# directly to the root of the documentation.
172
#html_extra_path = []
173
174
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
175
# using the given strftime format.
176
#html_last_updated_fmt = '%b %d, %Y'
177
178
# If true, SmartyPants will be used to convert quotes and dashes to
179
# typographically correct entities.
180
#html_use_smartypants = True
181
182
# Custom sidebar templates, maps document names to template names.
183
#html_sidebars = {}
184
185
# Additional templates that should be rendered to pages, maps page names to
186
# template names.
187
#html_additional_pages = {}
188
189
# If false, no module index is generated.
190
#html_domain_indices = True
191
192
# If false, no index is generated.
193
#html_use_index = True
194
195
# If true, the index is split into individual pages for each letter.
196
#html_split_index = False
197
198
# If true, links to the reST sources are added to the pages.
199
#html_show_sourcelink = True
200
201
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
202
#html_show_sphinx = True
203
204
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
205
#html_show_copyright = True
206
207
# If true, an OpenSearch description file will be output, and all pages will
208
# contain a <link> tag referring to it.  The value of this option must be the
209
# base URL from which the finished HTML is served.
210
#html_use_opensearch = ''
211
212
# This is the file name suffix for HTML files (e.g. ".xhtml").
213
#html_file_suffix = None
214
215
# Output file base name for HTML help builder.
216
htmlhelp_basename = 'Topikdoc'
217
218
219
# -- Options for LaTeX output ---------------------------------------------
220
221
latex_elements = {
222
# The paper size ('letterpaper' or 'a4paper').
223
#'papersize': 'letterpaper',
224
225
# The font size ('10pt', '11pt' or '12pt').
226
#'pointsize': '10pt',
227
228
# Additional stuff for the LaTeX preamble.
229
#'preamble': '',
230
}
231
232
# Grouping the document tree into LaTeX files. List of tuples
233
# (source start file, target name, title,
234
#  author, documentclass [howto, manual, or own class]).
235
latex_documents = [
236
  ('index', 'Topik.tex', 'Topik Documentation',
237
   'Topik development team', 'manual'),
238
]
239
240
# The name of an image file (relative to this directory) to place at the top of
241
# the title page.
242
#latex_logo = None
243
244
# For "manual" documents, if this is true, then toplevel headings are parts,
245
# not chapters.
246
#latex_use_parts = False
247
248
# If true, show page references after internal links.
249
#latex_show_pagerefs = False
250
251
# If true, show URL addresses after external links.
252
#latex_show_urls = False
253
254
# Documents to append as an appendix to all manuals.
255
#latex_appendices = []
256
257
# If false, no module index is generated.
258
#latex_domain_indices = True
259
260
261
# -- Options for manual page output ---------------------------------------
262
263
# One entry per manual page. List of tuples
264
# (source start file, name, description, authors, manual section).
265
man_pages = [
266
    ('index', 'topik', 'Topik Documentation',
267
     ['Topik development team'], 1)
268
]
269
270
# If true, show URL addresses after external links.
271
#man_show_urls = False
272
273
274
# -- Options for Texinfo output -------------------------------------------
275
276
# Grouping the document tree into Texinfo files. List of tuples
277
# (source start file, target name, title, author,
278
#  dir menu entry, description, category)
279
texinfo_documents = [
280
  ('index', 'Topik', 'Topik Documentation',
281
   'Topik development team', 'Topik', 'One line description of project.',
282
   'Miscellaneous'),
283
]
284
285
# Documents to append as an appendix to all manuals.
286
#texinfo_appendices = []
287
288
# If false, no module index is generated.
289
#texinfo_domain_indices = True
290
291
# How to display URL addresses: 'footnote', 'no', or 'inline'.
292
#texinfo_show_urls = 'footnote'
293
294
# If true, do not generate a @detailmenu in the "Top" node's menu.
295
#texinfo_no_detailmenu = False
296
297