Skip to content

Commit 7b75c04

Browse files
committed
reorg homepage, pin theme version to 0.4.2 for now
1 parent 39081b9 commit 7b75c04

File tree

7 files changed

+34
-51
lines changed

7 files changed

+34
-51
lines changed

doc/_static/style.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
11
:root {
22

3+
--font-size-base: 16px;
4+
--font-size-milli: 13px;
35
--font-family-base: 'Source Sans Pro', sans-serif;
4-
--font-family-heading: 'Source Sans Pro', sans-serif;
6+
--font-family-heading: var(--font-family-base);
7+
--font-family-monospace: 'Source Code Pro', monospace;
58

69
--carousel-radius: 12px;
710

811
}
912

10-
/* ***************************** devbar (alert for development version docs) */
13+
/* ******** devbox (alert for development version docs) and version dropdown */
1114
.devbox a {
1215
font-weight: bold;
1316
color: var(--color-danger);
1417
}
15-
1618
.dropdown {
1719
margin-left: 10px;
1820
}
21+
.dropdown-toggle {
22+
font-weight: 600;
23+
}
1924

2025
/* ********************************************************** Sphinx-gallery */
2126

22-
/* backreference links */
27+
/* backreference links: restore hover decoration that SG removes */
2328
a.sphx-glr-backref-instance:hover {
24-
text-decoration: underline; /* restore hover decoration that SG removes */
29+
text-decoration: underline;
2530
}
31+
/* backreference links: make non-MNE func/meth calls resemble regular code */
2632
a[class^="sphx-glr-backref-module"] {
27-
color: var(--color-text-base); /* make non-MNE instances resemble regular code */
33+
color: var(--color-text-base);
2834
}
35+
/* backreference links: make MNE calls bold and colorful */
2936
a[class^="sphx-glr-backref-module-mne"] {
30-
font-weight: 600; /* make all MNE things bold */
37+
font-weight: 600;
3138
color: var(--color-link);
3239
}
33-
3440
/* suppress redundant note at top of every tutorial and signature at the end */
3541
div.sphx-glr-download-link-note,
3642
p.sphx-glr-signature {
@@ -39,7 +45,6 @@ p.sphx-glr-signature {
3945
margin: 0;
4046
padding: 0;
4147
}
42-
4348
/* Report embedding */
4449
iframe.sg_report {
4550
width: 95%;
@@ -59,7 +64,8 @@ div[id^="examples-using-"] h2 {
5964

6065
/* ******************************************* in-text sidebar callout boxes */
6166
div.sidebar {
62-
background-color: rgba(23, 162, 184, 0.1); /* transparent version of --info color */
67+
/* transparent version of --info color */
68+
background-color: rgba(23, 162, 184, 0.1);
6369
border: 1px solid var(--info);
6470
border-radius: 4px;
6571
}
@@ -116,7 +122,6 @@ img.institution {
116122
}
117123

118124
/* ***************************************************** front page carousel */
119-
120125
div.slide {
121126
border-radius: var(--carousel-radius);
122127
overflow: hidden;

doc/_templates/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<!-- or add a `style` tag with a font fallback chain with good cross-platform coverage -->
88
<style>
99
body,h1,h2,h3,h4,h5,h6 {font-family: 'Source Sans Pro', sans-serif;}
10+
code,kbd,pre,samp {font-family: 'Source Code Pro', monospace;}
1011
</style>
1112
{% endblock %}
1213

doc/_templates/sidebar-whats-new.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<div class="card mt-4">
3+
<h5 class="card-header {% if build_dev_html|tobool %} devbox alert alert-danger {% endif %}">Version {{ release }}</h5>
4+
<div class="card-body">
5+
<ul class="list-group list-group-flush version-box">
6+
<li><i class="fas fa-newspaper fa-fw"></i> <a href="{{ pathto('whats_new.html', 1) }}">Changelog</a></li>
7+
<li><i class="fas fa-book fa-fw"></i> <a href="{{ pathto('overview/index.html', 1) }}">Documentation</a></li>
8+
<li><i class="fas fa-question-circle fa-fw"></i> <a href="{{ pathto('overview/get_help.html', 1) }}">Get help</a></li>
9+
<li><i class="fas fa-quote-left fa-fw"></i> <a href="{{ pathto('overview/cite.html', 1) }}">Cite</a></li>
10+
<li><i class="fas fa-code-branch fa-fw"></i> <a href="{{ pathto('install/contributing.html', 1) }}">Contribute</a></li>
11+
12+
</ul>
13+
</div>
14+
</div>

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ def append_attr_meth_examples(app, what, name, obj, options, lines):
491491

492492
# Custom sidebar templates, maps document names to template names.
493493
html_sidebars = {
494-
'**': ['sidebar-dev-version.html', 'sidebar-nav-bs.html'],
495-
'index': ['sidebar-dev-version.html'],
494+
'index': [],
495+
'overview/index': []
496496
}
497497

498498
# If true, links to the reST sources are added to the pages.

doc/index.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,6 @@ analyzing human neurophysiological data: MEG, EEG, sEEG, ECoG, NIRS, and more.
2525
2626
.. include:: carousel.inc
2727

28-
29-
.. SIDEBAR (WHAT'S NEW)
30-
31-
.. raw:: html
32-
33-
<div class="card mt-4">
34-
<h5 class="card-header">
35-
36-
Version |version|
37-
38-
.. raw:: html
39-
40-
</h5>
41-
<div class="card-body">
42-
43-
.. rst-class:: list-group list-group-flush version-box
44-
45-
- |fw-newspaper| :ref:`Changelog <whats_new>`
46-
- |fw-book| :ref:`Documentation <documentation_overview>`
47-
- |fw-question-circle| :ref:`Get help <help>`
48-
- |fw-quote-left| :ref:`Cite <cite>`
49-
- |fw-code-branch| :ref:`Contribute <contributing>`
50-
51-
.. raw:: html
52-
53-
</div>
54-
</div>
55-
5628
.. SIDEBAR (FUNDERS)
5729
5830
.. raw:: html

doc/overview/index.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,3 @@ Documentation for the related C and MATLAB tools are available here:
5858

5959
- :ref:`MNE-MATLAB <mne_matlab>` (HTML)
6060
- `MNE-C <MNE-C manual_>`_ (PDF)
61-
62-
63-
.. toctree::
64-
:hidden:
65-
66-
Tutorials<../auto_tutorials/index>
67-
Examples<../auto_examples/index>
68-
../glossary
69-
API<../python_reference>

requirements_doc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sphinx
22
numpydoc
33
sphinx_fontawesome
4-
pydata_sphinx_theme
4+
pydata_sphinx_theme==0.4.2
55
sphinx-gallery
66
sphinxcontrib-bibtex>=2.1.2
77
memory_profiler

0 commit comments

Comments
 (0)