Skip to content

Commit 228ba74

Browse files
authored
skip when building embedded html
1 parent 0cd67f5 commit 228ba74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxext/opengraph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def html_page_context(
6060
context: dict[str, Any],
6161
doctree: nodes.document,
6262
) -> None:
63-
if doctree:
63+
if doctree and not app.builder.embedded:
6464
context['metatags'] += get_tags(
6565
context,
6666
doctree,

0 commit comments

Comments
 (0)