Skip to content

Commit d8bb086

Browse files
committed
Revert "pythongh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds (python#136187)"
This reverts commit c45da6a.
1 parent 8964ce4 commit d8bb086

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Doc/conf.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,13 @@
567567
'image': '_static/og-image.png',
568568
'line_color': '#3776ab',
569569
}
570-
if 'builder_html' in tags: # noqa: F821
571-
ogp_custom_meta_tags = [
572-
'<meta name="theme-color" content="#3776ab">',
570+
ogp_custom_meta_tags = [
571+
'<meta name="theme-color" content="#3776ab">',
572+
]
573+
if 'create-social-cards' not in tags: # noqa: F821
574+
# Define a static preview image when not creating social cards
575+
ogp_image = '_static/og-image.png'
576+
ogp_custom_meta_tags += [
577+
'<meta property="og:image:width" content="200">',
578+
'<meta property="og:image:height" content="200">',
573579
]
574-
if 'create-social-cards' not in tags: # noqa: F821
575-
# Define a static preview image when not creating social cards
576-
ogp_image = '_static/og-image.png'
577-
ogp_custom_meta_tags += [
578-
'<meta property="og:image:width" content="200">',
579-
'<meta property="og:image:height" content="200">',
580-
]

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)