Skip to content

Commit c4c554d

Browse files
[3.13] GH-136155: Use sphinxext-opengraph v0.12.0 (GH-137393) (#137432)
Co-authored-by: Adam Turner <[email protected]>
1 parent db4df35 commit c4c554d

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

Doc/conf.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,11 @@
558558
'image': '_static/og-image.png',
559559
'line_color': '#3776ab',
560560
}
561-
if 'builder_html' in tags: # noqa: F821
562-
ogp_custom_meta_tags = [
563-
'<meta name="theme-color" content="#3776ab">',
564-
]
565-
if 'create-social-cards' not in tags: # noqa: F821
566-
# Define a static preview image when not creating social cards
567-
ogp_image = '_static/og-image.png'
568-
ogp_custom_meta_tags += [
569-
'<meta property="og:image:width" content="200">',
570-
'<meta property="og:image:height" content="200">',
571-
]
561+
ogp_custom_meta_tags = ('<meta name="theme-color" content="#3776ab">',)
562+
if 'create-social-cards' not in tags: # noqa: F821
563+
# Define a static preview image when not creating social cards
564+
ogp_image = '_static/og-image.png'
565+
ogp_custom_meta_tags += (
566+
'<meta property="og:image:width" content="200">',
567+
'<meta property="og:image:height" content="200">',
568+
)

Doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sphinx~=8.2.0
1111

1212
blurb
1313

14-
sphinxext-opengraph~=0.11.0
14+
sphinxext-opengraph~=0.12.0
1515
sphinx-notfound-page~=1.0.0
1616

1717
# The theme used by the documentation is stored separately, so we need

Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)