File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 10
10
'sphinx.ext.intersphinx' ,
11
11
'sphinx.ext.todo' ,
12
12
'sphinx_copybutton' ,
13
+ 'sphinxext.opengraph' ,
13
14
'sphinxext.rediraffe' ,
14
15
]
15
16
105
106
106
107
todo_include_todos = True
107
108
109
+ # sphinxext-opengraph config
110
+ ogp_site_url = "https://devguide.python.org/"
111
+ ogp_site_name = "Python Developer's Guide"
112
+ ogp_image = "_static/og-image.png"
113
+ ogp_custom_meta_tags = [
114
+ '<meta property="og:image:width" content="1200">' ,
115
+ '<meta property="og:image:height" content="630">' ,
116
+ '<meta name="theme-color" content="#3776ab" />' ,
117
+ ]
118
+
108
119
# Strip the dollar prompt when copying code
109
120
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells
110
121
copybutton_prompt_text = "$"
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ Sphinx==5.3.0
2
2
furo >= 2022.6.4
3
3
sphinx_copybutton >= 0.3.3
4
4
sphinx-lint == 0.6.7
5
+ sphinxext-opengraph >= 0.7.1
5
6
sphinxext-rediraffe
You can’t perform that action at this time.
0 commit comments