openstackdocstheme/openstackdocstheme
Stephen Finucane 08461c5311 Inherit from base "basic" template
Sphinx 4.x changed how it includes some JavaScript files. Instead of
including them via the template, they are now injected using the
'add_js_file' function [1]. This relies on a custom Jinja2 function,
'js_tag' to generate the correct element with necessary attributes set.
Failure to use this results in missing attributes for some tags.

Rather than simply reworking our template to use this new function,
change how we use our 'layout.html' to instead override the 'basic'
template that Sphinx provides. This means we should get these kinds of
changes "for free" in the future, rather than having to worry about
them.

[1] https://github.com/sphinx-doc/sphinx/commit/a957d6f710

Change-Id: Idc0e6c1d38407fdadc29ea710069e74243c5c89a
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-05-31 16:45:40 +01:00
..
theme Inherit from base "basic" template 2021-05-31 16:45:40 +01:00
__init__.py Provide extension version 2020-05-15 17:40:38 +01:00
ext.py sphinx 4.0: Fix sphinx.ext.extlinks.make_link_role call 2021-05-31 16:45:40 +01:00
page_context.py Ignore 'last_updated' for auto-generated pages 2020-05-27 11:11:48 +01:00
paths.py The theme is openstackdocs 2018-10-22 20:15:46 +02:00
version.py Provide extension version 2020-05-15 17:40:38 +01:00