From c9ab6d338a62ffd74e1dcfd7f345f3ef841ea2ba Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Mon, 7 Jul 2025 15:29:27 +0200 Subject: [PATCH] [3.12] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds (GH-136187) (cherry picked from commit c45da6ae16a0bc796e880c9dbcd4f643345b03b7) Co-authored-by: Maciej Olko Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> --- Doc/conf.py | 11 ++++++----- .../2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst diff --git a/Doc/conf.py b/Doc/conf.py index 526df2dad9294a..81075f43dd33f6 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -601,8 +601,9 @@ ogp_site_url = 'https://docs.python.org/3/' ogp_site_name = 'Python documentation' ogp_image = '_static/og-image.png' -ogp_custom_meta_tags = [ - '', - '', - '', -] +if 'builder_html' in tags: # noqa: F821 + ogp_custom_meta_tags = [ + '', + '', + '', + ] 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 new file mode 100644 index 00000000000000..0341b5f7f0d5e6 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2025-07-01-21-04-47.gh-issue-136155.ufmH4Q.rst @@ -0,0 +1 @@ +EPUB builds are fixed by excluding non-XHTML-compatible tags. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy