{% macro navigation(items, depth=0, hint='') %} {% for item in items %} {% if depth == 0 and item.title in config.extra.nav_labels %}{% endif %} {% if item.children %} {% else %}{{ item.title }}{% endif %} {% endfor %} {% endmacro %} {%- set ns = namespace(top='') -%} {%- if page -%}{%- for ancestor in page.ancestors -%}{%- set ns.top = ancestor.title -%}{%- endfor -%}{%- endif -%} {%- if not ns.top and nav_section -%}{%- set ns.top = nav_section -%}{%- endif -%} {%- set layout = page.meta.layout if page and page.meta.layout else 'doc' -%} {%- if page and page.url == 'plot-types/' -%}{%- set tab = 'plots' -%} {%- elif page and (page.url == 'examples/' or ns.top == 'Gallery') -%}{%- set tab = 'gallery' -%} {%- elif page and page.url == 'api/' -%}{%- set tab = 'api' -%} {%- elif page and not page.is_homepage -%}{%- set tab = 'guides' -%} {%- else -%}{%- set tab = '' -%}{%- endif -%} {% if page and page.title and not page.is_homepage %}{{ page.title }} ยท {% endif %}Inklet documentation {% if page and page.canonical_url %}{% endif %} {% for path in config.extra_css %}{% endfor %} {% for path in config.extra_javascript %}{% endfor %}
{% block content %} {% if layout == 'home' %}{% include 'home.html' %} {% elif layout == 'gallery' %} {#- Text after an marker folds into a collapsed note so the grid starts on the first screen. -#} {%- set intro = page.content.split('', 1) -%} {% elif layout == 'section' %} {% include 'section.html' %} {% else %} {%- set has_toc = page.toc and (page.toc|first).children -%}
{% if has_toc %}
On this page
{% endif %} {{ page.content }}
{% if has_toc %}{% endif %}
{% endif %} {% endblock %}

Search documentation

Type to search guides, examples and the API.