Skip to content

Commit 8b87a46

Browse files
committed
Update to sphinx-bootstrap-theme-0.6.5
1 parent e0386fd commit 8b87a46

File tree

72 files changed

+5653
-3571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+5653
-3571
lines changed

themes/bootstrap/layout.html

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,13 @@
11
{% extends "basic/layout.html" %}
22

3-
{% set theme_css_files = [] %}
43
{% if theme_bootstrap_version == "3" %}
5-
{% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.1.0", "theme", "" %}
4+
{% set bootstrap_version, navbar_version = "3.3.7", "" %}
65
{% set bs_span_prefix = "col-md-" %}
76
{% else %}
8-
{% set bootstrap_version, bootstrap_additional_css, navbar_version = "2.3.2", "responsive", "-2" %}
7+
{% set bootstrap_version, navbar_version = "2.3.2", "-2" %}
98
{% set bs_span_prefix = "span" %}
109
{% endif %}
1110

12-
{% if theme_bootswatch_theme %}
13-
{# BS2 needs "bootstrap-responsive.css". BS3 doesn't. #}
14-
{% if theme_bootstrap_version == "3" %}
15-
{% set theme_css_files = theme_css_files + [
16-
'_static/bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css',
17-
'_static/bootstrap-sphinx.css'
18-
]
19-
%}
20-
{% else %}
21-
{% set theme_css_files = theme_css_files + [
22-
'_static/bootswatch-' + bootstrap_version + '/' + theme_bootswatch_theme + '/bootstrap.min.css',
23-
'_static/bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css',
24-
'_static/bootstrap-sphinx.css'
25-
]
26-
%}
27-
{% endif %}
28-
{% else %}
29-
{% set theme_css_files = theme_css_files + [
30-
'_static/bootstrap-' + bootstrap_version + '/css/bootstrap.min.css',
31-
'_static/bootstrap-' + bootstrap_version + '/css/bootstrap-' + bootstrap_additional_css + '.min.css',
32-
'_static/bootstrap-sphinx.css'
33-
]
34-
%}
35-
{% endif %}
36-
37-
{% if not bootswatch_css_custom %}
38-
{% set bootswatch_css_custom = [] %}
39-
{% endif %}
40-
{% set css_files = css_files + theme_css_files + bootswatch_css_custom %}
41-
4211
{% set script_files = script_files + [
4312
'_static/js/jquery-1.11.0.min.js',
4413
'_static/js/jquery-fix.js',
@@ -104,7 +73,7 @@
10473
<div class="container">
10574
<div class="row">
10675
{%- block sidebar1 %}{{ bsidebar() }}{% endblock %}
107-
<div class="{{ bs_span_prefix }}{{ bs_content_width }}">
76+
<div class="{{ bs_span_prefix }}{{ bs_content_width }} content">
10877
{% block body %}{% endblock %}
10978
</div>
11079
{% block sidebar2 %} {# possible location for sidebar #} {% endblock %}
@@ -134,7 +103,7 @@
134103
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/>
135104
{%- endif %}
136105
{%- if show_sphinx %}
137-
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
106+
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
138107
{%- endif %}
139108
</p>
140109
</div>

themes/bootstrap/navbar-2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="navbar" class="{{ theme_navbar_class }} {% if theme_navbar_fixed_top == 'true' -%} navbar-fixed-top{%- endif -%}">
1+
<div id="navbar" class="{{ theme_navbar_class }} {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
22
<div class="navbar-inner">
33
<div class="container">
44
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->

themes/bootstrap/navbar.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top == 'true' -%} navbar-fixed-top{%- endif -%}">
1+
<div id="navbar" class="{{ theme_navbar_class }} navbar-default {% if theme_navbar_fixed_top|tobool -%} navbar-fixed-top{%- endif -%}">
22
<div class="container">
33
<div class="navbar-header">
44
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
@@ -9,7 +9,7 @@
99
</button>
1010
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
1111
{%- block sidebarlogo %}
12-
{%- if logo %}<img src="{{ pathto('_static/' + logo, 1) }}">{%- endif %}
12+
{%- if logo %}<span><img src="{{ pathto('_static/' + logo, 1) }}"></span>{%- endif %}
1313
{%- endblock %}
1414
{% if theme_navbar_title -%}{{ theme_navbar_title|e }}{%- else -%}{{ project|e }}{%- endif -%}
1515
</a>
@@ -18,7 +18,6 @@
1818

1919
<div class="collapse navbar-collapse nav-collapse">
2020
<ul class="nav navbar-nav">
21-
<li class="divider-vertical"></li>
2221
{% if theme_navbar_links %}
2322
{%- for link in theme_navbar_links %}
2423
<li><a href="{{ pathto(*link[1:]) }}">{{ link[0] }}</a></li>

themes/bootstrap/navbartoc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
id="dLabelLocalToc"
44
data-toggle="dropdown"
55
data-target="#"
6-
href="#">{{ _('Page') }} <b class="caret"></b></a>
6+
href="#">{{ _(theme_navbar_pagenav_name) }} <b class="caret"></b></a>
77
<ul class="dropdown-menu localtoc"
88
role="menu"
99
aria-labelledby="dLabelLocalToc">{{ toc }}</ul>

themes/bootstrap/relations.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
{%- if prev %}
33
<li>
44
<a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}">
5+
{%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-left visible-tablet"></span>{%- endif -%}
56
{%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left visible-sm"></span>{%- endif -%}
6-
<span class="hidden-sm">{{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=16, killwords=True) }}</span>
7+
<span class="hidden-sm hidden-tablet">{{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=16, killwords=True) }}</span>
78
</a>
89
</li>
910
{%- endif %}
1011
{%- if next %}
1112
<li>
1213
<a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}">
14+
{%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-right visible-tablet"></span>{%- endif -%}
1315
{%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right visible-sm"></span>{%- endif -%}
14-
<span class="hidden-sm">{{ next.title|striptags|truncate(length=16, killwords=True) }} {{ "&raquo;"|safe }}</span>
16+
<span class="hidden-sm hidden-tablet">{{ next.title|striptags|truncate(length=16, killwords=True) }} {{ "&raquo;"|safe }}</span>
1517
</a>
1618
</li>
1719
{%- endif %}

themes/bootstrap/static/bootstrap-3.1.0/css/bootstrap-theme.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/bootstrap/static/bootstrap-3.1.0/css/bootstrap-theme.min.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

themes/bootstrap/static/bootstrap-3.1.0/css/bootstrap.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

themes/bootstrap/static/bootstrap-3.1.0/css/bootstrap.min.css

Lines changed: 0 additions & 7 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)