diff --git a/conf.py b/conf.py index 7b5123524..a2396f7cb 100644 --- a/conf.py +++ b/conf.py @@ -164,9 +164,8 @@ html_favicon = os.path.join(html_theme_path[0], html_theme, 'static', 'img', 'fa html_static_path = ['static'] html_add_permalinks = 'ΒΆ' # Sphinx < 3.5 html_permalinks = True # Sphinx >= 3.5 -# Additional css & js files: -# Empty because the js & css files are specified in the extensions/theme -# or specified for a given page only through the custom-js & custom-css metadata directives +# Additional JS & CSS files that can be imported with the 'custom-js' and 'custom-css' metadata. +# Lists are empty because the files are specified in extensions/themes. html_js_files = [] html_css_files = [] diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index 20d38f0bf..f0ee34846 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -3,7 +3,7 @@ {% block css %} {{ super() }} - {% if 'custom-css' in meta %}{# Allow custom css style import for specific pages #} + {% if 'custom-css' in meta %} {# Allow custom css style import for specific pages #} {% set css_files = meta['custom-css'].split(',') %} {% for css_file in css_files %} {% set link = '_static/css/' + css_file %} @@ -13,7 +13,7 @@ {% endblock %} {% block scripts %} - {% if 'custom-js' in meta %}{# Allow custom js import for specific pages #} + {% if 'custom-js' in meta %} {# Allow custom js import for specific pages #} {# Before the custom files using React & Immutable (accounting mementos) #}