Skip to content

Commit

Permalink
Generate social media cards per page
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 18, 2024
1 parent dacc5ac commit 418a013
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
'<meta property="og:image:width" content="200" />',
'<meta property="og:image:height" content="200" />',
'<meta name="theme-color" content="#3776ab" />',
]
# ogp_image = '_static/og-image.png'
# ogp_custom_meta_tags = [
# '<meta property="og:image:width" content="200" />',
# '<meta property="og:image:height" content="200" />',
# '<meta name="theme-color" content="#3776ab" />',
# ]

ogp_social_cards = {
"image": "_static/og-image.png",
"line_color": "#3776ab",
}

0 comments on commit 418a013

Please sign in to comment.