Skip to content

MAINT: Bump to latest pydata-sphinx-theme#12228

Merged
larsoner merged 4 commits intomne-tools:mainfrom
larsoner:theme
Apr 15, 2024
Merged

MAINT: Bump to latest pydata-sphinx-theme#12228
larsoner merged 4 commits intomne-tools:mainfrom
larsoner:theme

Conversation

@larsoner
Copy link
Copy Markdown
Member

Just to remind us to look at and adjust this @drammock

@larsoner larsoner added this to the 1.7 milestone Nov 21, 2023
@larsoner
Copy link
Copy Markdown
Member Author

@drammock
Copy link
Copy Markdown
Member

drammock commented Apr 12, 2024 via email

@drammock
Copy link
Copy Markdown
Member

@larsoner I pushed a few commits. Based on local builds I'm happy with how this looks now (I removed several of our overrides to hew closer to the stock theme; we may want to deviate again eventually but if so we should do it intentionally, not by keeping around old overrides based on an old theme style).

Comment on lines +96 to +97
.. admonition:: Git GUI alternative
:class: sidebar note
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all changes in this file are just things I happened to notice when reviewing the theme update.

Comment on lines -9 to -10
.. contents:: Page contents
:local:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in-page TOC is built into the theme in the right sidebar, so this is redundant

Comment on lines -10 to -11
--mne-color-primary: #007bff;
--mne-color-primary-highlight: #0063cc;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these blues don't look good against the new theme. If we really want blue as primary, we could consider swapping the theme's info (blue) and primary (teal) colors, though there's an a11y question about color difference between link and hover, we'd have to make sure info is still different enough from hover color to satisfy WCAG

Comment on lines -102 to -105
/* prev/next links */
.prev-next-area a p.prev-next-title {
color: var(--pst-color-link);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fixed upstream

Comment on lines -253 to -264
/* sidebar nav */
nav.bd-links .active > a,
nav.bd-links .active:hover > a,
.toc-entry a.nav-link.active,
.toc-entry a.nav-link.active:hover {
color: var(--pst-color-link);
}
/* sidebar nav hover */
nav.bd-links li > a:hover,
.toc-entry a.nav-link:hover {
color: var(--pst-color-secondary);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream defaults are good enough now I think

Copy link
Copy Markdown
Member Author

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love all the removed lines, thanks @drammock !

@larsoner larsoner marked this pull request as ready for review April 15, 2024 12:53
@larsoner larsoner merged commit bf2d368 into mne-tools:main Apr 15, 2024
@larsoner larsoner deleted the theme branch April 15, 2024 12:53
larsoner added a commit to larsoner/mne-python that referenced this pull request Apr 15, 2024
* upstream/main: (50 commits)
  ENH: Improve OPM auditory dataset and example (mne-tools#12539)
  MAINT: Bump to latest pydata-sphinx-theme (mne-tools#12228)
  MRG: Simplify manual installation instructions a little by dropping explicit mention of (lib)mamba (mne-tools#12362)
  fix PSD weights handling when bad annotations present (mne-tools#12538)
  Fix phase loading (mne-tools#12537)
  align FFT windows to good data spans in psd_array_welch (mne-tools#12536)
  explicitly disallow multitaper in presence of bad annotations (mne-tools#12535)
  MAINT: Clean up PyVista contexts (mne-tools#12533)
  MAINT: Complete API change of ordered (mne-tools#12534)
  MAINT: Reinstall statsmodels and improve logging (mne-tools#12532)
  MAINT: Remove scipy.signal.morlet2 (mne-tools#12531)
  Update README badge links (mne-tools#12529)
  BUG: Fix bug with reading his_id from snirf (mne-tools#12526)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#12524)
  Fix file format check in _check_eeglab_fname function (mne-tools#12523)
  MAINT: Reenable picard in pre testing (mne-tools#12525)
  MAINT: Bump to large resource class (mne-tools#12522)
  MAINT: Restore 2 jobs on Windows (mne-tools#12520)
  Add exclude_after_unique option to mne.io.read_raw_edf/read_raw_edf to search for exclude channels after making channel names unique (mne-tools#12518)
  Improve consistency of sensor types in code and documentation (mne-tools#12509)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants