initial commit

This commit is contained in:
2025-08-19 09:13:22 -07:00
parent 28464811d6
commit 0977a3e14d
820 changed files with 1003358 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
{% extends "section.html.jinja" %}
{% block html_content %}
<div class="row">
{{ html_slider_axial | safe }}
{{ html_slider_sagittal | safe }}
{{ html_slider_coronal | safe }}
</div>
{% endblock html_content %}

View File

@@ -0,0 +1,6 @@
{% extends "section.html.jinja" %}
{% block html_content %}
<pre class="my-0">
<code class="language-{{ language }}">{{ code }}</code>
</pre>
{% endblock html_content %}

View File

@@ -0,0 +1,10 @@
</div>
</div>
<footer>
<nav class="navbar fixed-bottom navbar-light bg-light border-top justify-content-center pt-0 pb-0 small">
<span>Created on {{ date }} via <a href="https://mne.tools" target="_blank">MNE-Python</a> {{ mne_version }}</span>
</nav>
</footer>
</body>
</html>

View File

@@ -0,0 +1,5 @@
{% extends "section.html.jinja" %}
{% block html_content %}
{{repr | safe}}
{{sensitivity_maps | safe}}
{% endblock html_content %}

View File

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="{{ lang | safe }}">
<head>
<meta charset="UTF-8">
{{include | safe }}
<script type="text/javascript">
{{ js | safe }}
</script>
<style type="text/css">
{{ css | safe }}
</style>
<title>{{ title }}</title>
</head>
<body data-bs-spy="scroll" data-bs-target="#toc-navbar" data-bs-offset="150">
<nav class="navbar fixed-top navbar-light bg-light shadow-sm" id="top-bar">
<div class="container-fluid">
<a class="navbar-brand d-flex align-items-center" href="#">
<img src="data:image/png;base64,{{ mne_logo_img }}" alt="MNE" width="80" class="d-inline-block">
<span class="mx-2 fs-3">{{ title }}</span>
</a>
<div class="btn-group" role="group" aria-label="Filter by tags" id="filter-by-tags-dropdown-menu">
<button class="btn btn-primary dropdown-toggle" type="button" id="show-hide-tags" data-bs-toggle="dropdown"
aria-expanded="false">
Filter by tags
</button>
<ul class="dropdown-menu dropdown-menu-end shadow-sm vh-100 overflow-auto" aria-labelledby="show-hide-tags">
<li>
<label class="dropdown-item" id="selectAllTagsCheckboxLabel">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Select all
</label>
</li>
<li>
<hr class="dropdown-divider">
</li>
{% for tag in tags|sort %}
<li>
<label class="tag dropdown-item me-5" data-mne-tag="{{tag}}">
<input class="form-check-input me-1" type="checkbox" value="" checked>
{{ tag }}
<span class="badge bg-primary rounded-pill float-end me-1" data-mne-tag="{{tag}}"></span>
</label>
</li>
{% endfor %}
</ul>
</div>
</div>
</nav>

View File

@@ -0,0 +1,19 @@
<div class="accordion-item {{ div_klass }}" id="{{ id }}" data-mne-tags="{% for tag in tags %} {{ tag }} {% endfor %}">
<div class="accordion-header" id="accordion-header-{{id}}">
<button class="accordion-button pt-1 pb-1" type="button" data-bs-toggle="collapse" data-bs-target="#accordion-collapse-{{ id }}" aria-expanded="true" aria-controls="accordion-collapse-{{id}}">
<div class="w-100">
<span class="me-auto"><a href="#{{ id }}" class="text-decoration-none">{{ title }}</a></span>
{% for tag in tags %}
<span class="badge bg-primary rounded-pill float-end me-1" data-mne-tag="{{ tag }}">
{{ tag }}
</span>
{% endfor %}
</div>
</button>
</div>
<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse {{ show }}" aria-labelledby="accordion-header-{{ id }}">
<div class="accordion-body">
{{ html | safe }}
</div>
</div>
</div>

View File

@@ -0,0 +1,17 @@
{% extends "section.html.jinja" %}
{% block html_content %}
<figure class="figure mx-auto d-block">
{% if image_format == 'svg' %}
<div class="d-flex justify-content-center">
{{ img|safe }}
</div>
{% else %}
<img class="figure-img img-fluid rounded mx-auto my-0 d-block" alt="{{ title }}"
src="data:image/{{ image_format }};base64,{{ img }}">
{% endif %}
{% if caption is not none %}
<figcaption class="figure-caption text-center">{{ caption }}</figcaption>
{% endif %}
</figure>
{% endblock html_content %}

