Test Failed
Push — master ( 9d605d...dcb733 )
by
unknown
01:21 queued 18s
created

doc.source.oldconf   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 317
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 56
dl 0
loc 317
rs 10
c 0
b 0
f 0
wmc 0
1
# -*- coding: utf-8 -*-
2
#
3
# Savu documentation build configuration file, created by
4
# sphinx-quickstart on Tue Sep 16 10:25:51 2014.
5
#
6
# This file is execfile()d with the current directory set to its containing dir.
7
#
8
# Note that not all possible configuration values are present in this
9
# autogenerated file.
10
#
11
# All configuration values have a default; values that are commented out
12
# serve to show the default.
13
14
15
import sys, os
16
from os import path
17
18
autodoc_mock_imports = ['numpy', 'mpi4py', 'astra', 'scipy', 'h5py', 'pyfftw',
19
                        'dials.array_family', 'dials.algorithms.image.threshold']
20
21
# If extensions (or modules to document with autodoc) are in another directory,
22
# add these directories to sys.path here. If the directory is relative to the
23
# documentation root, use os.path.abspath to make it absolute, like shown here.
24
#sys.path.insert(0, os.path.abspath('.'))
25
#sys.path.insert(0, '../.')
26
#sys.path.insert(0, '../../.')
27
sys.path.insert(0, os.path.abspath('../../'))
28
sys.path.insert(0, os.path.abspath('../../savu'))
29
sys.path.insert(0, os.path.abspath('../../savu/core'))
30
sys.path.insert(0, os.path.abspath('../../savu/transports'))
31
sys.path.insert(0, os.path.abspath('../../savu/data'))
32
sys.path.insert(0, os.path.abspath('../../savu/data/transport_data'))
33
sys.path.insert(0, os.path.abspath('../../savu/data/data_structures'))
34
sys.path.insert(0, os.path.abspath('../../savu/plugins'))
35
sys.path.insert(0, os.path.abspath('../../savu/plugins/driver'))
36
sys.path.insert(0, os.path.abspath('../../savu/plugins/filters'))
37
sys.path.insert(0, os.path.abspath('../../savu/plugins/filters/azimuthal_integrators'))
38
sys.path.insert(0, os.path.abspath('../../savu/plugins/filters/component_analysis'))
39
sys.path.insert(0, os.path.abspath('../../savu/plugins/filters/fitters'))
40
sys.path.insert(0, os.path.abspath('../../savu/plugins/corrections'))
41
sys.path.insert(0, os.path.abspath('../../savu/plugins/reconstructions'))
42
sys.path.insert(0, os.path.abspath('../../savu/plugins/reconstructions/astra_recons'))
43
sys.path.insert(0, os.path.abspath('../../savu/plugins/loaders'))
44
sys.path.insert(0, os.path.abspath('../../savu/plugins/loaders/multi_modal_loaders'))
45
sys.path.insert(0, os.path.abspath('../../savu/plugins/savers'))
46
47
print(sys.path)
48
# -- General configuration -----------------------------------------------------
49
50
keep_warnings=True
51
52
#=================== Auto-generate APIs ==============================
53
#import subprocess
54
#
55
#python create_autosummary.py api autosummary.rst
56
##python create_autosummary.py api_plugin_dev dev_autosummary.rst
57
#DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
58
#echo $DIR
59
#export SPHINX_APIDOC_OPTIONS='members,private-members,undoc-members,show-inheritance'
60
#sphinx-apidoc -fMeTP $DIR/../ -o $DIR/source/api
61
#export SPHINX_APIDOC_OPTIONS='members,undoc-members,noindex'
62
#sphinx-apidoc -feT $DIR/../ -o $DIR/source/api_plugin_dev
63
#python create_dev_autosummary.py
64
#sphinx-build -a -E -j 2 -b html $DIR/source/ $DIR/build/
65
#
66
#
67
#def run_apidoc(_):
68
#    # get all module directories here
69
#    modules = ['a_list_of',
70
#               'python_module_directories',
71
#               'in_your_project']
72
#    for module in modules:
73
#        cur_dir = os.path.abspath(os.path.dirname(__file__))
74
#        output_path = os.path.join(cur_dir, module, 'doc')
75
#        cmd_path = 'sphinx-apidoc'
76
#        if hasattr(sys, 'real_prefix'):  # Check to see if we are in a virtualenv
77
#            # If we are, assemble the path manually
78
#            cmd_path = os.path.abspath(os.path.join(sys.prefix, 'bin', 'sphinx-apidoc'))
79
#        subprocess.check_call([cmd_path, '-e', '-o', output_path, module, '--force'])
80
#
81
#def setup(app):
82
#    app.connect('builder-inited', run_apidoc)
83
#=================== Auto-generate APIs ==============================
84
85
# If your documentation needs a minimal Sphinx version, state it here.
86
#needs_sphinx = '1.0'
87
88
# Add any Sphinx extension module names here, as strings. They can be extensions
89
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
90
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.ifconfig',
91
              'sphinx.ext.autosummary', 'sphinx.ext.viewcode']
