Browse Source

Fixed typo in source file linking Sphinx extension.

Michael 8 tháng trước cách đây
mục cha
commit
289f48c71b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/_ext/github_links.py

+ 1 - 1
docs/_ext/github_links.py

@@ -143,7 +143,7 @@ def github_linkcode_resolve(domain, info, *, version, next_version):
 
 
     branch = get_branch(version=version, next_version=next_version)
     branch = get_branch(version=version, next_version=next_version)
     relative_path = path.relative_to(pathlib.Path(__file__).parents[2])
     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.
     # uses the Windows path separator which is incorrect for URLs.
     url_path = "/".join(relative_path.parts)
     url_path = "/".join(relative_path.parts)
     return f"https://github.com/django/django/blob/{branch}/{url_path}#L{lineno}"
     return f"https://github.com/django/django/blob/{branch}/{url_path}#L{lineno}"