Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions _ext/searchlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class SearchLinkRole(SphinxRole):

def run(self) -> tuple[list[nodes.Node], list[nodes.system_message]]:
"""Generate search link from role directive."""
if (
getattr(self.env.app, "builder", None)
and self.env.app.builder.name != "html"
):
if "html" not in self.env.app.tags:
logger.warning(
"Search links are only supported in HTML output.",
location=self.get_source_info(),
Expand Down
Loading