Skip to content

Commit 692f6d3

Browse files
committed
Version 0.5.1
1 parent 781af38 commit 692f6d3

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
510
v0.5.0
611
======
712
* Fix ``css_files`` breakage from Sphinx ``1.6+`` update.

sphinx_bootstrap_theme/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Sphinx bootstrap theme."""
22
import 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__

sphinx_bootstrap_theme/bootstrap/static/bootstrap-sphinx.css_t

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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" %}
@@ -20,14 +20,14 @@
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
/*

0 commit comments

Comments
 (0)