Files
flame/doc/_sphinx/theme/layout.html
Lukas Klingsbo b4286a7d0b docs: Use virtual webgl (#3586)
Currently chrome sometimes crashes on some of our docs pages to to that
we initialize too many webgl contexts, this script should solve that.

https://github.com/greggman/virtual-webgl?tab=readme-ov-file#how-to-use
2025-04-29 11:09:31 +02:00

179 lines
6.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ title|striptags|e + " &#8212; "|safe + docstitle|e }}</title>
{%- block css %}
<!-- Stylesheets -->
{%- for css in css_files %}
{{ css_tag(css) }}
{%- endfor %}
{%- endblock %}
{%- block scripts %}
<!-- Scripts -->
{%- for js in script_files %}
{{ js_tag(js) }}
{%- endfor %}
<!--script src="searchindex.js" defer></script-->
<script src="https://cdn.jsdelivr.net/npm/virtual-webgl"></script>
{%- endblock %}
{%- block links %}
<!-- Links -->
{%- if pageurl %}
<link rel="canonical" href="{{ pageurl|e }}" />
{%- endif %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="preload" as="font" type="font/woff2" crossorigin="" href="{{ pathto('_static/fontawesome/fa-brands-400.woff2', 1) }}">
<link rel="preload" as="font" type="font/woff2" crossorigin="" href="{{ pathto('_static/fontawesome/fa-solid-900.woff2', 1) }}">
<link rel="stylesheet" href="{{ pathto('_static/fontawesome/all.min.css', 1) }}">
<link rel="shortcut icon" href="{{ pathto('_static/favicon.ico', 1)|e }}"/>
{%- if hasdoc('genindex') %}
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
{%- endif %}
{%- if hasdoc('search') %}
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
{%- endif %}
{%- if hasdoc('copyright') %}
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
{%- endif %}
{%- if next %}
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
{%- endif %}
{%- if prev %}
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
{%- endif %}
{%- endblock %}
</head>
<body data-spy="scroll" data-target="#toc-local" data-offset="80">
<div class="top-bar">
<button id="menu-button" class="btn" title="Toggle menu"><i class="fa fa-bars"></i></button>
<script type="text/javascript">
jQuery(function(){
$("#menu-button").click(function() {
$(this).toggleClass("active");
$(".sidebar-left-area").toggleClass("active");
});
$('div.nav-left li > a:not(:only-child)').wrap('<div class=submenu></div>');
$('div.nav-left div.submenu').prepend('<a class=arrow>&nbsp;</a>');
$('div.nav-left div.submenu > a.arrow')
.click(function() {
$(this.parentElement.parentElement).toggleClass('current');
});
// This function ensures that when navigating to internal targets within the page (such as
// a section header), those targets will be visible to the user and not obscured by the menu
// bar at the top of the page.
function scrollToHashTarget() {
if (location.hash !== location.oldHash) {
window.scrollBy(0, -60);
location.oldHash = location.hash;
}
}
window.location.oldHash = '';
window.addEventListener('hashchange', scrollToHashTarget);
scrollToHashTarget();
});
</script>
<a href="{{pathto('index')}}" class="logo_image" aria-label="Navigate to home page">
<img src="{{pathto('_static/logo_flame.png', 1)}}" alt="Flame logo: a fiery symbol along with the FLAME wordmark.">
</a>
<div class="highlight-box" role="alert" style="display:none">
<div>
<div class="title">highlighted:</div>
<div class="content" id="highlight-content"></div>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Dismiss">×</button>
</div>
<div class="expander"></div>
<div class="versions-placeholder"></div>
<a href="https://discord.com/invite/pxrBmy4" id="discord-button" class="btn"
title="Blue Fire Discord server">
<i class="fab fa-discord"></i>
</a>
<a href="https://github.com/flame-engine/flame/" id="github-button" class="btn"
title="GitHub repository">
<i class="fab fa-github"></i>
</a>
</div>
<div class="sidebar-left-area">
<div class="sidebar-left-bg"></div>
<div class="sidebar-left">
<div class="searchbox" role="search">
<form id="search-form" action="{{ pathto('search') }}" method="get">
<i class="icon fa fa-search"></i>
<input type="search" class="form-control" id="search-input" name="q"
placeholder="Search the docs..." autocomplete="off" />
</form>
</div>
<div class="nav-left" role="navigation" aria-label="Main">
{{ toctree(maxdepth=0, collapse=False, includehidden=True, titles_only=True) }}
</div>
</div>
</div>
<div class="main-area">
<div class="document-wrapper">
<div class="warning hidden" id="version-warning">
<p><strong>Warning:</strong> you are currently viewing the docs for an older
version <span class="version"></span> of Flame.</p>
<p>Please <a href="/">click here</a> to go see the documentation for the latest
released version.</p>
</div>
<div class="document" role="main">
{% block body %} {% endblock %}
</div>
<div class="copyright">
The content on this page is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0 License</a>,
and code samples under the <a href="https://raw.githubusercontent.com/flame-engine/flame/main/LICENSE">MIT License</a>.
</div>
<div class="prev-next-area">
{%- if prev %}
<a class="left-prev" id="prev-link" href="{{ prev.link|e }}" title="previous page">
<i class="fa fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">Previous:</p>
<p class="prev-next-title">{{ prev.title|striptags|e }}</p>
</div>
</a>
{%- endif %}
<div class='expander'></div>
{%- if next %}
<a class="right-next" id="next-link" href="{{ next.link|e }}" title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">Next:</p>
<p class="prev-next-title">{{ next.title|striptags|e }}</p>
</div>
<i class="fa fa-angle-right"></i>
</a>
{%- endif %}
</div>
</div>
<div class="sidebar-right">
{# Local table of contents #}
<div class="nav-right" role="navigation" aria-label="table of contents">
{{ get_local_toc() }}
</div>
</div>
<div class="expander"></div>
</div>
{% block footer %}
{% endblock %}
</body>
</html>