Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<li><a href="https://www.au.dk/"><img class="institution" src="{{ pathto('_static/institution_logos/Aarhus.png', 1) }}" title="Aarhus Universitet" alt="Aarhus Universitet"/></a></li>
<li><a href="https://www.uni-graz.at/"><img class="institution" src="{{ pathto('_static/institution_logos/Graz.jpg', 1) }}" title="Karl-Franzens-Universität Graz" alt="Karl-Franzens-Universität Graz"/></a></li>
</ul>
<p class="text-center text-muted small">&copy; Copyright 2012-2020, MNE Developers. Last updated on 2020-03-27.</p>
<p class="text-center text-muted small">&copy; Copyright {{ copyright }}</p>
</div></div></div>
</footer>
<script src="https://mne.tools/versionwarning.js"></script>
Expand Down
12 changes: 8 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

from datetime import date
from datetime import datetime, timezone
from distutils.version import LooseVersion
import gc
import os
Expand Down Expand Up @@ -104,9 +104,13 @@

# General information about the project.
project = u'MNE'
td = date.today()
copyright = u'2012-%s, MNE Developers. Last updated on %s' % (td.year,
td.isoformat())
td = datetime.now(tz=timezone.utc)
copyright = (
'2012-%(year)s, MNE Developers. Last updated '
'<time datetime="%(iso)s" class="localized">%(short)s</time>\n'
'<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
) % dict(year=td.year, iso=td.isoformat(),
short=td.strftime('%Y-%m-%d %H:%M %Z'))

nitpicky = True
nitpick_ignore = [
Expand Down