From 84b1b7b11b98c197c20dfc4afc43623a80c898a4 Mon Sep 17 00:00:00 2001 From: Keming Date: Wed, 2 Aug 2023 01:19:21 +0800 Subject: [PATCH] chore: add doc config for og, sponsor, etc (#333) Signed-off-by: Keming --- docs/source/conf.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index c0e095a8..34ff5aaf 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -53,6 +53,20 @@ # a list of builtin themes. # html_theme = "shibuya" +html_theme_options = { + "og_image_url": "https://repository-images.githubusercontent.com/225120376/c3469400-c16d-11ea-9498-093594983a5a", + "nav_links": [ + { + "title": "Sponsor me", + "url": "https://github.com/sponsors/kemingy", + }, + ] +} +html_context = { + "source_type": "github", + "source_user": "0b01001001", + "source_repo": "spectree", +} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,