Skip to content

Commit 8d3b958

Browse files
authored
all: Fix deprecated extlinks syntax for Sphinx 6.0 (#797)
The old syntax no longer works on recent Sphinx versions - see sphinx-doc/sphinx#11094 Fails with: ``` Exception occurred: File "/home/max/.local/lib/python3.10/site-packages/sphinx/ext/extlinks.py", line 103, in role title = caption % part TypeError: not all arguments converted during string formatting ``` Not 100% sure if the newer syntax works on all old versions, but if this PR builds fine this should be good to go? In any case, if we ever want to upgrade the Sphinx version (we probably should at some point), this is required.
1 parent 839a6d4 commit 8d3b958

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114

115115
# Configure external links.
116116
extlinks = {
117-
'issue': ('https://github.com/syncthing/syncthing/issues/%s', 'issue #'),
118-
'user': ('https://github.com/%s', '@'),
119-
'commit': ('https://github.com/syncthing/syncthing/commit/%s', ''),
117+
'issue': ('https://github.com/syncthing/syncthing/issues/%s', 'issue #%s'),
118+
'user': ('https://github.com/%s', '@%s'),
119+
'commit': ('https://github.com/syncthing/syncthing/commit/%s', None),
120120
}
121121

122122
# -- Options for HTML output ----------------------------------------------

0 commit comments

Comments
 (0)