Skip to content

Commit

Permalink
Fixed typo in source file linking Sphinx extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelg100 authored Jul 1, 2024
1 parent a5215f9 commit 289f48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_ext/github_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def github_linkcode_resolve(domain, info, *, version, next_version):

branch = get_branch(version=version, next_version=next_version)
relative_path = path.relative_to(pathlib.Path(__file__).parents[2])
# Use "/" explicitely to join the path parts since str(file), on Windows,
# Use "/" explicitly to join the path parts since str(file), on Windows,
# uses the Windows path separator which is incorrect for URLs.
url_path = "/".join(relative_path.parts)
return f"https://github.com/django/django/blob/{branch}/{url_path}#L{lineno}"

0 comments on commit 289f48c

Please sign in to comment.