diff --git a/_static/og-image.png b/_static/og-image.png
new file mode 100644
index 0000000000..d792932b87
Binary files /dev/null and b/_static/og-image.png differ
diff --git a/conf.py b/conf.py
index 0a24675b05..ceaf99143c 100644
--- a/conf.py
+++ b/conf.py
@@ -10,6 +10,7 @@
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx_copybutton',
+ 'sphinxext.opengraph',
'sphinxext.rediraffe',
]
@@ -104,6 +105,16 @@
todo_include_todos = True
+# sphinxext-opengraph config
+ogp_site_url = "https://devguide.python.org/"
+ogp_site_name = "Python Developer's Guide"
+ogp_image = "_static/og-image.png"
+ogp_custom_meta_tags = [
+ '',
+ '',
+ '',
+]
+
# Strip the dollar prompt when copying code
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells
copybutton_prompt_text = "$"
diff --git a/requirements.txt b/requirements.txt
index 8bdf76e8a4..e7831193e0 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,4 +2,5 @@ Sphinx==5.3.0
furo>=2022.6.4
sphinx_copybutton>=0.3.3
sphinx-lint==0.6.7
+sphinxext-opengraph>=0.7.1
sphinxext-rediraffe