Skip to content

Commit f6b80b9

Browse files
committed
Replace section-indexes with navigation.indexes
Use the native `navigation.indexes` extension from `mkdocs-material` instead of the `section-indexes` plugin because the plugin had some issues when failing to keep up to date. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 4e8d9d0 commit f6b80b9

File tree

15 files changed

+10
-14
lines changed

15 files changed

+10
-14
lines changed

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88

99
- Update the generated version in dependencies.
1010
- Exclude `benchmarks/` directory from source distribution.
11+
- Use the native `navigation.indexes` extension from `mkdocs-material` instead of the `section-indexes` plugin.
12+
13+
The plugin had some issues when failing to keep up to date.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ theme:
2727
features:
2828
- content.code.annotate
2929
- content.code.copy
30+
- navigation.indexes
3031
- navigation.instant
3132
- navigation.tabs
3233
- navigation.top
@@ -119,7 +120,6 @@ plugins:
119120
{%- endif %}
120121
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
121122
- search
122-
- section-index
123123

124124
# Preview controls
125125
watch:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ dev-mkdocs = [
7373
"mkdocs-gen-files == 0.5.0",
7474
"mkdocs-literate-nav == 0.6.0",
7575
"mkdocs-material == 9.1.21",
76-
"mkdocs-section-index == 0.3.5",
7776
"mkdocstrings[python] == 0.22.0",
7877
"frequenz-repo-config[{{cookiecutter.type}}] == 0.6.2",
7978
]

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ theme:
2424
features:
2525
- content.code.annotate
2626
- content.code.copy
27+
- navigation.indexes
2728
- navigation.instant
2829
- navigation.tabs
2930
- navigation.top
@@ -112,7 +113,6 @@ plugins:
112113
- https://sybil.readthedocs.io/en/stable/objects.inv
113114
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
114115
- search
115-
- section-index
116116

117117
# Preview controls
118118
watch:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ dev-mkdocs = [
7474
"mkdocs-gen-files == 0.5.0",
7575
"mkdocs-literate-nav == 0.6.0",
7676
"mkdocs-material == 9.1.21",
77-
"mkdocs-section-index == 0.3.5",
7877
"mkdocstrings[python] == 0.22.0",
7978
]
8079
dev-mypy = [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ theme:
2727
features:
2828
- content.code.annotate
2929
- content.code.copy
30+
- navigation.indexes
3031
- navigation.instant
3132
- navigation.tabs
3233
- navigation.top
@@ -114,7 +115,6 @@ plugins:
114115
- https://frequenz-floss.github.io/frequenz-sdk-python/v0.22/objects.inv
115116
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
116117
- search
117-
- section-index
118118

119119
# Preview controls
120120
watch:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ dev-mkdocs = [
5555
"mkdocs-gen-files == 0.5.0",
5656
"mkdocs-literate-nav == 0.6.0",
5757
"mkdocs-material == 9.1.21",
58-
"mkdocs-section-index == 0.3.5",
5958
"mkdocstrings[python] == 0.22.0",
6059
"frequenz-repo-config[actor] == 0.6.2",
6160
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ theme:
2727
features:
2828
- content.code.annotate
2929
- content.code.copy
30+
- navigation.indexes
3031
- navigation.instant
3132
- navigation.tabs
3233
- navigation.top
@@ -114,7 +115,6 @@ plugins:
114115
- https://grpc.github.io/grpc/python/objects.inv
115116
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
116117
- search
117-
- section-index
118118

119119
# Preview controls
120120
watch:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ dev-mkdocs = [
5353
"mkdocs-gen-files == 0.5.0",
5454
"mkdocs-literate-nav == 0.6.0",
5555
"mkdocs-material == 9.1.21",
56-
"mkdocs-section-index == 0.3.5",
5756
"mkdocstrings[python] == 0.22.0",
5857
"frequenz-repo-config[api] == 0.6.2",
5958
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ theme:
2727
features:
2828
- content.code.annotate
2929
- content.code.copy
30+
- navigation.indexes
3031
- navigation.instant
3132
- navigation.tabs
3233
- navigation.top
@@ -114,7 +115,6 @@ plugins:
114115
- https://frequenz-floss.github.io/frequenz-sdk-python/v0.22/objects.inv
115116
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
116117
- search
117-
- section-index
118118

119119
# Preview controls
120120
watch:

0 commit comments

Comments
 (0)