Skip to content

Commit abb4a2c

Browse files
hugovkAA-Turner
authored andcommitted
Generate social media cards per page
1 parent 7473c60 commit abb4a2c

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

Doc/conf.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -624,11 +624,16 @@
624624
# Options for sphinxext-opengraph
625625
# -------------------------------
626626

627-
ogp_site_url = 'https://docs.python.org/3/'
627+
ogp_site_url = 'https://hugovk-cpython.readthedocs.io/en/ogp_social_cards/'
628628
ogp_site_name = 'Python documentation'
629-
ogp_image = '_static/og-image.png'
630-
ogp_custom_meta_tags = [
631-
'<meta property="og:image:width" content="200" />',
632-
'<meta property="og:image:height" content="200" />',
633-
'<meta name="theme-color" content="#3776ab" />',
634-
]
629+
# ogp_image = '_static/og-image.png'
630+
# ogp_custom_meta_tags = [
631+
# '<meta property="og:image:width" content="200" />',
632+
# '<meta property="og:image:height" content="200" />',
633+
# '<meta name="theme-color" content="#3776ab" />',
634+
# ]
635+
636+
ogp_social_cards = {
637+
"image": "_static/og-image.png",
638+
"line_color": "#3776ab",
639+
}

Doc/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ sphinx-notfound-page~=1.0.0
1919
python-docs-theme>=2023.3.1,!=2023.7
2020

2121
-c constraints.txt
22+
23+
matplotlib

0 commit comments

Comments
 (0)