Skip to content

Commit b309432

Browse files
drammockWouter Kroot
authored andcommitted
Website page load fixes (mostly) (mne-tools#13343)
1 parent 15cffbc commit b309432

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/_templates/sidebar-quicklinks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h5 class="card-header font-weight-bold">Version {{ release }}</h5>
44
<ul class="list-group list-group-flush list-unstyled quicklinks">
55
<li><a href="{{ pathto('auto_tutorials/index.html', 1) }}"><i class="fas fa-book fa-fw"></i> Tutorials</a></li>
66
<li><a href="{{ pathto('development/whats_new.html', 1) }}"><i class="fas fa-newspaper fa-fw"></i> Changelog</a></li>
7-
<li><a href="{{ pathto('help/index.html', 1) }}"><i class="fas fa-circle-question fa-fw"></i> Get help</a></li>
7+
<li><a href="{{ pathto('help/index.html', 1) }}"><i class="fas fa-circle-question fa-fw"></i> Get Help</a></li>
88
<li><a href="{{ pathto('documentation/cite.html', 1) }}"><i class="fas fa-quote-left fa-fw"></i> Cite</a></li>
99
<li><a href="{{ pathto('development/contributing.html', 1) }}"><i class="fas fa-code-branch fa-fw"></i> Contribute</a></li>
1010
<li><a href="{{ pathto('credit.html', 1) }}"><i class="fas fa-hands-clapping fa-fw"></i> Contributors</a></li>

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# (Sphinx looks at variable changes and rewrites all files if some change)
6565
copyright = ( # noqa: A001
6666
f'2012–{td.year}, MNE Developers. Last updated <time datetime="{td.isoformat()}" class="localized">{td.strftime("%Y-%m-%d %H:%M %Z")}</time>\n' # noqa: E501
67-
'<script type="text/javascript">$(function () { $("time.localized").each(function () { var el = $(this); el.text(new Date(el.attr("datetime")).toLocaleString([], {dateStyle: "medium", timeStyle: "long"})); }); } )</script>' # noqa: E501
67+
'<script type="text/javascript">function formatTimestamp() {document.querySelectorAll("time.localized").forEach(el => el.textContent = new Date(el.getAttribute("datetime")).toLocaleString([], {dateStyle: "medium", timeStyle: "long"}));};if (document.readyState != "loading") formatTimestamp();else document.addEventListener("DOMContentLoaded", formatTimestamp);</script>' # noqa: E501
6868
)
6969
if os.getenv("MNE_FULL_DATE", "false").lower() != "true":
7070
copyright = f"2012–{td.year}, MNE Developers. Last updated locally." # noqa: A001
@@ -776,7 +776,7 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
776776
# Theme options are theme-specific and customize the look and feel of a theme
777777
# further. For a list of options available for each theme, see the
778778
# documentation.
779-
switcher_version_match = "dev" if ".dev" in version else version
779+
switcher_version_match = "dev" if ".dev" in release else version
780780
html_theme_options = {
781781
"icon_links": [
782782
dict(

0 commit comments

Comments
 (0)