92
93
# have a look at this extension 'sphinx.ext.doctest',
94
95
autosummary_generate = True
96
97
# Add any paths that contain templates here, relative to this directory.
98
templates_path = ['_templates']
99
100
# The suffix of source filenames.
101
source_suffix = '.rst'
102
103
# The encoding of source files.
104
#source_encoding = 'utf-8-sig'
105
106
# The master toctree document.
107
master_doc = 'index'
108
109
# General information about the project.
110
project = 'Savu'
111
copyright = '2014, Mark Basham'
112
113
# The version info for the project you're documenting, acts as replacement for
114
# |version| and |release|, also used in various other places throughout the
115
# built documents.
116
117
from savu.version import __version__
118
119
# The short X.Y version.
120
version = __version__
121
# The full version, including alpha/beta/rc tags.
122
release = __version__
123
124
# The language for content autogenerated by Sphinx. Refer to documentation
125
# for a list of supported languages.
126
#language = None
127
128
# There are two options for replacing |today|: either, you set today to some
129
# non-false value, then it is used:
130
#today = ''
131
# Else, today_fmt is used as the format for a strftime call.
132
#today_fmt = '%B %d, %Y'
133
134
# List of patterns, relative to source directory, that match files and
135
# directories to ignore when looking for source files.
136
exclude_patterns = ['_templates', '../../savu/test', '../../savu/core/transports/dist_array_transport.py']
137
138
# The reST default role (used for this markup: `text`) to use for all documents.
139
#default_role = None
140
141
# If true, '()' will be appended to :func: etc. cross-reference text.
142
#add_function_parentheses = True
143
144
# If true, the current module name will be prepended to all description
145
# unit titles (such as .. function::).
146
#add_module_names = True
147
148
# If true, sectionauthor and moduleauthor directives will be shown in the
149
# output. They are ignored by default.
150
#show_authors = False
151
152
# The name of the Pygments (syntax highlighting) style to use.
153
pygments_style = 'sphinx'
154
155
# A list of ignored prefixes for module index sorting.
156
#modindex_common_prefix = ['savu.']
157
158
159
# -- Options for HTML output ---------------------------------------------------
160
161
# The theme to use for HTML and HTML Help pages.  See the documentation for
162
# a list of builtin themes.
163
html_theme = 'sphinx_rtd_theme'
164
#html_theme = 'default'
165
166
# Theme options are theme-specific and customize the look and feel of a theme
167
# further.  For a list of options available for each theme, see the
168
# documentation.
169
#html_theme_options = {}
170
171
# Add any paths that contain custom themes here, relative to this directory.
172
html_theme_path = ["_themes", ]
173
174
# The name for this set of Sphinx documents.  If None, it defaults to
175
# "<project> v<release> documentation".
176
#html_title = None
177
178
# A shorter title for the navigation bar.  Default is the same as html_title.
179
#html_short_title = None
180
181
# The name of an image file (relative to this directory) to place at the top
182
# of the sidebar.
183
html_logo = '../../Savu_logo_2_L_Res_trans.png'
184
185
# The name of an image file (within the static path) to use as favicon of the
186
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
187
# pixels large.
188
#html_favicon = None
189
190
# Add any paths that contain custom static files (such as style sheets) here,
191
# relative to this directory. They are copied after the builtin static files,
192
# so a file named "default.css" will overwrite the builtin "default.css".
193
html_static_path = ['_static']
194
195
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
196
# using the given strftime format.
197
#html_last_updated_fmt = '%b %d, %Y'
198
199
# If true, SmartyPants will be used to convert quotes and dashes to
200
# typographically correct entities.
201
#html_use_smartypants = True
202
203
# Custom sidebar templates, maps document names to template names.
204
#html_sidebars = {}
205
206
# Additional templates that should be rendered to pages, maps page names to
207
# template names.
208
#html_additional_pages = {}
209
210
# If false, no module index is generated.
211
#html_domain_indices = True
212
213
# If false, no index is generated.
214
#html_use_index = True
215
216
# If true, the index is split into individual pages for each letter.
217
#html_split_index = False
218
219
# If true, links to the reST sources are added to the pages.
220
#html_show_sourcelink = True
221
222
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
223
#html_show_sphinx = True
224
225
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
226
#html_show_copyright = True
227
228
# If true, an OpenSearch description file will be output, and all pages will
229
# contain a <link> tag referring to it.  The value of this option must be the
230
# base URL from which the finished HTML is served.
231
#html_use_opensearch = ''
232
233
# This is the file name suffix for HTML files (e.g. ".xhtml").
234
#html_file_suffix = None
235
236
# Output file base name for HTML help builder.
237
htmlhelp_basename = 'Savudoc'
238
239
240
# -- Options for LaTeX output --------------------------------------------------
241
242
latex_elements = {
243
# The paper size ('letterpaper' or 'a4paper').
244
#'papersize': 'letterpaper',
245
246
# The font size ('10pt', '11pt' or '12pt').
247
#'pointsize': '10pt',
248
249
# Additional stuff for the LaTeX preamble.
250
#'preamble': '',
251
}
252
253
# Grouping the document tree into LaTeX files. List of tuples
254
# (source start file, target name, title, author, documentclass [howto/manual]).
255
latex_documents = [
256
  ('index', 'Savu.tex', 'Savu Documentation',
257
   'Mark Basham', 'manual'),
258
]
259
260
# The name of an image file (relative to this directory) to place at the top of
261
# the title page.
262
#latex_logo = None
263
264
# For "manual" documents, if this is true, then toplevel headings are parts,
265
# not chapters.
266
#latex_use_parts = False
267
268
# If true, show page references after internal links.
269
#latex_show_pagerefs = False
270
271
# If true, show URL addresses after external links.
272
#latex_show_urls = False
273
274
# Documents to append as an appendix to all manuals.
275
#latex_appendices = []
276
277
# If false, no module index is generated.
278
#latex_domain_indices = True
279
280
281
# -- Options for manual page output --------------------------------------------
282
283
# One entry per manual page. List of tuples
284
# (source start file, name, description, authors, manual section).
285
man_pages = [
286
    ('index', 'savu', 'Savu Documentation',
287
     ['Mark Basham'], 1)
288
]
289
290
# If true, show URL addresses after external links.
291
#man_show_urls = False
292
293
294
# -- Options for Texinfo output ------------------------------------------------
295
296
# Grouping the document tree into Texinfo files. List of tuples
297
# (source start file, target name, title, author,
298
#  dir menu entry, description, category)
299
texinfo_documents = [
300
  ('index', 'Savu', 'Savu Documentation',
301
   'Mark Basham', 'Savu', 'One line description of project.',
302
   'Miscellaneous'),
303
]
304
305
# Documents to append as an appendix to all manuals.
306
#texinfo_appendices = []
307
308
# If false, no module index is generated.
309
#texinfo_domain_indices = True
310
311
# How to display URL addresses: 'footnote', 'no', or 'inline'.
312
#texinfo_show_urls = 'footnote'
313
314
315
# Example configuration for intersphinx: refer to the Python standard library.
316
intersphinx_mapping = {'http://docs.python.org/': None}
317
318