]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#137432)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 5 Aug 2025 20:21:10 +0000 (22:21 +0200)
committerGitHub <noreply@github.com>
Tue, 5 Aug 2025 20:21:10 +0000 (20:21 +0000)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/conf.py
Doc/requirements.txt
Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst [deleted file]

index b14ef7c909dea7bbb2f4bd791d579317b4fdc908..084d5715d0354133c3f8d5a150cebcb5324fbfbe 100644 (file)
@@ -558,14 +558,11 @@ ogp_social_cards = {  # Used when matplotlib is installed
     'image': '_static/og-image.png',
     'line_color': '#3776ab',
 }
-if 'builder_html' in tags:  # noqa: F821
-    ogp_custom_meta_tags = [
-        '<meta name="theme-color" content="#3776ab">',
-    ]
-    if 'create-social-cards' not in tags:  # noqa: F821
-        # Define a static preview image when not creating social cards
-        ogp_image = '_static/og-image.png'
-        ogp_custom_meta_tags += [
-            '<meta property="og:image:width" content="200">',
-            '<meta property="og:image:height" content="200">',
-        ]
+ogp_custom_meta_tags = ('<meta name="theme-color" content="#3776ab">',)
+if 'create-social-cards' not in tags:  # noqa: F821
+    # Define a static preview image when not creating social cards
+    ogp_image = '_static/og-image.png'
+    ogp_custom_meta_tags += (
+        '<meta property="og:image:width" content="200">',
+        '<meta property="og:image:height" content="200">',
+    )
index 924e218c9f67d967864c9e8f089bb11a85d0ec01..7b7286429a104148c4281763d48fda6c7c74eff5 100644 (file)
@@ -11,7 +11,7 @@ sphinx~=8.2.0
 
 blurb
 
-sphinxext-opengraph~=0.11.0
+sphinxext-opengraph~=0.12.0
 sphinx-notfound-page~=1.0.0
 
 # The theme used by the documentation is stored separately, so we need
diff --git a/Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst b/Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst
deleted file mode 100644 (file)
index 0341b5f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-EPUB builds are fixed by excluding non-XHTML-compatible tags.