Skip to content

Commit d074732

Browse files
committed
Fix the code to work with mkdocstrings 0.28
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 86c7d09 commit d074732

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/docs/_scripts/macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
4747
update_env = python_handler.update_env
4848

4949
# override the `update_env` method of the Python handler
50-
def patched_update_env(markdown: md.Markdown, config: dict[str, Any]) -> None:
51-
update_env(markdown, config)
50+
def patched_update_env(md: md.Markdown, config: dict[str, Any]) -> None:
51+
update_env(md=md, config=config)
5252

5353
# get the `convert_markdown` filter of the env
5454
convert_markdown = python_handler.env.filters["convert_markdown"]

cookiecutter/{{cookiecutter.github_repo_name}}/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ dev-mkdocs = [
9999
"mkdocs-literate-nav == 0.6.1",
100100
"mkdocs-macros-plugin == 1.3.7",
101101
"mkdocs-material == 9.5.45",
102-
"mkdocstrings[python] == 0.27.0",
103-
"mkdocstrings-python == 1.12.2",
102+
"mkdocstrings[python] == 0.28.0",
103+
"mkdocstrings-python == 1.14.0",
104104
"frequenz-repo-config[{{cookiecutter.type}}] == 0.11.0",
105105
]
106106
dev-mypy = [

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/docs/_scripts/macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
4747
update_env = python_handler.update_env
4848

4949
# override the `update_env` method of the Python handler
50-
def patched_update_env(markdown: md.Markdown, config: dict[str, Any]) -> None:
51-
update_env(markdown, config)
50+
def patched_update_env(md: md.Markdown, config: dict[str, Any]) -> None:
51+
update_env(md=md, config=config)
5252

5353
# get the `convert_markdown` filter of the env
5454
convert_markdown = python_handler.env.filters["convert_markdown"]

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ dev-mkdocs = [
5858
"mkdocs-literate-nav == 0.6.1",
5959
"mkdocs-macros-plugin == 1.3.7",
6060
"mkdocs-material == 9.5.45",
61-
"mkdocstrings[python] == 0.27.0",
62-
"mkdocstrings-python == 1.12.2",
61+
"mkdocstrings[python] == 0.28.0",
62+
"mkdocstrings-python == 1.14.0",
6363
"frequenz-repo-config[actor] == 0.11.0",
6464
]
6565
dev-mypy = [

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/docs/_scripts/macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
4747
update_env = python_handler.update_env
4848

4949
# override the `update_env` method of the Python handler
50-
def patched_update_env(markdown: md.Markdown, config: dict[str, Any]) -> None:
51-
update_env(markdown, config)
50+
def patched_update_env(md: md.Markdown, config: dict[str, Any]) -> None:
51+
update_env(md=md, config=config)
5252

5353
# get the `convert_markdown` filter of the env
5454
convert_markdown = python_handler.env.filters["convert_markdown"]

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ dev-mkdocs = [
6969
"mkdocs-literate-nav == 0.6.1",
7070
"mkdocs-macros-plugin == 1.3.7",
7171
"mkdocs-material == 9.5.45",
72-
"mkdocstrings[python] == 0.27.0",
73-
"mkdocstrings-python == 1.12.2",
72+
"mkdocstrings[python] == 0.28.0",
73+
"mkdocstrings-python == 1.14.0",
7474
"frequenz-repo-config[api] == 0.11.0",
7575
]
7676
dev-mypy = [

tests_golden/integration/test_cookiecutter_generation/app/frequenz-app-test/docs/_scripts/macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
4747
update_env = python_handler.update_env
4848

4949
# override the `update_env` method of the Python handler
50-
def patched_update_env(markdown: md.Markdown, config: dict[str, Any]) -> None:
51-
update_env(markdown, config)
50+
def patched_update_env(md: md.Markdown, config: dict[str, Any]) -> None:
51+
update_env(md=md, config=config)
5252

5353
# get the `convert_markdown` filter of the env
5454
convert_markdown = python_handler.env.filters["convert_markdown"]

tests_golden/integration/test_cookiecutter_generation/app/frequenz-app-test/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ dev-mkdocs = [
5757
"mkdocs-literate-nav == 0.6.1",
5858
"mkdocs-macros-plugin == 1.3.7",
5959
"mkdocs-material == 9.5.45",
60-
"mkdocstrings[python] == 0.27.0",
61-
"mkdocstrings-python == 1.12.2",
60+
"mkdocstrings[python] == 0.28.0",
61+
"mkdocstrings-python == 1.14.0",
6262
"frequenz-repo-config[app] == 0.11.0",
6363
]
6464
dev-mypy = [

tests_golden/integration/test_cookiecutter_generation/lib/frequenz-test-python/docs/_scripts/macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
4747
update_env = python_handler.update_env
4848

4949
# override the `update_env` method of the Python handler
50-
def patched_update_env(markdown: md.Markdown, config: dict[str, Any]) -> None:
51-
update_env(markdown, config)
50+
def patched_update_env(md: md.Markdown, config: dict[str, Any]) -> None:
51+
update_env(md=md, config=config)
5252

5353
# get the `convert_markdown` filter of the env
5454
convert_markdown = python_handler.env.filters["convert_markdown"]

tests_golden/integration/test_cookiecutter_generation/lib/frequenz-test-python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ dev-mkdocs = [
5454
"mkdocs-literate-nav == 0.6.1",
5555
"mkdocs-macros-plugin == 1.3.7",
5656
"mkdocs-material == 9.5.45",
57-
"mkdocstrings[python] == 0.27.0",
58-
"mkdocstrings-python == 1.12.2",
57+
"mkdocstrings[python] == 0.28.0",
58+
"mkdocstrings-python == 1.14.0",
5959
"frequenz-repo-config[lib] == 0.11.0",
6060
]
6161
dev-mypy = [

0 commit comments

Comments
 (0)