Skip to content

Commit 3bd89ce

Browse files
authored
fix(docs): properly resolve source links (#40)
1 parent 9126b91 commit 3bd89ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: docs/source/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def linkcode_resolve(
6161
return None
6262

6363
path = f"{path}#L{lineno}-L{lineno + len(src) - 1}"
64-
return f"{repo_url}/blob/{git_ref}/src/disnake/ext/components/{path}"
64+
return f"{repo_url}/blob/{git_ref}/src/disnake_compass/{path}"
6565

6666
return linkcode_resolve
6767

Diff for: pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,4 @@ precommit = "pre-commit install --install-hooks"
143143
lint = "pre-commit run --all-files"
144144
ruff = "task lint ruff"
145145
slotscheck = "task lint slotscheck"
146+
docs = "sphinx-autobuild ./docs/source ./docs/build/html"

0 commit comments

Comments
 (0)