From 1e5b99f84cbea0357d8741273edf51a8101cfabd Mon Sep 17 00:00:00 2001 From: Jake Stevens-Haas <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:05:45 -0700 Subject: [PATCH] DOC: Enable intersphinx mapping to sklearn Sphinks reads the public methods of all classes, and if one inherits from sklearn, it reads that method's docstring. If that method contains a relative link in the rst, sphinx needs to know where to link it. --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index ae17adca2..15322b03c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -61,7 +61,8 @@ html_sourcelink_suffix = "" intersphinx_mapping = { - "derivative": ("https://derivative.readthedocs.io/en/latest/", None) + "derivative": ("https://derivative.readthedocs.io/en/latest/", None), + "sklearn": ("https://scikit-learn.org/stable/", None), } # -- Extensions to the Napoleon GoogleDocstring class ---------------------