From 15f2fa3fc842fd806029c7d63594cd1daf47c4e1 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Mon, 12 Apr 2021 14:02:34 -0500 Subject: [PATCH 01/11] cruft --- doc/_static/copybutton.js | 66 --------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 doc/_static/copybutton.js diff --git a/doc/_static/copybutton.js b/doc/_static/copybutton.js deleted file mode 100644 index 01ee2bab36b..00000000000 --- a/doc/_static/copybutton.js +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2014 PSF. Licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -// File originates from the cpython source found in Doc/tools/sphinxext/static/copybutton.js - -$(document).ready(function() { - /* Add a [>>>] button on the top-right corner of code samples to hide - * the >>> and ... prompts and the output and thus make the code - * copyable. */ - var div = $('.highlight-python .highlight,' + - '.highlight-default .highlight,' + - '.highlight-python3 .highlight') - var pre = div.find('pre'); - - // get the styles from the current theme - pre.parent().parent().css('position', 'relative'); - var hide_text = 'Hide the prompts and output'; - var show_text = 'Show the prompts and output'; - var border_width = pre.css('border-top-width'); - var border_style = pre.css('border-top-style'); - var border_color = pre.css('border-top-color'); - var button_styles = { - 'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0', - 'border-color': border_color, 'border-style': border_style, - 'border-width': border_width, 'color': border_color, 'text-size': '75%', - 'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em', - 'border-radius': '0 3px 0 0' - } - - // create and add the button to all the code blocks that contain >>> - div.each(function(index) { - var jthis = $(this); - if (jthis.find('.gp').length > 0) { - var button = $('>>>'); - button.css(button_styles) - button.attr('title', hide_text); - button.data('hidden', 'false'); - jthis.prepend(button); - } - // tracebacks (.gt) contain bare text elements that need to be - // wrapped in a span to work with .nextUntil() (see later) - jthis.find('pre:has(.gt)').contents().filter(function() { - return ((this.nodeType == 3) && (this.data.trim().length > 0)); - }).wrap(''); - }); - - // define the behavior of the button when it's clicked - $('.copybutton').click(function(e){ - e.preventDefault(); - var button = $(this); - if (button.data('hidden') === 'false') { - // hide the code output - button.parent().find('.go, .gp, .gt').hide(); - button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden'); - button.css('text-decoration', 'line-through'); - button.attr('title', show_text); - button.data('hidden', 'true'); - } else { - // show the code output - button.parent().find('.go, .gp, .gt').show(); - button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible'); - button.css('text-decoration', 'none'); - button.attr('title', hide_text); - button.data('hidden', 'false'); - } - }); -}); - From 7cbb7705d27f369835e81f959ef49aec29d74847 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Mon, 12 Apr 2021 14:04:16 -0500 Subject: [PATCH 02/11] refactor templates for new theme version; restyle version switcher --- doc/_templates/homepage.html | 42 +++++++++++++ doc/_templates/layout.html | 59 ++----------------- ...docs-navbar.html => version-switcher.html} | 13 +--- doc/conf.py | 1 + 4 files changed, 52 insertions(+), 63 deletions(-) create mode 100644 doc/_templates/homepage.html rename doc/_templates/{docs-navbar.html => version-switcher.html} (53%) diff --git a/doc/_templates/homepage.html b/doc/_templates/homepage.html new file mode 100644 index 00000000000..35a75461c22 --- /dev/null +++ b/doc/_templates/homepage.html @@ -0,0 +1,42 @@ + +
+
+ {% for item in carousel %} + + {% endfor %} +
+
+ +
+

Funders

+
+
+ {% for item in funders -%} +
+ + {{ item.title }} + +
+ {% endfor %} +
+ +

Supporting institutions

+
+
+ {% for inst in institutions -%} +
+ + {{ inst.name }} + +
+ {% endfor %} +
+
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 59638326f56..8cb76c50fcf 100755 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -1,67 +1,20 @@ -{%- extends "pydata_sphinx_theme/layout.html" %} +{%- extends 'pydata_sphinx_theme/layout.html' %} {% block extrahead %} - -{{ super() }} + {{ super() }} {% endblock %} - {% block docs_body %}
{% block body %} {% endblock %} {% if pagename == 'index' %} -
-
- {% for item in carousel %} - - {% endfor %} -
-
- -
-

Funders

-
-
- {% for item in funders -%} -
- - {{ item.title }} - -
- {% endfor %} -
- -

Supporting institutions

-
-
- {% for inst in institutions -%} -
- - {{ inst.name }} - -
- {% endfor %} -
-
- + {%- include 'homepage.html' -%} {% endif %}
{% endblock %} - - -{%- block footer %} -
-

© Copyright {{ copyright }}

