https://github.com/python/cpython/commit/39bd7c3156b00dda85ea09dffdde3e3536f37a55
commit: 39bd7c3156b00dda85ea09dffdde3e3536f37a55
branch: main
author: Adam Turner <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-08-05T21:14:31+01:00
summary:
GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (#137393)
files:
D Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst
M Doc/conf.py
M Doc/requirements.txt
diff --git a/Doc/conf.py b/Doc/conf.py
index 1c1f36e5bc0737..35e0b3eaeafe94 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -567,14 +567,11 @@
'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">',
+ )
diff --git a/Doc/requirements.txt b/Doc/requirements.txt
index 924e218c9f67d9..7b7286429a1041 100644
--- a/Doc/requirements.txt
+++ b/Doc/requirements.txt
@@ -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
index 0341b5f7f0d5e6..00000000000000
---
a/Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst
+++ /dev/null
@@ -1 +0,0 @@
-EPUB builds are fixed by excluding non-XHTML-compatible tags.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]