From 2da75006adccbc0ae5e8e4ab632e7e7735b3ee0c Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Wed, 20 Aug 2025 10:15:58 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9A=20Add=20repo=20link=20to=20doc?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/conf.py b/docs/conf.py index c2e7693..110c7ef 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -63,6 +63,7 @@ "light_logo": "sphinx-codelinks-logo_light.svg", "dark_logo": "sphinx-codelinks-logo_dark.svg", } +html_context = {"repository": "useblocks/sphinx-codelinks"} html_css_files = ["furo.css"] src_trace_config_from_toml = "./src_trace.toml" From 5b2eb0664da1b4a1d8e0f2f811dae2c47b22e3eb Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Wed, 20 Aug 2025 10:21:57 +0200 Subject: [PATCH 2/2] Added template --- docs/conf.py | 13 +++++++ .../_static/_templates/furo/side-github.html | 37 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 docs/source/_static/_templates/furo/side-github.html diff --git a/docs/conf.py b/docs/conf.py index 110c7ef..a70fc08 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -63,6 +63,19 @@ "light_logo": "sphinx-codelinks-logo_light.svg", "dark_logo": "sphinx-codelinks-logo_dark.svg", } +templates_path = ["source/_static/_templates/furo"] +html_sidebars = { + "**": [ + "sidebar/brand.html", + "sidebar/search.html", + "sidebar/scroll-start.html", + "sidebar/navigation.html", + "sidebar/ethical-ads.html", + "sidebar/scroll-end.html", + "side-github.html", + "sidebar/variant-selector.html", + ] +} html_context = {"repository": "useblocks/sphinx-codelinks"} html_css_files = ["furo.css"] diff --git a/docs/source/_static/_templates/furo/side-github.html b/docs/source/_static/_templates/furo/side-github.html new file mode 100644 index 0000000..abdbca7 --- /dev/null +++ b/docs/source/_static/_templates/furo/side-github.html @@ -0,0 +1,37 @@ + + + + + + {{ repository }} + + + + + {{ version }} + + +