Skip to content

Commit 13308d5

Browse files
authored
Merge pull request #1670 from hugovk/add-view-edit-buttons
Theme: add view and edit buttons
2 parents 226afc2 + e452337 commit 13308d5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
furo==2023.9.10
1+
furo==2024.8.6
22
sphinx==7.2.6
33
sphinx-autobuild==2021.3.14
44
sphinx-inline-tabs==2023.4.21

source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
html_title = "Python Packaging User Guide"
6363
html_theme = "furo"
6464

65+
html_theme_options = {
66+
"source_edit_link": "https://github.com/pypa/packaging.python.org/edit/main/source/{filename}",
67+
"source_view_link": "https://github.com/pypa/packaging.python.org/blob/main/source/{filename}?plain=true",
68+
}
69+
6570
html_favicon = "assets/py.png"
6671
html_last_updated_fmt = ""
6772

0 commit comments

Comments
 (0)