Skip to content

Commit 86b82e6

Browse files
authored
Ignore EPUB builders in html_page_context() (#142)
1 parent b9de60d commit 86b82e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sphinxext/opengraph/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def html_page_context(
6060
context: dict[str, Any],
6161
doctree: nodes.document,
6262
) -> None:
63+
if app.builder.name == 'epub':
64+
return
65+
6366
if doctree:
6467
context['metatags'] += get_tags(
6568
context,

0 commit comments

Comments
 (0)