Skip to content

Commit

Permalink
Simplify js tag in basic-bootstrap theme (#2562)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zhsj authored Oct 24, 2021
1 parent 3b6e409 commit e6d5059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/basic-bootstrap/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h3>{{ _('Navigation') }}</h3>
};
</script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{{ js_tag(scriptfile) }}
{%- endfor %}
{%- endmacro %}

Expand Down

0 comments on commit e6d5059

Please sign in to comment.