Skip to content

Commit

Permalink
[docs] Add scikit-learn for intersphinx (fixes #5954) (#5956)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan authored Jul 4, 2023
1 parent 9f78cce commit e4658e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e4658e1

Please sign in to comment.