Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-12-20 15:33:57 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-12-20 15:33:57 +0300
commita7a77d154ba659c94b06d8b07028f9ae996412e0 (patch)
tree459ea70c63b048a3e23c86a093c6c655e513e34f /sphinx/themes
parentd9280e253ad849ac5f843d2900352a76dcfae000 (diff)
parenta7e10c1d36007650b5e3948021d4aa90d78127d4 (diff)
Merge branch '3.x'
Diffstat (limited to 'sphinx/themes')
-rw-r--r--sphinx/themes/basic/layout.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html
index 131d2c533..a7604ba8d 100644
--- a/sphinx/themes/basic/layout.html
+++ b/sphinx/themes/basic/layout.html
@@ -18,7 +18,7 @@
{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
(sidebars != []) %}
{%- set url_root = pathto('', 1) %}
-{# XXX necessary? #}
+{# URL root should never be #, then all links are fragments #}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- if not embedded and docstitle %}
{%- set titlesuffix = " &#8212; "|safe + docstitle|e %}
@@ -88,7 +88,7 @@
{%- endmacro %}
{%- macro script() %}
- <script id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
+ <script id="documentation_options" data-url_root="{{ url_root }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
{%- for js in script_files %}
{{ js_tag(js) }}
{%- endfor %}