From 0f6b6af46b6f2655fb88bcf8ba692c7202d054b9 Mon Sep 17 00:00:00 2001 From: Benjamin Hackl Date: Sun, 8 Nov 2020 01:05:35 +0100 Subject: [PATCH] add basic opengraph metadata to documentation --- docs/requirements.txt | 3 ++- docs/source/conf.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index cdcccbc2ad..64e2524c06 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,4 +1,5 @@ Sphinx==3.1.2 guzzle-sphinx-theme recommonmark>=0.5.0 -sphinx-copybutton \ No newline at end of file +sphinx-copybutton +sphinxext-opengraph diff --git a/docs/source/conf.py b/docs/source/conf.py index f9d634ba52..ae80574f71 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -56,6 +56,7 @@ "sphinx.ext.napoleon", "sphinx.ext.autosummary", "sphinx.ext.doctest", + "sphinxext.opengraph", "manim_directive", ] @@ -101,3 +102,8 @@ # This specifies any additional css files that will override the theme's html_css_files = ["custom.css"] + +# opengraph settings +ogp_image = "https://www.manim.community/logo.png" +ogp_site_name = "Manim Community | Documentation" +ogp_site_url = "https://docs.manim.community/"