From 83b57d738d3155f78d9e79304ba0619c0ae7230b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 17 Apr 2010 12:43:36 +0200 Subject: [PATCH] #387: Fix the display of search results in ``dirhtml`` output. --- CHANGES | 2 ++ sphinx/themes/basic/layout.html | 4 +++- sphinx/themes/basic/static/searchtools.js | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 22380a300..8622c0713 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ Release 0.6.6 (in development) ============================== +* #387: Fix the display of search results in ``dirhtml`` output. + * #370: Fix handling of complex list item labels in LaTeX output. * #374: Make the ``doctest_path`` config value of the doctest diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html index 2c8c4d7db..3380dbe13 100644 --- a/sphinx/themes/basic/layout.html +++ b/sphinx/themes/basic/layout.html @@ -4,6 +4,8 @@ {%- endblock %} {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %} {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} +{%- set url_root = pathto('', 1) %} +{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- macro relbar() %}