{% set t = config.extra.t %} {% set is_error = page is not defined or page is none or page.meta.is_404|default(false) %} {% set is_notebook = not is_error and page.file.src_path.endswith('.ipynb') %} {% set is_api_reference = not is_error and page.file.src_path.startswith('api/') and page.file.src_path != 'api/index.md' %} {% macro first_url(item) %}{% if item.url %}{{ item.url|url }}{% elif item.children %}{{ first_url(item.children[0]) }}{% else %}{{ nav.homepage.url|url }}{% endif %}{% endmacro %} {% macro toc_tree(items) %} {% endmacro %} {% macro sidebar_items(items) %} {% endmacro %} {% set description = page.meta.description|default(config.site_description) if not is_error else config.site_description %} {% if not is_error and page.canonical_url %}{% endif %} {% if not is_error and page.canonical_url %}{% endif %} {% if not is_error and page.title %}{{ page.title }} - {% endif %}{{ config.site_name }} {% for path in config.extra_css %}{% endfor %} {% if is_notebook %}{% endif %} {% block extrahead %}{% endblock %} {% set current = namespace(section='Documentation', url=nav.homepage.url|url) %} {% for nav_item in nav %}{% if nav_item.active %}{% set current.section = nav_item.title %}{% set current.url = first_url(nav_item) %}{% endif %}{% endfor %}
{% if not is_error %} {% endif %}
{% if not is_error %}
{{ current.section }} / {{ page.title }}
{% if page.toc %}
On this page{{ toc_tree(page.toc) }}
{% endif %}
{% if page.edit_url %}Edit this page {% endif %} {% if page.meta.git_revision_date_localized %}Updated {{ page.meta.git_revision_date_localized }}{% endif %}
{% endif %}
{% block content %}{{ page.content }}{% endblock %}
{% if not is_error %} {% endif %}
{% if not is_error and page.toc %} {% endif %}
{% if is_notebook %}{% endif %} {% block extrascripts %}{% endblock %}