Skip to content

Commit e6d5059

Browse files
authored
Simplify js tag in basic-bootstrap theme (fmtlib#2562)
When build the docs for debian package, it uses a sphinx building helper, which does a sanity check for the output. The sanity check complains missing data-url_root attribute in the js tag. So this patch changes the js tag to use the same function like the origin basic theme, which adds additional information like data-url_root. Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997437
1 parent 3b6e409 commit e6d5059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/basic-bootstrap/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h3>{{ _('Navigation') }}</h3>
9797
};
9898
</script>
9999
{%- for scriptfile in script_files %}
100-
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
100+
{{ js_tag(scriptfile) }}
101101
{%- endfor %}
102102
{%- endmacro %}
103103

0 commit comments

Comments
 (0)