3434 'sphinx.ext.autosummary' ,
3535 'sphinx.ext.doctest' ,
3636 'sphinx.ext.intersphinx' ,
37- 'sphinx.ext.todo' ,
38- 'sphinx.ext.coverage' ,
39- 'sphinx.ext.mathjax' ,
40- 'sphinx.ext.ifconfig' ,
41- 'sphinx.ext.viewcode' ,
4237 'sphinx.ext.napoleon' ,
38+ 'sphinx.ext.viewcode' ,
39+ 'sphinx.ext.todo' ,
4340 'sphinxcontrib.bibtex' ,
4441 'nbsphinx' ,
45- 'IPython.sphinxext.ipython_console_highlighting' ,
4642]
4743
4844# Napoleon settings
7672copyright = u'2016, UChicago Argonne, LLC'
7773author = u'Doga Gursoy'
7874
79- # The version info for the project you're documenting, acts as replacement for
80- # |version| and |release|, also used in various other places throughout the
81- # built documents.
82- #
83- # The short X.Y version.
84- # The full version, including alpha/beta/rc tags.
85- # release = '0.3'
86-
87- # The language for content autogenerated by Sphinx. Refer to documentation
88- # for a list of supported languages.
89- #
90- # This is also used if you do content translation via gettext catalogs.
91- # Usually you set "language" from the command line for these cases.
92- language = None
93-
94- # There are two options for replacing |today|: either, you set today to some
95- # non-false value, then it is used:
96- #today = ''
97- # Else, today_fmt is used as the format for a strftime call.
98- #today_fmt = '%B %d, %Y'
99-
10075# List of patterns, relative to source directory, that match files and
10176# directories to ignore when looking for source files.
10277exclude_patterns = ['_build' , '**.ipynb_checkpoints' ]
10378
104- # The reST default role (used for this markup: `text`) to use for all
105- # documents.
106- #default_role = None
107-
108- # If true, '()' will be appended to :func: etc. cross-reference text.
109- #add_function_parentheses = True
110-
111- # If true, the current module name will be prepended to all description
112- # unit titles (such as .. function::).
113- #add_module_names = True
114-
11579# If true, sectionauthor and moduleauthor directives will be shown in the
11680# output. They are ignored by default.
117- # show_authors = False
81+ show_authors = True
11882
11983# The name of the Pygments (syntax highlighting) style to use.
12084pygments_style = 'sphinx'
12185
122- # A list of ignored prefixes for module index sorting.
123- #modindex_common_prefix = []
124-
125- # If true, keep warnings as "system message" paragraphs in the built documents.
126- #keep_warnings = False
127-
12886# If true, `todo` and `todoList` produce output, else they produce nothing.
12987todo_include_todos = True
13088
151109 "display_version" : True ,
152110}
153111
154- # Add any paths that contain custom themes here, relative to this directory.
155- #html_theme_path = []
156-
157- # The name for this set of Sphinx documents. If None, it defaults to
158- # "<project> v<release> documentation".
159- #html_title = None
160-
161- # A shorter title for the navigation bar. Default is the same as html_title.
162- #html_short_title = None
163-
164112# The name of an image file (relative to this directory) to place at the top
165113# of the sidebar.
166114#html_logo = None
170118# pixels large.
171119#html_favicon = None
172120
173- # Add any paths that contain custom static files (such as style sheets) here,
174- # relative to this directory. They are copied after the builtin static files,
175- # so a file named "default.css" will overwrite the builtin "default.css".
176- # html_static_path = ['_static']
177-
178- # Add any extra paths that contain custom files (such as robots.txt or
179- # .htaccess) here, relative to this directory. These files are copied
180- # directly to the root of the documentation.
181- #html_extra_path = []
182-
183- # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
184- # using the given strftime format.
185- #html_last_updated_fmt = '%b %d, %Y'
186-
187- # If true, SmartyPants will be used to convert quotes and dashes to
188- # typographically correct entities.
189- #html_use_smartypants = True
190-
191- # Custom sidebar templates, maps document names to template names.
192- #html_sidebars = {}
193-
194- # Additional templates that should be rendered to pages, maps page names to
195- # template names.
196- #html_additional_pages = {}
197-
198- # If false, no module index is generated.
199- #html_domain_indices = True
200-
201- # If false, no index is generated.
202- #html_use_index = True
203-
204- # If true, the index is split into individual pages for each letter.
205- #html_split_index = False
206-
207- # If true, links to the reST sources are added to the pages.
208- #html_show_sourcelink = True
209-
210- # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
211- #html_show_sphinx = True
212-
213- # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
214- #html_show_copyright = True
215-
216- # If true, an OpenSearch description file will be output, and all pages will
217- # contain a <link> tag referring to it. The value of this option must be the
218- # base URL from which the finished HTML is served.
219- #html_use_opensearch = ''
220-
221- # This is the file name suffix for HTML files (e.g. ".xhtml").
222- #html_file_suffix = None
223-
224121# Language to be used for generating the HTML full-text search index.
225122# Sphinx supports the following languages:
226123# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
227124# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
228- #html_search_language = 'en'
229-
230- # A dictionary with options for the search language support, empty by default.
231- # Now only 'ja' uses this config value
232- #html_search_options = {'type': 'default'}
233-
234- # The name of a javascript file (relative to the configuration directory) that
235- # implements a search results scorer. If empty, the default will be used.
236- #html_search_scorer = 'scorer.js'
125+ html_search_language = 'en'
237126
238127# Output file base name for HTML help builder.
239128htmlhelp_basename = 'xdesigndoc'
240129
241- # -- Options for LaTeX output ---------------------------------------------
242-
243- latex_elements = {
244- # The paper size ('letterpaper' or 'a4paper').
245- #'papersize': 'letterpaper',
246-
247- # The font size ('10pt', '11pt' or '12pt').
248- #'pointsize': '10pt',
249-
250- # Additional stuff for the LaTeX preamble.
251- #'preamble': '',
252-
253- # Latex figure (float) alignment
254- #'figure_align': 'htbp',
255- }
256-
257- # Grouping the document tree into LaTeX files. List of tuples
258- # (source start file, target name, title,
259- # author, documentclass [howto, manual, or own class]).
260- latex_documents = [
261- (master_doc , 'xdesign.tex' , u'XDesign Documentation' , copyright , 'manual' ),
130+ nbsphinx_execute_arguments = [
131+ "--InlineBackend.figure_formats={'svg', 'pdf'}" ,
132+ "--InlineBackend.rc={'figure.dpi': 96}" ,
262133]
263134
264- # The name of an image file (relative to this directory) to place at the top of
265- # the title page.
266- #latex_logo = None
267-
268- # For "manual" documents, if this is true, then toplevel headings are parts,
269- # not chapters.
270- #latex_use_parts = False
271-
272- # If true, show page references after internal links.
273- #latex_show_pagerefs = False
274-
275- # If true, show URL addresses after external links.
276- #latex_show_urls = False
135+ # This is processed by Jinja2 and inserted before each notebook
136+ nbsphinx_prolog = r"""
137+ {% set docname = env.doc2path(env.docname, base='docs/source') %}
277138
278- # Documents to append as an appendix to all manuals.
279- #latex_appendices = []
139+ .. only:: html
280140
281- # If false, no module index is generated.
282- #latex_domain_indices = True
141+ .. role:: raw-html(raw)
142+ :format: html
283143
284- # -- Options for manual page output ---------------------------------------
285-
286- # One entry per manual page. List of tuples
287- # (source start file, name, description, authors, manual section).
288- man_pages = [(master_doc , 'xdesign' , u'XDesign Documentation' , [author ], 1 )]
289-
290- # If true, show URL addresses after external links.
291- #man_show_urls = False
292-
293- # -- Options for Texinfo output -------------------------------------------
294-
295- # Grouping the document tree into Texinfo files. List of tuples
296- # (source start file, target name, title, author,
297- # dir menu entry, description, category)
298- texinfo_documents = [
299- (
300- master_doc , 'xdesign' , u'XDesign Documentation' , author , copyright ,
301- 'Benchmarking tools for tomography.' , 'Miscellaneous'
302- ),
303- ]
144+ .. nbinfo::
304145
305- # Documents to append as an appendix to all manuals.
306- #texinfo_appendices = []
146+ This page was generated from `{{ docname }}`__.
147+ Interactive online version:
148+ :raw-html:`<a href="https://mybinder.org/v2/gh/tomography/xdesign/{{ env.config.release }}?filepath={{ docname }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>`
307149
308- # If false, no module index is generated.
309- # texinfo_domain_indices = True
150+ __ https://github.com/tomography/xdesign/blob/
151+ {{ env.config.release }}/{{ docname }}
310152
311- # How to display URL addresses: 'footnote', 'no', or 'inline'.
312- # texinfo_show_urls = 'footnote'
153+ .. raw:: latex
313154
314- # If true, do not generate a @detailmenu in the "Top" node's menu.
315- # texinfo_no_detailmenu = False
155+ \nbsphinxstartnotebook{\scriptsize\noindent\strut
156+ \textcolor{gray}{The following section was generated from
157+ \sphinxcode{\sphinxupquote{\strut {{ docname | escape_latex }}}} \dotfill}}
158+ """
316159
317160# Example configuration for intersphinx: refer to the Python standard library.
318161intersphinx_mapping = {
@@ -339,13 +182,13 @@ def __getattr__(cls, name):
339182 'matplotlib.patheffects' ,
340183 'matplotlib.axis' ,
341184 'matplotlib.collections' ,
185+ 'matplotlib.colors' ,
342186 'cached_property' ,
343187 'scipy' ,
344188 'scipy.stats' ,
345189 'scipy.ndimage' ,
346190 'scipy.spatial' ,
347191 'cycler' ,
348- 'phasepack' ,
349192]
350193
351194sys .modules .update ((mod_name , Mock ()) for mod_name in MOCK_MODULES )
0 commit comments