Skip to content

Commit e2d74ef

Browse files
authored
refactor: Use the autorefs plugin from its new external location
PR #235: #235
1 parent 195ceec commit e2d74ef

8 files changed

Lines changed: 6 additions & 544 deletions

File tree

config/coverage.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
[coverage:paths]
22
source =
33
src/mkdocstrings
4-
src/mkdocs_autorefs
54
*/site-packages/mkdocstrings
6-
*/site-packages/mkdocs_autorefs
75

86
[coverage:run]
97
branch = true
108
source =
119
src/mkdocstrings
12-
src/mkdocs_autorefs
1310
tests
1411
parallel = true
1512

duties.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from git_changelog.build import Changelog, Version
1212
from jinja2.sandbox import SandboxedEnvironment
1313

14-
PY_SRC_LIST = ("src/mkdocstrings", "src/mkdocs_autorefs", "tests", "duties.py", "docs/macros.py")
14+
PY_SRC_LIST = ("src/mkdocstrings", "tests", "duties.py", "docs/macros.py")
1515
PY_SRC = " ".join(PY_SRC_LIST)
1616
TESTING = os.environ.get("TESTING", "0") in {"1", "true"}
1717
CI = os.environ.get("CI", "0") in {"1", "true", "yes", ""}
@@ -214,8 +214,7 @@ def check_types(ctx):
214214
Arguments:
215215
ctx: The context instance (passed automatically).
216216
"""
217-
for f in PY_SRC_LIST:
218-
ctx.run(f"mypy --config-file config/mypy.ini {f}", title="Type-checking", pty=PTY, progress=True)
217+
ctx.run(f"mypy --config-file config/mypy.ini {PY_SRC}", title="Type-checking", pty=PTY, progress=True)
219218

220219

221220
@duty(silent=True)

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ readme = "README.md"
1212
repository = "https://github.com/mkdocstrings/mkdocstrings"
1313
homepage = "https://github.com/mkdocstrings/mkdocstrings"
1414
keywords = ["mkdocs", "mkdocs-plugin", "docstrings", "autodoc", "documentation"]
15-
packages = [
16-
{ include = "mkdocstrings", from = "src" },
17-
{ include = "mkdocs_autorefs", from = "src" }
18-
]
15+
packages = [ { include = "mkdocstrings", from = "src" } ]
1916
include = [
2017
"README.md",
2118
"pyproject.toml"
@@ -27,6 +24,7 @@ Jinja2 = "^2.11"
2724
Markdown = "^3.3"
2825
MarkupSafe = "^1.1"
2926
mkdocs = "^1.1"
27+
mkdocs-autorefs = "^0.1"
3028
pymdown-extensions = ">=6.3, <9.0"
3129
pytkdocs = ">=0.2.0, <0.11.0"
3230

@@ -65,7 +63,6 @@ pep8-naming = "^0.11.1"
6563

6664
[tool.poetry.plugins."mkdocs.plugins"]
6765
mkdocstrings = "mkdocstrings.plugin:MkdocstringsPlugin"
68-
autorefs = "mkdocs_autorefs.plugin:AutorefsPlugin"
6966

7067
[tool.black]
7168
line-length = 120

src/mkdocs_autorefs/plugin.py

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)