summaryrefslogtreecommitdiff
path: root/sphinx/themes/basic/layout.html
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-04-17 12:57:38 +0200
committerGeorg Brandl <georg@python.org>2010-04-17 12:57:38 +0200
commitf246eec0c3ed09ed2769bb32a12e7d3385b0eba8 (patch)
tree144ea175dd78a06b98dc27c510788a13e34d8f18 /sphinx/themes/basic/layout.html
parent61b45b7891e349f06047fafaefae27cd8279f144 (diff)
parent7c8630c5c0e437164a46d262f586892e32824229 (diff)
downloadsphinx-f246eec0c3ed09ed2769bb32a12e7d3385b0eba8.tar.gz
merge with 0.6
Diffstat (limited to 'sphinx/themes/basic/layout.html')
-rw-r--r--sphinx/themes/basic/layout.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html
index d3ef88ab..dc9ba214 100644
--- a/sphinx/themes/basic/layout.html
+++ b/sphinx/themes/basic/layout.html
@@ -15,6 +15,8 @@
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
(not sidebars == []) %}
+{%- set url_root = pathto('', 1) %}
+{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- macro relbar() %}
<div class="related">
@@ -96,7 +98,7 @@
{%- if not embedded %}
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '{{ pathto("", 1) }}',
+ URL_ROOT: '{{ url_root }}',
VERSION: '{{ release|e }}',
COLLAPSE_MODINDEX: false,
FILE_SUFFIX: '{{ file_suffix }}',