Skip to content

Commit

Permalink
linkcode
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Dec 13, 2023
1 parent dc61963 commit 85961a4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

import os

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

Expand All @@ -31,8 +32,9 @@
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
"scanpydoc.definition_list_typed_field",
"scanpydoc.rtd_github_links",
"sphinx_issues",
"sphinx.ext.viewcode",
"sphinx.ext.linkcode",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -55,5 +57,10 @@
# a list of builtin themes.
#
html_theme = "sphinx_book_theme"
html_theme_options = dict(
repository_url="https://github.com/frankier/sklearn-ann",
repository_branch=os.environ.get("READTHEDOCS_GIT_IDENTIFIER", "main"),
)
rtd_links_prefix = "src"

autodoc_mock_imports = ["annoy", "faiss", "pynndescent", "nmslib"]

0 comments on commit 85961a4

Please sign in to comment.