Skip to content

Commit

Permalink
fix: update crossreference markup to new autorefs format
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoettle committed Sep 7, 2024
1 parent c8aacd7 commit d61b1b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"mkdocstrings>=0.19",
"mkdocstrings>=0.26",
"pytkdocs>=0.14",
]

Expand Down
2 changes: 1 addition & 1 deletion src/mkdocstrings_handlers/python/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def do_brief_xref(path: str) -> Markup:
A span containing the brief cross-reference and the full one on hover.
"""
brief = path.split(".")[-1]
return Markup("<span data-autorefs-optional-hover={path}>{brief}</span>").format(path=path, brief=brief)
return Markup("<autoref identifier={path} optional hover>{brief}</autoref>").format(path=path, brief=brief)


def sort_object(obj: CollectorItem, sort_function: Callable[[CollectorItem], Any]) -> None:
Expand Down

0 comments on commit d61b1b2

Please sign in to comment.