diff --git a/conf.py b/conf.py index 1a7ff77..2829e64 100644 --- a/conf.py +++ b/conf.py @@ -27,7 +27,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["sphinx_design", "sphinx_reredirects"] +extensions = ["sphinx_design", "sphinx_reredirects", "sphinxext.opengraph"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -91,3 +91,7 @@ "citation": "/colofon", "contact": "/colofon" } + +# OpenGraph metadata (see https://github.com/wpilibsuite/sphinxext-opengraph#options) +ogp_site_url = "https://diataxis.fr/" +ogp_image = "images/diataxis.png" diff --git a/requirements.txt b/requirements.txt index 9ba2cb8..5f88173 100644 --- a/requirements.txt +++ b/requirements.txt @@ -29,6 +29,7 @@ sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 +sphinxext-opengraph==0.8.2 sphinxcontrib-serializinghtml==1.1.5 sphinxcontrib-spelling==7.3.2 tornado==6.1