Skip to content

Commit

Permalink
Fixing the footer issue with the date.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruAristimunha committed Jul 23, 2022
1 parent 6968758 commit 9962143
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ def linkcode_resolve(domain, info):
# We need to triage which date type we use so that incremental builds work
# (Sphinx looks at variable changes and rewrites all files if some change)
copyright = (
f'2018–{td.year}, Braindecode Developers. Last updated <time datetime="{td.isoformat()}" class="localized">{td.strftime("%Y-%m-%d %H:%M %Z")}</time>\n' # noqa: E501
'<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
f'2018–{td.year}, Braindecode Developers.') # noqa: E501

author = 'Braindecode developers'

Expand Down Expand Up @@ -254,7 +253,7 @@ def linkcode_resolve(domain, info):
'show_toc_level': 1,
'navbar_end': 'version-switcher',
'switcher': {
'json_url': 'https://raw.githubusercontent.com/robintibor/braindecode-1/nicer-docs/docs/_static/versions.json',
'json_url': 'https://github.com/braindecode/braindecode/raw/master/docs/_static/versions.json',
'version_match': switcher_version_match,
},
'footer_items': ['copyright'],
Expand Down

0 comments on commit 9962143

Please sign in to comment.