summaryrefslogtreecommitdiff
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorNicolas Courty <ncourty@irisa.fr>2020-02-28 11:46:51 +0100
committerGitHub <noreply@github.com>2020-02-28 11:46:51 +0100
commit00535f30ba5374f95df0a9f0781a12bea37abf63 (patch)
treeff4d363ce36677928d9d828c26148c3eac07a5da /docs/source/conf.py
parente23f4d0646a3e8d28cc146c28574359585295249 (diff)
parent81e9d425b905b1b7fc0ee888556e60c692d9bb18 (diff)
Merge branch 'master' into osx-issue
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 433eca6..d29b829 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -15,7 +15,10 @@
import sys
import os
import re
-import sphinx_gallery
+try:
+ import sphinx_gallery
+except ImportError:
+ print("warning sphinx-gallery not installed")
# !!!! allow readthedoc compilation
try:
@@ -65,6 +68,8 @@ extensions = [
#'sphinx_gallery.gen_gallery',
]
+napoleon_numpy_docstring = True
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -81,7 +86,7 @@ master_doc = 'index'
# General information about the project.
project = u'POT Python Optimal Transport'
-copyright = u'2016-2018, Rémi Flamary, Nicolas Courty'
+copyright = u'2016-2019, Rémi Flamary, Nicolas Courty'
author = u'Rémi Flamary, Nicolas Courty'
# The version info for the project you're documenting, acts as replacement for
@@ -323,7 +328,10 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'https://docs.python.org/': None}
+intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
+ 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
+ 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
+ 'matplotlib': ('http://matplotlib.sourceforge.net/', None)}
sphinx_gallery_conf = {
'examples_dirs': ['../../examples','../../examples/da'],