-
- +{%- block scripts_end %} + + {{ super() }} {%- endblock %} diff --git a/doc/_templates/docs-navbar.html b/doc/_templates/version-switcher.html similarity index 53% rename from doc/_templates/docs-navbar.html rename to doc/_templates/version-switcher.html index eddebb85d28..c8ad89c9b3a 100644 --- a/doc/_templates/docs-navbar.html +++ b/doc/_templates/version-switcher.html @@ -1,20 +1,13 @@ -{%- extends "pydata_sphinx_theme/docs-navbar.html" %} - -{%- block icon_links -%} - - -{%- include "icon-links.html" with context -%} -{%- endblock %} diff --git a/doc/conf.py b/doc/conf.py index fb46ea4f6ac..245fc8199eb 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -511,6 +511,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): 'use_edit_page_button': False, 'navigation_with_keys': False, 'show_toc_level': 1, + 'navbar_end': ['navbar-icon-links.html', 'version-switcher.html'], 'google_analytics_id': 'UA-37225609-1', } From acdd89452dc8670197398bcc0420ab902e32a46b Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Mon, 12 Apr 2021 16:37:10 -0500 Subject: [PATCH 03/11] homepage tweaks --- doc/_static/mne_logo.svg | 912 +++++++---------------------------- doc/_static/style.css | 1 - doc/_templates/homepage.html | 44 +- doc/conf.py | 9 +- doc/index.rst | 2 +- 5 files changed, 201 insertions(+), 767 deletions(-) diff --git a/doc/_static/mne_logo.svg b/doc/_static/mne_logo.svg index c38d5586c3b..4fbd6baf3bf 100644 --- a/doc/_static/mne_logo.svg +++ b/doc/_static/mne_logo.svg @@ -1,744 +1,176 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + diff --git a/doc/_static/style.css b/doc/_static/style.css index 2b69a39b156..0db4cd83b9f 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -134,7 +134,6 @@ h5.card-header::before { div.frontpage-gallery { overflow: hidden; height: 200px; - max-width: 400px; justify-content: center; } div.frontpage-gallery a { diff --git a/doc/_templates/homepage.html b/doc/_templates/homepage.html index 35a75461c22..6c71b5927e2 100644 --- a/doc/_templates/homepage.html +++ b/doc/_templates/homepage.html @@ -2,34 +2,36 @@
-
-

Funders

-
-
- {% for item in funders -%} -
- - {{ item.title }} - -
- {% endfor %} +
+

Funders

+
+ {% for item in funders -%} +
+ + {{ item.title }} + +
+ {% endfor %} +
-

Supporting institutions

-
+
+

Supporting institutions

{% for inst in institutions -%}
diff --git a/doc/conf.py b/doc/conf.py index 245fc8199eb..e634a9b9a5f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -667,19 +667,20 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): url='https://www.uni-graz.at/', size=md), ], + # \u00AD is an optional hyphen (not rendered unless needed) 'carousel': [ dict(title='Source Estimation', - text='Distributed, sparse, mixed-norm, beamformers, dipole fitting, and more.', # noqa E501 + text='Distributed, sparse, mixed-norm, beam\u00ADformers, dipole fitting, and more.', # noqa E501 url='auto_tutorials/source-modeling/plot_mne_dspm_source_localization.html', # noqa E501 img='sphx_glr_plot_mne_dspm_source_localization_008.gif', alt='dSPM'), dict(title='Machine Learning', - text='Advanced decoding models including time generalization.', + text='Advanced decoding models including time general\u00ADiza\u00ADtion.', # noqa E501 url='auto_tutorials/machine-learning/plot_sensors_decoding.html', img='sphx_glr_plot_sensors_decoding_006.png', alt='Decoding'), dict(title='Encoding Models', - text='Receptive field estimation with optional smoothness priors.', # noqa E501 + text='Receptive field estima\u00ADtion with optional smooth\u00ADness priors.', # noqa E501 url='auto_tutorials/machine-learning/plot_receptive_field.html', img='sphx_glr_plot_receptive_field_001.png', alt='STRF'), @@ -689,7 +690,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): img='sphx_glr_plot_stats_cluster_spatio_temporal_001.png', alt='Clusters'), dict(title='Connectivity', - text='All-to-all spectral and effective connectivity measures.', + text='All-to-all spectral and effective connec\u00ADtivity measures.', # noqa E501 url='auto_examples/connectivity/plot_mne_inverse_label_connectivity.html', # noqa E501 img='sphx_glr_plot_mne_inverse_label_connectivity_001.png', alt='Connectivity'), diff --git a/doc/index.rst b/doc/index.rst index d322d1895f5..c3d6d9216fc 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -18,7 +18,7 @@ MNE-Python Homepage :align: center -.. rst-class:: h4 text-center font-weight-light mb-4 +.. rst-class:: h4 text-center font-weight-light my-4 Open-source Python package for exploring, visualizing, and analyzing human neurophysiological data: MEG, EEG, sEEG, ECoG, NIRS, and more. From 9317f7eb810a6f755ea67bc6969ac64eaeceba07 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Mon, 12 Apr 2021 16:38:37 -0500 Subject: [PATCH 04/11] update institution logo --- .../institution_logos/Telecom_Paris_Tech.png | Bin 5335 -> 0 bytes .../institution_logos/Telecom_Paris_Tech.svg | 1 + doc/conf.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 doc/_static/institution_logos/Telecom_Paris_Tech.png create mode 100644 doc/_static/institution_logos/Telecom_Paris_Tech.svg diff --git a/doc/_static/institution_logos/Telecom_Paris_Tech.png b/doc/_static/institution_logos/Telecom_Paris_Tech.png deleted file mode 100644 index 32eb616fe43f4256ae9fed3a12b98c6b3de8e618..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5335 zcmai&S2!CEpv4nnQ$o}xVzhQk?bsn!tlCA*qA031wPTN{EjC51qGs*Js6DD`RE?l& zZ;HDA`+mRgp6@&7_jq2;(}~s7K~j-3lLG(%Dh+jn!G9e3Uy~C4mpN#w>i=M^r){V@ zIy!nhJpS+Yw!N)wkd7Chl)2l`s;Q|N5fMR0N4L4T>FDTKQBlFi$JbB6ez}TYbn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eIv`xb)}%BkCSJ0(891yRDT3EtYR gp1NLL=pEt9HJk3ign)$qPDFr)st%%7**g4x0ELM25C8xG diff --git a/doc/_static/institution_logos/Telecom_Paris_Tech.svg b/doc/_static/institution_logos/Telecom_Paris_Tech.svg new file mode 100644 index 00000000000..493a00d5e79 --- /dev/null +++ b/doc/_static/institution_logos/Telecom_Paris_Tech.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/doc/conf.py b/doc/conf.py index e634a9b9a5f..1d36ef688de 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -623,7 +623,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): url='https://sci.aalto.fi/', size=md), dict(name='Télécom ParisTech', - img='Telecom_Paris_Tech.png', + img='Telecom_Paris_Tech.svg', url='https://www.telecom-paris.fr/', size=md), dict(name='University of Washington', From a611887e611b6c13542cd642b01af3ff174a400d Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Mon, 12 Apr 2021 16:43:01 -0500 Subject: [PATCH 05/11] tiny wording change --- doc/funding.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/funding.rst b/doc/funding.rst index 72e5ae2f9e3..43d4ccf3454 100644 --- a/doc/funding.rst +++ b/doc/funding.rst @@ -18,7 +18,7 @@ Development of MNE-Python has been supported by: - |czi| **Chan Zuckerberg Initiative:** `EOSS2 `_ -Additionally, many universities or research institutions have supported their employees’ contributions to MNE-Python as part of normal work duties. These institutions are: +Additionally, many universities or research institutions have supported their employees’ contributions to MNE-Python as part of normal work duties. These institutions include: - `Massachusetts General Hospital `_ - `Athinoula A. Martinos Center for Biomedical Imaging `_ From eed10e5d5d19971d14a2857803be54620dcd5632 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Mon, 12 Apr 2021 16:46:00 -0500 Subject: [PATCH 06/11] bump theme version [skip azp][skip github][circle front] --- requirements_doc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_doc.txt b/requirements_doc.txt index c2ca49b86f6..f7b760372c6 100644 --- a/requirements_doc.txt +++ b/requirements_doc.txt @@ -1,6 +1,6 @@ sphinx https://github.com/numpy/numpydoc/archive/main.zip -pydata-sphinx-theme==0.5.0 +pydata-sphinx-theme==0.6.0 sphinx-gallery sphinxcontrib-bibtex>=2.1.2 memory_profiler From cea41ec7162090dd8e4d573c24c71520d57551b8 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Tue, 13 Apr 2021 14:25:43 -0500 Subject: [PATCH 07/11] fix footer/copyright --- doc/_templates/copyright.html | 1 + doc/conf.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 doc/_templates/copyright.html diff --git a/doc/_templates/copyright.html b/doc/_templates/copyright.html new file mode 100644 index 00000000000..abea05537ff --- /dev/null +++ b/doc/_templates/copyright.html @@ -0,0 +1 @@ +

© Copyright {{ copyright }}

diff --git a/doc/conf.py b/doc/conf.py index 1d36ef688de..3554d241077 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -512,6 +512,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): 'navigation_with_keys': False, 'show_toc_level': 1, 'navbar_end': ['navbar-icon-links.html', 'version-switcher.html'], + 'footer_items': ['copyright'], 'google_analytics_id': 'UA-37225609-1', } From 41b1c3f51587551aedc68fd4bc5e9164c551ae5a Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Tue, 13 Apr 2021 14:44:53 -0500 Subject: [PATCH 08/11] tweak gallery breakpoint --- doc/_static/style.css | 2 +- doc/_templates/homepage.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/_static/style.css b/doc/_static/style.css index 0db4cd83b9f..d988271081d 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -133,7 +133,7 @@ h5.card-header::before { /* ***************************************************** front page carousel */ div.frontpage-gallery { overflow: hidden; - height: 200px; + height: 180px; justify-content: center; } div.frontpage-gallery a { diff --git a/doc/_templates/homepage.html b/doc/_templates/homepage.html index 6c71b5927e2..963906cadb8 100644 --- a/doc/_templates/homepage.html +++ b/doc/_templates/homepage.html @@ -2,12 +2,12 @@
{% for item in carousel %} -
+