Skip to content

Commit 9c911ea

Browse files
Document difference with standard handler (#57)
1 parent bc12cf4 commit 9c911ea

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ fully qualified or is empty, in which case it is taken from the title.
55
If you work with long package and class names or with namespace packages, this can result in a lot
66
of extra typing and harder to read doc-strings.
77

8+
9+
!!! note "Difference with mkdocstrings-python"
10+
11+
[mkdoctrings-python release 1.19](https://github.com/mkdocstrings/python/releases/tag/1.19.0)
12+
introduced support for relative (and also scoped) cross-references, but does not
13+
support the full range of relative syntax supported by this handler. Specifically,
14+
the standard handler only supports the leading `.` syntax described here.
15+
816
If you enable the `relative_crossrefs` option in the `python_xref` handler options
917
in your mkdocs.yml file ([see configuration](config.md) for an example), then the handler
1018
will support more compact relative syntax:

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ markdown_extensions:
5454
- admonition
5555
- pymdownx.snippets:
5656
check_paths: true
57+
- pymdownx.details
5758
- pymdownx.superfences
5859
- pymdownx.tabbed:
5960
alternate_style: true

0 commit comments

Comments
 (0)