Skip to content

Commit

Permalink
Fix nav override for newer version of Mkdocs Material (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 authored Jan 26, 2024
1 parent 433da65 commit 4355e6b
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 @@ -15,7 +15,7 @@ trio==0.24.0

# Documentation
mkdocs==1.5.3
mkdocs-material==9.1.17
mkdocs-material==9.5.5
mkautodoc==0.2.0

# Packaging
Expand Down

0 comments on commit 4355e6b

Please sign in to comment.