mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 11:07:58 +00:00

PT-2091 Docs configuration for Render builds * Added Sphinx-material theme and customizations * Changed Makefile to use Material theme * Customized the theme * Added a separate config for render builds
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{% set toc_nodes = derender_toc(toc, True, pagename) if display_toc else [] %}
|
|
<nav class="md-nav md-nav--secondary">
|
|
{%- if display_toc and toc_nodes and sidebars and 'localtoc.html' in sidebars %}
|
|
<label class="md-nav__title" for="__toc">Contents</label>
|
|
{%- endif %}
|
|
<ul class="md-nav__list" data-md-scrollfix="">
|
|
{%- if display_toc and sidebars and 'localtoc.html' in sidebars %}
|
|
{%- for item in toc_nodes recursive %}
|
|
<li class="md-nav__item"><a href="{{ item.href|e }}" class="md-nav__link">{{ item.contents }}</a>
|
|
{%- if item.children -%}
|
|
<nav class="md-nav">
|
|
<ul class="md-nav__list">{{ loop(item.children) }}</ul>
|
|
</nav>
|
|
{%- endif %}
|
|
</li>
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
{%- if show_source %}
|
|
{% include "sourcelink.html" %}
|
|
{%- endif %}
|
|
{% if theme_repo_url|e %}
|
|
<li class="md-nav__item"><a class="md-nav__extra_link" href="{{ theme_repo_url }}/{{ edit_uri }}/{{ pagename }}.rst" target="_blank">
|
|
<i class="fa fa-github"></i> Edit this page</a> </li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|