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
commit020410f20be4f77fc5e41b8235fcf22a49bc0155 (patch)
tree144ea175dd78a06b98dc27c510788a13e34d8f18 /sphinx/themes/basic/layout.html
parent138fc5f7bded5b37c4218ce21d56db1a35df43b5 (diff)
parent2c8e51a17b3e99bd9106d589970e412b5b5063af (diff)
downloadsphinx-git-020410f20be4f77fc5e41b8235fcf22a49bc0155.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 d3ef88abc..dc9ba214c 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 }}',