don't load css twice on rtd, comment coloring in pygments

This commit is contained in:
Dave Snider 2013-10-28 12:24:21 -07:00
parent ac85dfb48c
commit 90f76bc3ea
2 changed files with 8 additions and 2 deletions

View File

@ -24,7 +24,13 @@
{# CSS #} {# CSS #}
<link href='http://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
{# RTD hosts this file themselves, only load for non RTD builds #}
{% if not READTHEDOCS %}
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /> <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
{% endif %}
{% for cssfile in css_files %} {% for cssfile in css_files %}
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" /> <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
{% endfor %} {% endfor %}

File diff suppressed because one or more lines are too long