File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 22 History
33=========
44
5+ v0.5.1
6+ ======
7+ * Fix `@import url() ` CSS imports to be relative paths so that you can have a
8+ non-root / nested site.
9+
510v0.5.0
611======
712* Fix ``css_files `` breakage from Sphinx ``1.6+ `` update.
Original file line number Diff line number Diff line change 11"""Sphinx bootstrap theme."""
22import os
33
4- VERSION = (0 , 5 , 0 )
4+ VERSION = (0 , 5 , 1 )
55
66__version__ = "." .join (str (v ) for v in VERSION )
77__version_full__ = __version__
Original file line number Diff line number Diff line change 99 * Imports to aggregate everything together.
1010 */
1111
12- @import url("basic.css");
12+ @import url("./ basic.css");
1313
1414{% if theme_bootstrap_version == "3" %}
1515 {% set bootstrap_version, bootstrap_additional_css = "3.3.6", "theme" %}
2020{% if theme_bootswatch_theme and theme_bootswatch_theme != "\"\"" %}
2121 {# BS2 needs "bootstrap-responsive.css". BS3 doesn't. #}
2222 {% if theme_bootstrap_version == "3" %}
23- @import url("{{ 'bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css' }}");
23+ @import url("{{ './ bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css' }}");
2424 {% else %}
25- @import url("{{ 'bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css' }}");
26- @import url("{{ 'bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css' }}");
25+ @import url("{{ './ bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css' }}");
26+ @import url("{{ './ bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css' }}");
2727 {% endif %}
2828{% else %}
29- @import url("{{ 'bootstrap-' + bootstrap_version + '/css/bootstrap.min.css' }}");
30- @import url("{{ 'bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css' }}");
29+ @import url("{{ './ bootstrap-' + bootstrap_version + '/css/bootstrap.min.css' }}");
30+ @import url("{{ './ bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css' }}");
3131{% endif %}
3232
3333/*
You can’t perform that action at this time.
0 commit comments