summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py21
1 files changed, 14 insertions, 7 deletions
diff --git a/doc/conf.py b/doc/conf.py
index f115750..93969c6 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -35,15 +35,17 @@ autoclass_content = 'both'
# shpinx.ext.intersphinx settings
intersphinx_mapping = {'py': ('https://docs.python.org/3', None),
- 'numpy': ('https://numpy.org/doc/stable', None),
- 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
- 'matplotlib': ('https://matplotlib.org', None),
+ 'numpy': ('https://numpy.org/doc/stable/', None),
+ 'scipy': ('https://matplotlib.org/stable/', None),
+ 'matplotlib': ('https://matplotlib.org/stable/', None),
+ 'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
+ 'sympy': ('https://docs.sympy.org/latest/', None),
}
# shpinx.ext.extlinks settings
extlinks = {
- 'scipydoc': ('https://docs.scipy.org/doc/scipy/reference/generated/scipy.%s.html', 'scipy.'),
- 'numpydoc': ('https://docs.scipy.org/doc/numpy/reference/generated/numpy.%s.html', 'numpy.'),
+ 'scipydoc': ('https://docs.scipy.org/doc/scipy/reference/generated/scipy.%s.html', 'scipy.%s'),
+ 'numpydoc': ('https://docs.scipy.org/doc/numpy/reference/generated/numpy.%s.html', 'numpy.%s'),
}
# sphinx.ext.imgmath settings
@@ -63,11 +65,11 @@ master_doc = 'index'
# General information about the project.
project = u'lmfit'
-copyright = u'{}, Matthew Newville, Till Stensitzki, Renee Otten, and others'.format(date.today().year)
+copyright = f'{date.today().year}, Matthew Newville, Till Stensitzki, Renee Otten, and others'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
-version = release = lmfit.__version__.split('+', 1)[0]
+version = release = lmfit.__version__.split('.post')[0]
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
@@ -167,7 +169,12 @@ sphinx_gallery_conf = {
'filename_pattern': r'(\\|/)documentation|(\\|/)example_',
'ignore_pattern': r'(\\|/)doc_',
'ignore_repr_types': r'matplotlib',
+ 'image_srcset': ["3x"],
}
+# remove certain RuntimeWarnings from examples
+warnings.filterwarnings("ignore", category=RuntimeWarning,
+ message="overflow encountered")
+
# Suppress "WARNING: unknown mimetype for _static/empty
suppress_warnings = ['epub.unknown_project_files']