Skip to content

Commit 3766d81

Browse files
committed
docs(conf): Fix source links for src/ layout
Follow up to #414 change
1 parent af15b08 commit 3766d81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/conf.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,18 @@ def linkcode_resolve(
217217
fn = relpath(fn, start=dirname(libtmux.__file__))
218218

219219
if "dev" in about["__version__"]:
220-
return "{}/blob/master/{}/{}{}".format(
220+
return "{}/blob/master/{}/{}/{}{}".format(
221221
about["__github__"],
222+
"src",
222223
about["__package_name__"],
223224
fn,
224225
linespec,
225226
)
226227
else:
227-
return "{}/blob/v{}/{}/{}{}".format(
228+
return "{}/blob/v{}/{}/{}/{}{}".format(
228229
about["__github__"],
229230
about["__version__"],
231+
"src",
230232
about["__package_name__"],
231233
fn,
232234
linespec,

0 commit comments

Comments
 (0)