{# create one link per each toctree from master_doc #} {% if toctree_data|length > 1 %} {% for tree in toctree_data %} {% endfor %} {% endif %}