mkdocstrings-python-xref-2.1.1
توضیحات
Enhanced mkdocstrings python handler
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | mkdocstrings-python-xref-2.1.1 |
| نام | mkdocstrings-python-xref |
| نسخه کتابخانه | 2.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Christopher Barber <Christopher.Barber@analog.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/mkdocstrings-python-xref/ |
| مجوز | - |
# mkdocstrings-python-xref
Python handler for [mkdocstrings] supporting relative cross-references.
[](https://pypi.org/project/mkdocstrings-python-xref/)
[](https://anaconda.org/conda-forge/whl2conda)
[](https://analog-garage.github.io/mkdocstrings-python-xref/)


[](https://github.com/analog-garage/mkdocstrings-python-xref/actions/workflows/main.yml)

[mkdocstrings] is an awesome plugin for [MkDocs] that can generate Markdown API documentation
from comments in code. The standard [python handler][mkdocstrings-python] allows you to
create cross-reference links using the syntax `[<title>][<path>]` where the path must
either be the fully qualified name of the referent or is empty, in which case the path
is taken from the title. This works well when the names are short, but can be burdensome
in larger codebases with deeply nested package structures.
This package extends [mkdocstrings-python] to support a relative cross-reference syntax,
that allows you to write doc-strings with cross-references like:
```python
class MyClass:
def this_method(self):
"""
See [other_method][..] from [MyClass][(c)]
"""
```
rather than:
```python
class MyClass:
def this_method(self):
"""
See [other_method][mypkg.mymod.MyClass.other_method]
from [MyClass][mypkg.mymod.Myclass]
"""
```
Another benefit of this extension is that it will report source locations for bad references
so that errors are easier to find and fix. For example:
```bash
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/jdoe/my-project/site
WARNING - mkdocstrings_handlers: file:///home/jdoe/my-project/src/myproj/bar.py:16:
Cannot load reference 'myproj.bar.bad'
```
For further details, please see the [Documentation](https://analog-garage.github.io/mkdocstrings-python-xref/)
[MkDocs]: https://mkdocs.readthedocs.io/
[mkdocstrings]: https://github.com/mkdocstrings/mkdocstrings
[mkdocstrings-python]: https://github.com/mkdocstrings/python
نیازمندی
| مقدار | نام |
|---|---|
| - | griffe>=1.0 |
| - | mkdocstrings-python>=2.0 |
| - | mkdocstrings>=1.0 |
| xtr | beautifulsoup4>=4.12; |
| xtr | black>=23.12; |
| xtr | build>=1.0.0; |
| xtr | coverage>=7.4.0; |
| xtr | hatchling>=1.21; |
| xtr | linkchecker>=10.4; |
| xtr | mike>=1.1; |
| xtr | mkdocs-material>=9.5.4; |
| xtr | mkdocs<2.0,>=1.5.3; |
| xtr | mypy>=1.10; |
| xtr | pip>=25.0; |
| xtr | pytest-cov>=5.0; |
| xtr | pytest>=8.2; |
| xtr | ruff>=0.4.10; |
| xtr | whl2conda>=25.3; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl mkdocstrings-python-xref-2.1.1:
pip install mkdocstrings-python-xref-2.1.1.whl
نصب پکیج tar.gz mkdocstrings-python-xref-2.1.1:
pip install mkdocstrings-python-xref-2.1.1.tar.gz