Skip to content

Commit dbe36d5

Browse files
committed
Remove macros script from templates
We now use the *pluglet* for templates too. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent bd5a72c commit dbe36d5

File tree

17 files changed

+12
-503
lines changed

17 files changed

+12
-503
lines changed

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

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

cookiecutter/{{cookiecutter.github_repo_name}}/mkdocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,9 @@ plugins:
129129
{%- endif %}
130130
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
131131
# Note this plugin must be loaded after mkdocstrings to be able to use macros
132-
# inside docstrings. See the comment in `docs/_scripts/macros.py` for more
133-
# details
132+
# inside docstrings.
134133
- macros:
135-
module_name: docs/_scripts/macros
134+
modules: ["frequenz.repo.config.mkdocs.mkdocstrings_macros"]
136135
on_undefined: strict
137136
on_error_fail: true
138137
- search

tests_golden/integration/test_cookiecutter_generation/actor/cookiecutter-stdout.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
./CODEOWNERS:# TODO(cookiecutter): Add more specific code-owners, check if the default is correct
1313
./CODEOWNERS:* TODO(cookiecutter): Add codeowners (like @{github_org}/some-team)# Temporary, should probably change
1414
./README.md:TODO(cookiecutter): Improve the README file
15-
./docs/_scripts/macros.py: # TODO(cookiecutter): Add any other macros, variables and filters here.
1615
./mkdocs.yml: # TODO(cookiecutter): You might want to add other external references here
1716
./mkdocs.yml: # TODO(cookiecutter): You might want to change the logo, the file is located in "docs/"
1817
./mkdocs.yml: # TODO(cookiecutter): You probably want to update the social links

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

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

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/mkdocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ plugins:
124124
- https://frequenz-floss.github.io/frequenz-sdk-python/v1.0-pre/objects.inv
125125
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
126126
# Note this plugin must be loaded after mkdocstrings to be able to use macros
127-
# inside docstrings. See the comment in `docs/_scripts/macros.py` for more
128-
# details
127+
# inside docstrings.
129128
- macros:
130-
module_name: docs/_scripts/macros
129+
modules: ["frequenz.repo.config.mkdocs.mkdocstrings_macros"]
131130
on_undefined: strict
132131
on_error_fail: true
133132
- search

tests_golden/integration/test_cookiecutter_generation/api/cookiecutter-stdout.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
./.github/workflows/release-notes-check.yml: # TODO(cookiecutter): Uncomment the following line for private repositories, otherwise remove it
1313
./CODEOWNERS:# TODO(cookiecutter): Add more specific code-owners, check if the default is correct
1414
./README.md:TODO(cookiecutter): Improve the README file
15-
./docs/_scripts/macros.py: # TODO(cookiecutter): Add any other macros, variables and filters here.
1615
./mkdocs.yml: # TODO(cookiecutter): You might want to add other external references here
1716
./mkdocs.yml: # TODO(cookiecutter): You might want to change the logo, the file is located in "docs/"
1817
./mkdocs.yml: # TODO(cookiecutter): You probably want to update the social links

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

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

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/mkdocs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ plugins:
124124
- https://grpc.github.io/grpc/python/objects.inv
125125
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
126126
# Note this plugin must be loaded after mkdocstrings to be able to use macros
127-
# inside docstrings. See the comment in `docs/_scripts/macros.py` for more
128-
# details
127+
# inside docstrings.
129128
- macros:
130-
module_name: docs/_scripts/macros
129+
modules: ["frequenz.repo.config.mkdocs.mkdocstrings_macros"]
131130
on_undefined: strict
132131
on_error_fail: true
133132
- search

tests_golden/integration/test_cookiecutter_generation/app/cookiecutter-stdout.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
./.github/workflows/release-notes-check.yml: # TODO(cookiecutter): Uncomment the following line for private repositories, otherwise remove it
1212
./CODEOWNERS:# TODO(cookiecutter): Add more specific code-owners, check if the default is correct
1313
./README.md:TODO(cookiecutter): Improve the README file
14-
./docs/_scripts/macros.py: # TODO(cookiecutter): Add any other macros, variables and filters here.
1514
./mkdocs.yml: # TODO(cookiecutter): You might want to add other external references here
1615
./mkdocs.yml: # TODO(cookiecutter): You might want to change the logo, the file is located in "docs/"
1716
./mkdocs.yml: # TODO(cookiecutter): You probably want to update the social links

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

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

0 commit comments

Comments
 (0)