From 4fe753fd453bc5d6b45db03e877f8833952390ce Mon Sep 17 00:00:00 2001 From: John Wiggins Date: Sun, 13 Sep 2015 12:53:54 +0200 Subject: [PATCH] Use the current python version for the python intersphinx reference --- doc/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 5f121d05..8107cfd3 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -296,7 +296,8 @@ plot2rst_rcparams = {'image.cmap' : 'gray', # ----------------------------------------------------------------------------- # intersphinx # ----------------------------------------------------------------------------- -_python_doc_base = 'http://docs.python.org/2.7' +_python_version_str = '{0.major}.{0.minor}'.format(sys.version_info) +_python_doc_base = 'http://docs.python.org/' + _python_version_str intersphinx_mapping = { 'python': (_python_doc_base, None), 'numpy': ('http://docs.scipy.org/doc/numpy',