Skip to content

Commit

Permalink
docs: layout.html: Add content_root property
Browse files Browse the repository at this point in the history
Needed for search functionality, otherwise `contentRoot` in
`searchtools.js` will be `undefined`.

See sphinx-doc/sphinx#11608
and sphinx-doc/sphinx@8e730ae
  • Loading branch information
ix5 committed Nov 17, 2023
1 parent e6cae76 commit c78432c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{%- endif %}
{%- endmacro %}

<html>
<html{% if language is not none %} lang="{{ language }}"{% endif %} data-content_root="{{ content_root }}">
<head>
<meta charset="utf-8">
{{ metatags }}
Expand Down

0 comments on commit c78432c

Please sign in to comment.