From 418a01379bdc8dbc03f3b7fb1a3324c88495d4e6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 7 Jan 2023 18:46:35 +0200 Subject: [PATCH] Generate social media cards per page --- Doc/conf.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Doc/conf.py b/Doc/conf.py index 8a14646801ebac..78d94a7cd3b664 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -546,11 +546,16 @@ stable_abi_file = 'data/stable_abi.dat' # sphinxext-opengraph config -ogp_site_url = 'https://docs.python.org/3/' +ogp_site_url = 'https://hugovk-cpython.readthedocs.io/en/ogp_social_cards/' ogp_site_name = 'Python documentation' -ogp_image = '_static/og-image.png' -ogp_custom_meta_tags = [ - '', - '', - '', -] +# ogp_image = '_static/og-image.png' +# ogp_custom_meta_tags = [ +# '', +# '', +# '', +# ] + +ogp_social_cards = { + "image": "_static/og-image.png", + "line_color": "#3776ab", +}