Skip to content

Commit 24ba620

Browse files
committed
fix: Correct default anchor
1 parent c5d9c21 commit 24ba620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sphinxnotes/any/indexers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def classify(self, objref: Value) -> list[Category]:
2424
return entries
2525

2626
def anchor(self, refval: str) -> str:
27-
return refval
27+
# https://github.com/sphinx-doc/sphinx/blob/df3d94ffdad09cc2592caccd179004e31aa63227/sphinx/themes/basic/domainindex.html#L28
28+
return 'cap-' + refval
2829

2930

3031
DEFAULT_INDEXER = LiteralIndexer()

0 commit comments

Comments
 (0)