summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst5
-rw-r--r--_theme/scipy/layout.html12
-rw-r--r--_theme/scipy/theme.conf1
3 files changed, 18 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 032547d..4aad716 100644
--- a/README.rst
+++ b/README.rst
@@ -21,6 +21,11 @@ configuration variable:
breadcrumb list on the top left. You can override it by defining
an `edit_link` block in ``searchbox.html``.
+.. attribute:: sidebar
+
+ One of ``"left"``, ``"right"``, ``"none"``.
+ Defines where the sidebar should appear.
+
The following blocks are defined:
.. attribute:: searchbox.html:edit_link
diff --git a/_theme/scipy/layout.html b/_theme/scipy/layout.html
index ae02da6..a3b1d8d 100644
--- a/_theme/scipy/layout.html
+++ b/_theme/scipy/layout.html
@@ -176,8 +176,15 @@
<div class="container">
<div class="main">
<div class="row-fluid">
+ {%- if theme_sidebar == 'left' -%}
{{ sidebar() }}
+ {%- endif %}
+ {%- if theme_sidebar == 'none' -%}
+ <div class="span1"></div>
+ <div class="span10">
+ {% else %}
<div class="span9">
+ {%- endif %}
{%- block document %}
<div class="bodywrapper">
<div class="body" id="spc-section-body">
@@ -186,6 +193,11 @@
</div>
{%- endblock %}
</div>
+ {%- if theme_sidebar == 'right' -%}
+ {{ sidebar() }}
+ {%- elif theme_sidebar == 'none' -%}
+ <div class="span1"></div>
+ {%- endif %}
</div>
</div>
</div>
diff --git a/_theme/scipy/theme.conf b/_theme/scipy/theme.conf
index cc23dc8..3255db6 100644
--- a/_theme/scipy/theme.conf
+++ b/_theme/scipy/theme.conf
@@ -6,3 +6,4 @@ pygments_style = friendly
[options]
edit_link = false
rootlinks = []
+sidebar = left