Skip to content

Commit

Permalink
add readthedocs-sphinx-search (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Jan 16, 2024
1 parent 11a352c commit 73dabaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@

# -- General configuration ------------------------------------------------


needs_sphinx = "1.7" # autosummary bugfix

# General information
project = "anndata"
author = f"{project} developers"
Expand Down Expand Up @@ -52,6 +49,7 @@
"sphinx_autodoc_typehints", # needs to be after napoleon
"sphinx_issues",
"sphinx_design",
"sphinx_search.extension",
"sphinxext.opengraph",
"scanpydoc", # needs to be before linkcode
"sphinx.ext.linkcode",
Expand Down Expand Up @@ -126,7 +124,8 @@ def setup(app: Sphinx):
# -- Options for HTML output ----------------------------------------------


html_theme = "sphinx_book_theme"
# The theme is sphinx-book-theme, with patches for readthedocs-sphinx-search
html_theme = "scanpydoc"
html_theme_options = dict(
use_repository_button=True,
repository_url="https://github.com/scverse/anndata",
Expand Down
1 change: 1 addition & 0 deletions docs/release-notes/0.10.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

```{rubric} Documentation
```
* Re-add search-as-you-type, this time via `readthedocs-sphinx-search` {pr}`1311` {user}`flying-sheep`

```{rubric} Performance
```
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,19 @@ dev = [
]
doc = [
"sphinx>=4.4",
"sphinx-book-theme>=1.0.1",
"sphinx-book-theme>=1.1.0",
"sphinx-autodoc-typehints>=1.11.0",
"sphinx-issues",
"sphinx-copybutton",
"sphinxext.opengraph",
"nbsphinx",
"scanpydoc>=0.9",
"scanpydoc[theme,typehints] >=0.13.4",
"zarr",
"awkward>=2.0.7",
"IPython", # For syntax highlighting in notebooks
"myst_parser",
"sphinx_design>=0.5.0",
"readthedocs-sphinx-search",
]
test = [
"loompy>=3.0.5",
Expand Down

0 comments on commit 73dabaa

Please sign in to comment.