Skip to content

Commit

Permalink
Fix nav overrides for newer version of Mkdocs Material (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Jan 26, 2024
1 parent bcde07d commit bda1c8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docs/overrides/partials/nav.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% import "partials/nav-item.html" as item with context %}

<!-- Determine class according to configuration -->
{% set class = "md-nav md-nav--primary" %}
{% if "navigation.tabs" in features %}
Expand Down Expand Up @@ -35,12 +37,11 @@
</div>
{% endif %}

<!-- Render item list -->
<!-- Navigation list -->
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "__nav_" ~ loop.index %}
{% set level = 1 %}
{% include "partials/nav-item.html" %}
{{ item.render(nav_item, path, 1) }}
{% endfor %}
</ul>

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ watchgod==0.8.2

# Documentation
mkdocs==1.5.3
mkdocs-material==9.1.21
mkdocs-material==9.5.5

0 comments on commit bda1c8a

Please sign in to comment.