Skip to content

Commit 547eb26

Browse files
authored
📚 DOCS: Add opengraph extension (#393)
1 parent 6d2c4f7 commit 547eb26

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"sphinx.ext.viewcode",
2929
"sphinxcontrib.bibtex",
3030
"sphinx_panels",
31+
"sphinxext.opengraph",
3132
]
3233

3334
# Add any paths that contain templates here, relative to this directory.
@@ -55,6 +56,10 @@
5556
"repository_branch": "master",
5657
"path_to_docs": "docs",
5758
}
59+
# OpenGraph metadata
60+
ogp_site_url = "https://myst-parser.readthedocs.io/en/latest"
61+
# This is the image that GitHub stores for our social media previews
62+
ogp_image = "https://repository-images.githubusercontent.com/240151150/316bc480-cc23-11eb-96fc-4ab2f981a65d" # noqa: E501
5863

5964
# Add any paths that contain custom static files (such as style sheets) here,
6065
# relative to this directory. They are copied after the builtin static files,

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ rtd =
6363
sphinx-book-theme~=0.1.0
6464
sphinx-panels~=0.5.2
6565
sphinxcontrib-bibtex~=2.1
66+
sphinxext-opengraph~=0.4.2
6667
# left in for back-compatability
6768
sphinx =
6869
testing =

0 commit comments

Comments
 (0)