From 083e9edbd98d0f7f63d0691d8faadb324ab68c50 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 25 Jan 2021 11:33:29 -0500 Subject: [PATCH 1/2] MAINT: Fix doc date [skip azp] [skip github] --- doc/_templates/layout.html | 2 +- doc/conf.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 8ba519efa2e..40a90f0eb01 100755 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -82,7 +82,7 @@
  • Aarhus Universitet
  • Karl-Franzens-Universität Graz
  • -

    © Copyright 2012-2020, MNE Developers. Last updated on 2020-03-27.

    +

    {{ copyright }}

    diff --git a/doc/conf.py b/doc/conf.py index 204dc860f2b..7bcbfabf7c2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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 @@ -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 ' + '\n' + '' # noqa: E501 +) % dict(year=td.year, iso=td.isoformat(), + short=td.strftime('%Y-%m-%d %H:%M %Z')) nitpicky = True nitpick_ignore = [ From 1dd0da50ab46c0ed19d49e2d57542508b17b13e4 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 25 Jan 2021 12:58:49 -0500 Subject: [PATCH 2/2] FIX: GitHub formatting [skip azp] [skip github] --- doc/_templates/layout.html | 2 +- doc/conf.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 40a90f0eb01..918a1ca2d71 100755 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -82,7 +82,7 @@
  • Aarhus Universitet
  • Karl-Franzens-Universität Graz
  • -

    {{ copyright }}

    +

    © Copyright {{ copyright }}

    diff --git a/doc/conf.py b/doc/conf.py index 7bcbfabf7c2..18807b3f31f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -106,9 +106,9 @@ project = u'MNE' td = datetime.now(tz=timezone.utc) copyright = ( - '© 2012-%(year)s, MNE Developers. Last updated ' + '2012-%(year)s, MNE Developers. Last updated ' '\n' - '' # noqa: E501 + '' # noqa: E501 ) % dict(year=td.year, iso=td.isoformat(), short=td.strftime('%Y-%m-%d %H:%M %Z'))