{# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #} {# This custom template differs from the standard RTD theme in the following ways: #} {# - pages can have an :autogenerated: tag that suppresses the "Edit on Github" link #} {# - disable theme_vcs_pageview_modepages setting. It was buggy for repos with git-flow branching model#} {% if page_source_suffix %} {% set suffix = page_source_suffix %} {% else %} {% set suffix = source_suffix %} {% endif %} {% if meta is defined and meta is not none %} {% set check_meta = True %} {% else %} {% set check_meta = False %} {% endif %} {% if check_meta and 'github_url' in meta %} {% set display_github = True %} {% endif %} {% if check_meta and 'autogenerated' in meta %} {% set display_github = False %} {% endif %} {% if check_meta and 'bitbucket_url' in meta %} {% set display_bitbucket = True %} {% endif %} {% if check_meta and 'autogenerated' in meta %} {% set display_bitbucket = False %} {% endif %} {% if check_meta and 'gitlab_url' in meta %} {% set display_gitlab = True %} {% endif %} {% if check_meta and 'autogenerated' in meta %} {% set display_gitlab = False %} {% endif %}
{% if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} {% endif %}