From a46663455a54dbcaf2ae888a8dcf5e6a3a3b213a Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Sun, 30 Apr 2023 21:14:17 +0000 Subject: [PATCH] Add sphinext-opengraph to reqs and conf.py --- conf.py | 5 ++++- requirements.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf.py b/conf.py index fafc08e..f674a82 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"] +extensions = ["sphinx_design", "sphinxext.opengraph"] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -78,3 +78,6 @@ spelling_lang = tokenizer_lang = 'en_GB' +# 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 f866ab7..241db89 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