Skip to content

Commit

Permalink
Set data-content_root for Sphinx >= 7.2
Browse files Browse the repository at this point in the history
Copied from #1507
  • Loading branch information
humitos committed Aug 23, 2023
1 parent 2ab5fe8 commit d4a06b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{%- set sphinx_version_info = (_ver_major, _ver_minor, -1) -%}

<!DOCTYPE html>
<html class="writer-html5" lang="{{ lang_attr }}" >
<html class="writer-html5" lang="{{ lang_attr }}"{% if sphinx_version_info >= (7, 2) %} data-content_root="{{ content_root }}"{% endif %}>
<head>
<meta charset="utf-8" />
{{- metatags }}
Expand Down

0 comments on commit d4a06b0

Please sign in to comment.