Skip to content

Commit

Permalink
unpin website theme (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock authored Dec 11, 2024
1 parent 15ada4c commit 85f7f59
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
18 changes: 11 additions & 7 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
--pst-font-family-monospace: 'Source Code Pro', var(--pst-font-family-monospace-system);
}

a[class^="sphx-glr-backref-module-mne_hfo"] {
/* make all MNE-BIDS backrefs bold */
a[class^="sphx-glr-backref-module-mne_connectivity"] {
/* make all MNE-Connectivity backrefs bold */
font-weight: 800;
color: var(--pst-color-link);
}

span.option {
Expand All @@ -19,7 +20,7 @@ html[data-theme="light"] {
--sg-download-a-background-color: var(--pst-color-primary);
--sg-download-a-background-image: unset;
--sg-download-a-border-color: var(--pst-color-border);
--sg-download-a-color: #fff;
--sg-download-a-color: var(--sd-color-primary-text);
--sg-download-a-hover-background-color: var(--pst-color-primary-highlight);
--sg-download-a-hover-box-shadow-1: none;
--sg-download-a-hover-box-shadow-2: none;
Expand All @@ -29,21 +30,24 @@ html[data-theme="dark"] {
--sg-download-a-background-color: var(--pst-color-primary);
--sg-download-a-background-image: unset;
--sg-download-a-border-color: var(--pst-color-border);
--sg-download-a-color: #000;
--sg-download-a-color: var(--sd-color-primary-text);
--sg-download-a-hover-background-color: var(--pst-color-primary-highlight);
--sg-download-a-hover-box-shadow-1: none;
--sg-download-a-hover-box-shadow-2: none;
}

/* script/notebook download buttons */
div.sphx-glr-download a {
.sphx-glr-download a.download {
border-radius: 0.5rem;
/* ↓↓↓↓↓↓↓ these two rules copied from sphinx-design */
box-shadow: 0 .125rem .25rem var(--sd-color-shadow) !important;
text-decoration: none;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

div.sphx-glr-download a code {
.sphx-glr-download a.download::before {
color: var(--sg-download-a-color);
}
.sphx-glr-download a.download code {
color: var(--sg-download-a-color);
}
/* ************************************************* truncate version string */
Expand Down
6 changes: 6 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@
templates_path = ["_templates"]
html_static_path = ["_static"]
html_css_files = ["style.css"]
html_sidebars = {
"whats_new": [],
"install": [],
}

switcher_version_match = "dev" if "dev" in release else version

Expand All @@ -281,6 +285,7 @@
"json_url": "https://mne.tools/mne-connectivity/dev/_static/versions.json",
"version_match": switcher_version_match,
},
"back_to_top_button": False,
}
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
Expand Down Expand Up @@ -346,6 +351,7 @@
"compress_images": ("images", "thumbnails"),
"image_scrapers": scrapers,
"expected_failing_examples": ["../examples/granger_causality.py"],
"show_signature": False,
}

# sphinxcontrib-bibtex
Expand Down
8 changes: 3 additions & 5 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
:orphan:

.. _whats_new:


Expand All @@ -21,17 +19,17 @@ Version 0.8 (in dev)

Enhancements
~~~~~~~~~~~~

*(none yet)*


Bug
~~~

*(none yet)*


Authors
~~~~~~~

*(none yet)*


:doc:`Find out what was new in previous releases <whats_new_previous_releases>`
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ doc = [
'nilearn',
'numpydoc',
'pooch',
'pydata-sphinx-theme==0.14.1',
'pydata-sphinx-theme>=0.14.1',
'PyQt6',
'sphinx!=8.1.0',
'sphinx-copybutton',
Expand Down

0 comments on commit 85f7f59

Please sign in to comment.