documentation/extensions/odoo_theme/layout_templates/menu.html
Antoine Vandevenne (anv) 673777a48c add accordion logic to menu
2021-02-19 14:01:26 +01:00

12 lines
644 B
HTML

{# Global TOC of the doc #}
{#
See: https://www.sphinx-doc.org/en/master/templating.html#toctree
collapse: Whether only menu items included in the breadcrumb should be rendered
title_only: Whether menu items for content pages (without toctree) should be hidden
includehidden: Whether menu items of pages inside a hidden toctree should be rendered
#}
{#
`collapse_menu` is passed directly to Jinja with sphinx-build's option `-A collapse_menu=True`.
It it evaluated as a string, so what we're really evaluating here is `collapse_menu != None`.
#}
{{ toctree(collapse=collapse_menu, titles_only=True, includehidden=True)}}