{%- set url_root = pathto('', 1) %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if current_version == 'latest' %} {% set github_tag = 'master' %} {% else %} {% set github_tag = current_version %} {% endif %} {%- set css_files = css_files + ['_static/css/bootstrap.css'] %} {%- set css_files = css_files + ['_static/pygments.css'] %} {%- set css_files = css_files + ['_static/css/main.css'] %} {%- set script_files = ['//code.jquery.com/jquery-1.10.1.min.js'] + ['//fonts.googleapis.com/css?family=Cabin:400,700,400italic'] %} {# This part is hopefully complex because things like |cut '/index/' are not available in Sphinx jinja and will make it crash. (and we need index/ out. #} {%- for cssfile in css_files %} {%- endfor %} {%- for scriptfile in script_files if scriptfile != '_static/jquery.js' %} {%- endfor %} {%- block extrahead %}{% endblock %}