'image': '_static/og-image.png',
'line_color': '#3776ab',
}
-if 'builder_html' in tags: # noqa: F821
- ogp_custom_meta_tags = [
- '<meta name="theme-color" content="#3776ab">',
- ]
- if 'create-social-cards' not in tags: # noqa: F821
- # Define a static preview image when not creating social cards
- ogp_image = '_static/og-image.png'
- ogp_custom_meta_tags += [
- '<meta property="og:image:width" content="200">',
- '<meta property="og:image:height" content="200">',
- ]
+ogp_custom_meta_tags = ('<meta name="theme-color" content="#3776ab">',)
+if 'create-social-cards' not in tags: # noqa: F821
+ # Define a static preview image when not creating social cards
+ ogp_image = '_static/og-image.png'
+ ogp_custom_meta_tags += (
+ '<meta property="og:image:width" content="200">',
+ '<meta property="og:image:height" content="200">',
+ )
blurb
-sphinxext-opengraph~=0.11.0
+sphinxext-opengraph~=0.12.0
sphinx-notfound-page~=1.0.0
# The theme used by the documentation is stored separately, so we need