diff --git a/sphinx_material/sphinx_material/relbar.html b/sphinx_material/sphinx_material/relbar.html index d8b680717..281f9cc81 100644 --- a/sphinx_material/sphinx_material/relbar.html +++ b/sphinx_material/sphinx_material/relbar.html @@ -11,9 +11,11 @@ {% set localhref=pathto( item.href ) if item.internal else item.href|e %}
  • {{ item.title }}
  • {%- endfor %} - {%- for parent in parents %} -
  • {{ parent.title }}
  • - {%- endfor %} + {%- if theme_nav_bar_display_parents %} + {%- for parent in parents %} +
  • {{ parent.title }}
  • + {%- endfor %} + {%- endif %} diff --git a/sphinx_material/sphinx_material/theme.conf b/sphinx_material/sphinx_material/theme.conf index 8d4fb59cf..6fcd11fa6 100644 --- a/sphinx_material/sphinx_material/theme.conf +++ b/sphinx_material/sphinx_material/theme.conf @@ -85,6 +85,9 @@ master_doc = True # internal: Flag indicating to use pathto (bool) nav_links = +# Include links of parent documents at navigation bar +nav_bar_display_parents = True + # Text to appear at the top of the home page in a "hero" div. Must be a # dict[str, str] of the form pagename: hero text, e.g., {'index': 'text on index'} heroes =