We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d51c2c commit 3045dc3Copy full SHA for 3045dc3
1 file changed
src/sunpy_sphinx_theme/__init__.py
@@ -2,7 +2,6 @@
2
SunPy Sphinx Theme.
3
"""
4
5
-import importlib
6
import json
7
import os
8
import posixpath
@@ -77,7 +76,7 @@ def update_config(app) -> None:
77
76
):
78
theme_options["rtd_extra_search_projects"] = [["sunpyorg", "https://sunpy.org"]]
79
80
- if importlib.util.find_spec("sphinx_gallery"):
+ if "sphinx_gallery.gen_gallery" in app.extensions:
81
ssi = theme_options_with_defaults["secondary_sidebar_items"].split(",")
82
if "sg_download_links" not in ssi:
83
ssi.append("sg_download_links")
0 commit comments