mirror of
https://github.com/python/cpython.git
synced 2025-12-20 07:33:09 +00:00
GH-136155: Use `sphinxext-opengraph` v0.12.0 (#137393)
This commit is contained in:
parent
9745976ac6
commit
39bd7c3156
3 changed files with 9 additions and 13 deletions
|
|
@ -567,14 +567,11 @@ ogp_social_cards = { # Used when matplotlib is installed
|
||||||
'image': '_static/og-image.png',
|
'image': '_static/og-image.png',
|
||||||
'line_color': '#3776ab',
|
'line_color': '#3776ab',
|
||||||
}
|
}
|
||||||
if 'builder_html' in tags: # noqa: F821
|
ogp_custom_meta_tags = ('<meta name="theme-color" content="#3776ab">',)
|
||||||
ogp_custom_meta_tags = [
|
|
||||||
'<meta name="theme-color" content="#3776ab">',
|
|
||||||
]
|
|
||||||
if 'create-social-cards' not in tags: # noqa: F821
|
if 'create-social-cards' not in tags: # noqa: F821
|
||||||
# Define a static preview image when not creating social cards
|
# Define a static preview image when not creating social cards
|
||||||
ogp_image = '_static/og-image.png'
|
ogp_image = '_static/og-image.png'
|
||||||
ogp_custom_meta_tags += [
|
ogp_custom_meta_tags += (
|
||||||
'<meta property="og:image:width" content="200">',
|
'<meta property="og:image:width" content="200">',
|
||||||
'<meta property="og:image:height" content="200">',
|
'<meta property="og:image:height" content="200">',
|
||||||
]
|
)
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ sphinx~=8.2.0
|
||||||
|
|
||||||
blurb
|
blurb
|
||||||
|
|
||||||
sphinxext-opengraph~=0.11.0
|
sphinxext-opengraph~=0.12.0
|
||||||
sphinx-notfound-page~=1.0.0
|
sphinx-notfound-page~=1.0.0
|
||||||
|
|
||||||
# The theme used by the documentation is stored separately, so we need
|
# The theme used by the documentation is stored separately, so we need
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
EPUB builds are fixed by excluding non-XHTML-compatible tags.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue