layout cleanup/improvements
remove outdated comments fix todos/fixmes ...
This commit is contained in:
parent
77a2c9feaf
commit
e128874cef
@ -3,17 +3,18 @@
|
||||
|
||||
{% block css %}
|
||||
{{ super() }}
|
||||
{# Allow custom css style import for specific pages #}
|
||||
{% if 'custom-css' in meta %}
|
||||
{# TODO VFE this should be wrapped in a loop as custom-css is a comma(, not ;)-separated list #}
|
||||
{% set link = '_static/css/' + meta['custom-css'] %}
|
||||
<link rel="stylesheet" href="{{ pathto(link, 1) }}" type="text/css"/>
|
||||
{% 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 %}
|
||||
<link rel="stylesheet" href="{{ pathto(link, 1) }}" type="text/css"/>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% if 'custom-js' in meta %}
|
||||
{# Before the custom files using React & Immutable #}
|
||||
{% if 'custom-js' in meta %}{# Allow custom js import for specific pages #}
|
||||
{# Before the custom files using React & Immutable (accounting mementos) #}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.8.2/immutable.min.js"
|
||||
integrity="sha512-myCdDiGJRYrvRb/VuJ67ljifYTJdc1jdEvL4c4ftX9o3N6EAnmD83c/7l2/91RCINZ7c8w21tiXDT7RDFjdc3g=="
|
||||
crossorigin="anonymous"></script>
|
||||
@ -27,13 +28,10 @@
|
||||
<script src="{{ pathto(link, 1) }}"></script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{# FIXME ANVFEDI Do we really need prefixfree ? It triggers a reload of css files two more times/page #}
|
||||
<!-- <script src="https://cdn.jsdelivr.net/npm/prefixfree@1.0.0/prefixfree.min.js"
|
||||
integrity="sha256-a1jYldRqTzpGqk63nmXXjh/zPYp7Sjxp9iUYhNbYPXI="
|
||||
crossorigin="anonymous"></script> -->
|
||||
{{ super() }}
|
||||
{# TODO EDI boostrap beta cdn ??? Isn't there a stable CDN ? It looks like this cdn won't exist forever :D #}
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
|
||||
{{ super() }} {# Load the scripts specified in the extensions/themes #}
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
|
||||
crossorigin="anonymous"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block linktags %}
|
||||
@ -55,12 +53,12 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block header %}
|
||||
{# shown when js has properly set all the classes on the toc elements #}
|
||||
<noscript>
|
||||
<nav class="o_side_nav border-end">
|
||||
{% include "layout_templates/menu.html" %}
|
||||
</nav>
|
||||
</noscript>
|
||||
{# shown when js has properly set all the classes on the toc elements #}
|
||||
<nav id="o_main_toctree" class="o_side_nav border-end" hidden>
|
||||
{% include "layout_templates/menu.html" %}
|
||||
</nav>
|
||||
@ -103,11 +101,9 @@
|
||||
{% include "layout_templates/homepage.html" %}
|
||||
{% else %}
|
||||
<article id="o_content" class="doc-body">
|
||||
<!-- Beacon used by the Sphinx search to know where to look for a string -->
|
||||
<div role="main">
|
||||
<div role="main">{# Beacon used by the Sphinx search to know where to look for a string #}
|
||||
{% block body %} {% endblock %}
|
||||
</div>
|
||||
{# Do not show the edition link for pages without content #}
|
||||
{% if github_link and pagename != 'search' %}
|
||||
<a href="{{ github_link(mode='edit') }}" class="o_git_link d-none d-lg-inline-block"><i class="i-edit"></i> Edit on GitHub</a>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user