Skip to content

Commit 23c9023

Browse files
committed
refactor: Use the new mkdocstrings_handlers namespace
1 parent e892f56 commit 23c9023

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+12
-8
lines changed

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ plugins:
7373
import:
7474
- https://mkdocstrings.github.io/objects.inv
7575
watch:
76-
- src/mkdocstrings
76+
- src/mkdocstrings_handlers
7777

7878
extra:
7979
social:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Funding = "https://github.com/sponsors/mkdocstrings"
4545

4646
[tool.pdm]
4747
version = {use_scm = true}
48-
includes = ["src/mkdocstrings"]
48+
includes = ["src/mkdocstrings_handlers"]
4949

5050
[tool.pdm.dev-dependencies]
5151
duty = ["duty>=0.7"]

scripts/fixsetup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ for python_version in ${PYTHON_VERSIONS}; do
77
rm -rf "__pypackages__/${python_version}/lib/mkdocstrings"
88
rm -f "__pypackages__/${python_version}/lib/mkdocstrings.pth"
99
cp -r ../mkdocstrings/src/mkdocstrings "__pypackages__/${python_version}/lib/"
10-
cp -r src/mkdocstrings/* "__pypackages__/${python_version}/lib/mkdocstrings"
1110
done

src/mkdocstrings/handlers/python/__init__.py renamed to src/mkdocstrings_handlers/python/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
from griffe.logger import patch_loggers
77

88
from mkdocstrings.handlers.base import BaseHandler
9-
from mkdocstrings.handlers.python.collector import PythonCollector
10-
from mkdocstrings.handlers.python.renderer import PythonRenderer
119
from mkdocstrings.inventory import Inventory
1210
from mkdocstrings.loggers import get_logger
11+
from mkdocstrings_handlers.python.collector import PythonCollector
12+
from mkdocstrings_handlers.python.renderer import PythonRenderer
1313

1414
patch_loggers(get_logger)
1515

File renamed without changes.

src/mkdocstrings/handlers/python/renderer.py renamed to src/mkdocstrings_handlers/python/renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class PythonRenderer(BaseRenderer):
5454
Attributes:
5555
fallback_theme: The theme to fallback to.
5656
default_config: The default rendering options,
57-
see [`default_config`][mkdocstrings.handlers.python.PythonRenderer.default_config].
57+
see [`default_config`][mkdocstrings_handlers.python.PythonRenderer.default_config].
5858
"""
5959

6060
fallback_theme = "material"

src/mkdocstrings/templates/python/material/_base/attribute.html renamed to src/mkdocstrings_handlers/python/templates/material/_base/attribute.html

File renamed without changes.

src/mkdocstrings/templates/python/material/_base/children.html renamed to src/mkdocstrings_handlers/python/templates/material/_base/children.html

File renamed without changes.

src/mkdocstrings/templates/python/material/_base/class.html renamed to src/mkdocstrings_handlers/python/templates/material/_base/class.html

File renamed without changes.

0 commit comments

Comments
 (0)