Skip to content

Commit b3406d6

Browse files
committed
Minor changes
1 parent f1998ed commit b3406d6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

doc/source/conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def linkcode_resolve(domain, info):
9191
start=Path(skillsnetwork.__file__).parent,
9292
)
9393
source, lineno = getsourcelines(obj)
94-
filename = f"skillsnetwork/{fn}#L{lineno}-L{lineno + len(source) - 1}"
94+
fpath = f"skillsnetwork/{fn}#L{lineno}-L{lineno + len(source) - 1}"
9595
except Exception as e:
9696
return None
9797
import subprocess
@@ -101,7 +101,4 @@ def linkcode_resolve(domain, info):
101101
stdout=subprocess.PIPE,
102102
universal_newlines=True,
103103
).communicate()[0][:-1]
104-
return (
105-
"https://github.com/ibm-skills-network/skillsnetwork-python-library/blob/%s/%s"
106-
% (commit_hash, filename)
107-
)
104+
return f"https://github.com/ibm-skills-network/skillsnetwork-python-library/blob/{commit_hash}/{fpath}"

0 commit comments

Comments
 (0)