From 736a6a1a1c1cd049c55132966198caaed8158a8b Mon Sep 17 00:00:00 2001 From: "Thomas J. Fan" Date: Mon, 3 Jul 2023 16:34:40 -0400 Subject: [PATCH] DOC Adds scikit-learn for intersphinx --- docs/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 38ec99e75a36..2b74ae530a72 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -84,6 +84,7 @@ def run(self) -> List: 'sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', + "sphinx.ext.intersphinx", ] autodoc_default_flags = ['members', 'inherited-members', 'show-inheritance'] @@ -206,6 +207,10 @@ def run(self) -> List: # the title page. latex_logo = str(CURR_PATH / 'logo' / 'LightGBM_logo_black_text_small.png') +# intersphinx configuration +intersphinx_mapping = { + "sklearn": ("https://scikit-learn.org/stable/", None), +} def generate_doxygen_xml(app: Sphinx) -> None: """Generate XML documentation for C API by Doxygen.