View File

@@ -0,0 +1,5 @@
{% extends "section.html.jinja" %}
{% block html_content %}
{{repr | safe}}
{{source_space | safe}}
{% endblock html_content %}

View File

@@ -0,0 +1,23 @@
<div class="accordion-item {{ div_klass }}" id="{{ id }}" data-mne-tags="{% for tag in tags %} {{ tag }} {% endfor %}">
<div class="accordion-header" id="accordion-header-{{id}}">
<button class="accordion-button pt-1 pb-1" type="button" data-bs-toggle="collapse" data-bs-target="#accordion-collapse-{{ id }}" aria-expanded="true" aria-controls="accordion-collapse-{{id}}">
<div class="w-100">
<span class="me-auto"><a href="#{{ id }}" class="text-decoration-none">{{ title }}</a></span>
{% for tag in tags %}
<span class="badge bg-primary rounded-pill float-end me-1" data-mne-tag="{{ tag }}">
{{ tag }}
</span>
{% endfor %}
</div>
</button>
</div>
<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse {{ show }}" aria-labelledby="accordion-header-{{ id }}">
<div class="accordion-body">
{% block html_content %}
{% for html in htmls %}
{{ html | safe }}
{% endfor %}
{% endblock %}
</div>
</div>
</div>

View File

@@ -0,0 +1,49 @@
<div class="accordion-item slider {{ klass }}" id="{{ id }}"
data-mne-tags="{% for tag in tags %} {{ tag }} {% endfor %}">
<div class="accordion-header" id="accordion-header-{{ id }}">
<button class="accordion-button pt-1 pb-1" type="button" data-bs-toggle="collapse" data-bs-target="#accordion-collapse-{{ id }}" aria-expanded="true" aria-controls="accordion-collapse-{{ id }}">
<div class="w-100">
<span class="me-auto"><a href="#{{ id }}" class="text-decoration-none">{{ title }}</a></span>
{% for tag in tags %}
<span class="badge bg-primary rounded-pill float-end me-1" data-mne-tag="{{ tag }}">
{{ tag }}
</span>
{% endfor %}
</div>
</button>
</div>
<div id="accordion-collapse-{{ id }}" class="accordion-collapse collapse {{ show }}" aria-labelledby="accordion-header-{{ id }}">
<div class=" accordion-body">
<div class="mx-auto d-block w-75">
<label for="slider-{{ id }}" class="form-label small">
Move the slider or click on the image and use the <kbd>←</kbd> and <kbd>→</kbd> keys to browse.
</label>
<input type="range" class="form-range" min="0" max="{{ images|length - 1 }}" value="{{ start_idx }}"
id="slider-{{id}}">
</div>
<div id="corousel-{{ id }}" class="carousel carousel-dark" data-bs-interval="false" data-bs-wrap="false" data-bs-keyboard="true">
<div class="carousel-inner">
{% for idx, img, caption in range(images|length)|zip(images, captions) %}
<div class="carousel-item {% if idx == start_idx %}active{% endif %}">
<figure class="figure mx-auto d-block ">
<img class="figure-img img-fluid rounded mx-auto my-0 d-block" alt="{{title}}"
src="data:image/{{ image_format }};base64,{{ img }}">
<figcaption class="figure-caption text-center">
{{ caption }}
</figcaption>
</figure>
</div>
{% endfor %}
</div>
{# <button class="carousel-control-prev" type="button" data-bs-target="#corousel-{{id}}" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#corousel-{{id}}" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button> #}
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<div class="container-fluid" id="container">
<div class="row">
<div class="col-2 px-1 position-fixed vh-100 overflow-auto" id="toc">
<h5 class="px-1">Table of contents</h5>
<nav class="nav nav-pills flex-column lh-sm" id="toc-navbar">
{% for title, dom_id, tags_ in titles|zip(dom_ids, tags) %}
<a class="nav-link list-group-item list-group-item-action text-break" href="#{{ dom_id }}"
data-mne-tags="{% for tag in tags_ %} {{ tag }} {% endfor %}">{{ title }}</a>
{% endfor %}
</nav>
</div>
<div id="content" class="accordion col-10 offset-2">