From 5710121215933382b93f92d9fd844546a249ffa2 Mon Sep 17 00:00:00 2001 From: salu133445 Date: Tue, 10 Apr 2018 19:33:22 +0800 Subject: [PATCH] Use intersphinx --- doc/source/conf.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 6e8de04..f0f2260 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # pypianoroll documentation build configuration file, created by @@ -19,10 +18,10 @@ import os import sys -sys.path.insert(0, os.path.abspath('../../')) - import pypianoroll +sys.path.insert(0, os.path.abspath('../../')) + # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. @@ -35,7 +34,7 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', - # 'sphinx.ext.intersphinx', + 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode', 'sphinx.ext.githubpages', 'sphinx.ext.napoleon' @@ -179,9 +178,9 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - # 'matplotlib': ('http://matplotlib.org', None), - # 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), - # 'numpy': ('http://docs.scipy.org/doc/numpy/', None) + 'matplotlib': ('http://matplotlib.org', None), + 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), + 'numpy': ('http://docs.scipy.org/doc/numpy/', None) } autoclass_content = 'both'