Skip to content

Commit 9d474fb

Browse files
committed
disable search override
1 parent a9cd061 commit 9d474fb

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

src/scanpydoc/theme/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070

7171
from __future__ import annotations
7272

73-
import os
7473
from typing import TYPE_CHECKING
7574
from pathlib import Path
7675

@@ -89,8 +88,4 @@ def setup(app: Sphinx) -> dict[str, bool]: # pragma: no cover
8988
"""Set up theme (like an extension)."""
9089
app.add_html_theme("scanpydoc", str(HERE))
9190

92-
# if we’re on ReadTheDocs, hide the pydata-sphinx-theme search popup
93-
if os.environ.get("READTHEDOCS_VERSION", ""): # pragma: no cover
94-
app.add_js_file("scripts/rtd-sphinx-search.js", loading_method="defer")
95-
9691
return dict(parallel_read_safe=True, parallel_write_safe=True)

src/scanpydoc/theme/static/scripts/rtd-sphinx-search.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)