"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "d8bb57841a27ac08051c31bec1c5f0a6055af504"
Unverified Commit e4658e1a authored by Thomas J. Fan's avatar Thomas J. Fan Committed by GitHub
Browse files

[docs] Add scikit-learn for intersphinx (fixes #5954) (#5956)

parent 9f78ccee
...@@ -84,6 +84,7 @@ extensions = [ ...@@ -84,6 +84,7 @@ extensions = [
'sphinx.ext.todo', 'sphinx.ext.todo',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
"sphinx.ext.intersphinx",
] ]
autodoc_default_flags = ['members', 'inherited-members', 'show-inheritance'] autodoc_default_flags = ['members', 'inherited-members', 'show-inheritance']
...@@ -206,6 +207,10 @@ htmlhelp_basename = 'LightGBMdoc' ...@@ -206,6 +207,10 @@ htmlhelp_basename = 'LightGBMdoc'
# the title page. # the title page.
latex_logo = str(CURR_PATH / 'logo' / 'LightGBM_logo_black_text_small.png') 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: def generate_doxygen_xml(app: Sphinx) -> None:
"""Generate XML documentation for C API by Doxygen. """Generate XML documentation for C API by Doxygen.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment