From d61b1b282cd06b30564494b1225cf388763eae85 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Sat, 7 Sep 2024 02:05:06 +0000 Subject: [PATCH] fix: update crossreference markup to new autorefs format --- pyproject.toml | 2 +- src/mkdocstrings_handlers/python/rendering.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c1fee6a..b584f17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ classifiers = [ "Typing :: Typed", ] dependencies = [ - "mkdocstrings>=0.19", + "mkdocstrings>=0.26", "pytkdocs>=0.14", ] diff --git a/src/mkdocstrings_handlers/python/rendering.py b/src/mkdocstrings_handlers/python/rendering.py index 694a1c8..f8ac0e9 100644 --- a/src/mkdocstrings_handlers/python/rendering.py +++ b/src/mkdocstrings_handlers/python/rendering.py @@ -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("{brief}").format(path=path, brief=brief) + return Markup("{brief}").format(path=path, brief=brief) def sort_object(obj: CollectorItem, sort_function: Callable[[CollectorItem], Any]) -> None: