Skip to content

Commit bda1c8a

Browse files
authored
Fix nav overrides for newer version of Mkdocs Material (#2233)
1 parent bcde07d commit bda1c8a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/overrides/partials/nav.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{% import "partials/nav-item.html" as item with context %}
2+
13
<!-- Determine class according to configuration -->
24
{% set class = "md-nav md-nav--primary" %}
35
{% if "navigation.tabs" in features %}
@@ -35,12 +37,11 @@
3537
</div>
3638
{% endif %}
3739

38-
<!-- Render item list -->
40+
<!-- Navigation list -->
3941
<ul class="md-nav__list" data-md-scrollfix>
4042
{% for nav_item in nav %}
4143
{% set path = "__nav_" ~ loop.index %}
42-
{% set level = 1 %}
43-
{% include "partials/nav-item.html" %}
44+
{{ item.render(nav_item, path, 1) }}
4445
{% endfor %}
4546
</ul>
4647

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ watchgod==0.8.2
2929

3030
# Documentation
3131
mkdocs==1.5.3
32-
mkdocs-material==9.1.21
32+
mkdocs-material==9.5.5

0 commit comments

Comments
 (0)