Skip to content

Commit 271cfba

Browse files
committed
Generate social media cards per page
1 parent 5ed5572 commit 271cfba

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
@@ -621,11 +621,16 @@
621621
# Options for sphinxext-opengraph
622622
# -------------------------------
623623

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

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)