Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More website fixes #9288

Merged
merged 11 commits into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions doc/_static/copybutton.js

This file was deleted.

Binary file not shown.
1 change: 1 addition & 0 deletions doc/_static/institution_logos/Telecom_Paris_Tech.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
912 changes: 172 additions & 740 deletions doc/_static/mne_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,17 @@ h5.card-header::before {
}

/* ******************************************************** version dropdown */
.dropdown {
padding: 0 .5rem; /* match other items in the hamburger menu */
}
.dropdown-toggle {
font-weight: 600;
margin-left: 15px; /* match other items in the hamburger menu */
}

/* ***************************************************** front page carousel */
div.frontpage-gallery {
overflow: hidden;
height: 200px;
max-width: 400px;
height: 180px;
justify-content: center;
}
div.frontpage-gallery a {
Expand All @@ -143,12 +144,12 @@ div.frontpage-gallery a {
}
div.frontpage-gallery img.card-img {
transform: scale(1.8);
transform-origin: 50% 30%;
transform-origin: 40% 20%;
opacity: 0.2;
transition: 400ms ease-out;
}
div.frontpage-gallery:hover img.card-img {
transform: scale(1.1);
transform: scale(1.2);
opacity: 1.0;
transition: 400ms ease-out;
}
Expand Down
1 change: 1 addition & 0 deletions doc/_templates/copyright.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p class="text-center text-muted small">&copy; Copyright {{ copyright }}</p>
20 changes: 0 additions & 20 deletions doc/_templates/docs-navbar.html

This file was deleted.

44 changes: 44 additions & 0 deletions doc/_templates/homepage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!-- homepage gallery -->
<div class="container">
<div class="d-flex flex-wrap flex-row justify-content-center">
{% for item in carousel %}
<div class="col-12 col-sm-6 col-lg-4 my-2">
<div class="card frontpage-gallery">
<a href="{{ item.url }}">
<img class="card-img" src="{{ pathto('_images/' + item.img, 1) }}" alt="{{ item.alt }}">
<div class="card-img-overlay px-3 py-1">
<p class="lead mb-1 fadeout">{{ item.title }}</p>
<p class="card-text fadeout">{{ item.text }}</p>
</div>
</a>
</div>
</div>
{% endfor %}
</div>
</div>
<!-- funders -->
<div class="container my-4">
<p class="h4 text-center font-weight-light">Funders</p>
<div class="d-flex flex-wrap flex-row justify-content-center align-items-center">
{% for item in funders -%}
<div class="card my-1 mx-2 border-light" style="{{ 'width: ' + item.size + 'rem;' }}">
<a href="{{ pathto('funding.html', 1) }}">
<img class="card-img" src="{{ pathto('_static/funding/' + item.img, 1) }}" title="{{ item.title }}" alt="{{ item.title }}">
</a>
</div>
{% endfor %}
</div>
</div>
<!-- institutions -->
<div class="container my-4">
<p class="h4 text-center font-weight-light">Supporting institutions</p>
<div class="d-flex flex-wrap flex-row justify-content-center align-items-center">
{% for inst in institutions -%}
<div class="card my-1 mx-2 border-light" style="{{ 'width: ' + inst.size + 'rem;' }}">
<a href="{{ inst.url }}">
<img class="card-img" src="{{ pathto('_static/institution_logos/' + inst.img, 1) }}" title="{{ inst.name }}" alt="{{ inst.name }}"/>
</a>
</div>
{% endfor %}
</div>
</div>
59 changes: 6 additions & 53 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,67 +1,20 @@
{%- extends "pydata_sphinx_theme/layout.html" %}
{%- extends 'pydata_sphinx_theme/layout.html' %}

{% block extrahead %}
<link rel="canonical" href="https://mne.tools/stable/index.html" />
<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>
{{ super() }}
{{ super() }}
{% endblock %}

<!-- homepage gallery -->
{% block docs_body %}
<div>
{% block body %} {% endblock %}
{% if pagename == 'index' %}
<div class="container">
<div class="d-flex flex-wrap flex-row justify-content-center">
{% for item in carousel %}
<div class="card col-11 col-lg-5 m-2 m-md-3 frontpage-gallery">
<a href="{{ item.url }}">
<img class="card-img" src="{{ pathto('_images/' + item.img, 1) }}" alt="{{ item.alt }}">
<div class="card-img-overlay">
<h5 class="card-title fadeout">{{ item.title }}</h5>
<p class="card-text fadeout">{{ item.text }}</p>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
<!-- funders -->
<div class="container">
<p class="h4 text-center font-weight-light mt-4 mt-lg-5">Funders</p>
</div>
<div class="d-flex flex-wrap flex-row justify-content-center align-items-center">
{% for item in funders -%}
<div class="card my-1 mx-2 border-light" style="{{ 'width: ' + item.size + 'rem;' }}">
<a href="{{ pathto('funding.html', 1) }}">
<img class="card-img" src="{{ pathto('_static/funding/' + item.img, 1) }}" title="{{ item.title }}" alt="{{ item.title }}">
</a>
</div>
{% endfor %}
</div>
<!-- institutions -->
<p class="h4 text-center font-weight-light mt-4 mt-lg-5">Supporting institutions</p>
<div class="container">
<div class="d-flex flex-wrap flex-row justify-content-center align-items-center">
{% for inst in institutions -%}
<div class="card my-1 mx-2 border-light" style="{{ 'width: ' + inst.size + 'rem;' }}">
<a href="{{ inst.url }}">
<img class="card-img" src="{{ pathto('_static/institution_logos/' + inst.img, 1) }}" title="{{ inst.name }}" alt="{{ inst.name }}"/>
</a>
</div>
{% endfor %}
</div>
</div>

{%- include 'homepage.html' -%}
{% endif %}
</div>
{% endblock %}


<!-- footer -->
{%- block footer %}
<footer class="footer mt-5 mt-md-0">
<p class="text-center text-muted small">&copy; Copyright {{ copyright }}</p>
</footer>
<script src="https://mne.tools/versionwarning.js"></script>
{%- block scripts_end %}
<script src="https://mne.tools/versionwarning.js"></script>
{{ super() }}
{%- endblock %}
11 changes: 11 additions & 0 deletions doc/_templates/version-switcher.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="dropdown">
<button type="button" class="btn btn-{% if (build_dev_html|tobool) %}danger{% else %}primary{% endif %} btn-sm navbar-btn dropdown-toggle" id="dLabelMore" data-toggle="dropdown">
v{{ release }}
<span class="caret"></span>
</button>
<div class="dropdown-menu list-group-flush py-0" aria-labelledby="dLabelMore">
{%- for ver, txt in versions_dropdown.items() %}
<a class="list-group-item list-group-item-action py-1" href="https://mne-tools.github.io/{{ ver }}/index.html">{{ txt }}</a>
{%- endfor %}
</div>
</div>
Loading