Skip to content

Commit 5ff6d97

Browse files
committed
Format
1 parent 19e7659 commit 5ff6d97

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/conf.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,18 @@
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", hourCycle: "h23"})); }); } )</script>' # noqa: E501
67+
"""<script type="text/javascript">
68+
$(function () {
69+
$("time.localized").each(function () {
70+
var el = $(this);
71+
el.text(new Date(el.attr("datetime")).toLocaleString([], {
72+
dateStyle: "medium",
73+
timeStyle: "long",
74+
hourCycle: "h23"
75+
}));
76+
});
77+
});
78+
</script>"""
6879
)
6980
if os.getenv("MNE_FULL_DATE", "false").lower() != "true":
7081
copyright = f"2012–{td.year}, MNE Developers. Last updated locally." # noqa: A001

0 commit comments

Comments
 (0)