{# Derived from sphinx rtd theme :copyright: Copyright (c) 2013-2018 Dave Snider, Read the Docs, Inc. & contributors :license: MIT, see https://github.com/readthedocs/sphinx_rtd_theme/blob/master/LICENSE for details. #} {# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #} {% 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 'bitbucket_url' in meta %} {% set display_bitbucket = True %} {% endif %} {% if check_meta and 'gitlab_url' in meta %} {% set display_gitlab = True %} {% endif %} {% set theme_asset_url = theme_asset_url | default(pathto('_static/',1 )) %}