From 228ba74744f71f00d4ac72b110a7f03b43cd88dd Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 16 May 2025 16:36:17 +0900 Subject: [PATCH] skip when building embedded html --- sphinxext/opengraph/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinxext/opengraph/__init__.py b/sphinxext/opengraph/__init__.py index ba021a0..766316e 100644 --- a/sphinxext/opengraph/__init__.py +++ b/sphinxext/opengraph/__init__.py @@ -60,7 +60,7 @@ def html_page_context( context: dict[str, Any], doctree: nodes.document, ) -> None: - if doctree: + if doctree and not app.builder.embedded: context['metatags'] += get_tags( context, doctree,