From e45233770ba92fb1eff6bd4fee1baeca601f3686 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:14:07 +0200 Subject: [PATCH] Add view and edit buttons --- requirements.txt | 2 +- source/conf.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 077adb580..a3269a025 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -furo==2023.9.10 +furo==2024.8.6 sphinx==7.2.6 sphinx-autobuild==2021.3.14 sphinx-inline-tabs==2023.4.21 diff --git a/source/conf.py b/source/conf.py index ab14e315a..f08f6e836 100644 --- a/source/conf.py +++ b/source/conf.py @@ -62,6 +62,11 @@ html_title = "Python Packaging User Guide" html_theme = "furo" +html_theme_options = { + "source_edit_link": "https://github.com/pypa/packaging.python.org/edit/main/source/{filename}", + "source_view_link": "https://github.com/pypa/packaging.python.org/blob/main/source/{filename}?plain=true", +} + html_favicon = "assets/py.png" html_last_updated_fmt = ""