Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2db3c56

Browse files
committed
Fix docs copyright year
1 parent 4a22b39 commit 2db3c56

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

changes/7153.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the current year reference for CKAN documentation

doc/conf.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# All configuration values have a default; values that are commented out
1515
# serve to show the default.
1616

17+
from datetime import date
1718
import re
1819
import os
1920
import subprocess
@@ -103,13 +104,17 @@
103104
# General information about the project.
104105
project = u'CKAN'
105106
project_short_name = u'CKAN'
106-
copyright = u'''&copy; 2009-2018 <a href="https://okfn.org/">Open Knowledge Foundation</a> and <a href="https://github.com/ckan/ckan/graphs/contributors">contributors</a>.
107+
copyright = u'&copy; 2009-{} '.format(date.today().strftime("%Y"))
108+
copyright += u'''<a href="https://okfn.org/">Open Knowledge Foundation</a> and
109+
<a href="https://github.com/ckan/ckan/graphs/contributors">contributors</a>.
107110
Licensed under <a
108111
href="https://creativecommons.org/licenses/by-sa/3.0/">Creative Commons
109112
Attribution ShareAlike (Unported) v3.0 License</a>.<br />
110113
<img src="https://licensebuttons.net/l/by-sa/3.0/80x15.png" alt="CC License Logo" />
111-
<a href="https://opendefinition.org/"><img src="https://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" border="0"
112-
alt="{{ _('Open Content') }}" /></a>
114+
<a href="https://opendefinition.org/">
115+
<img src="https://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" border="0"
116+
alt="{{ _('Open Content') }}" />
117+
</a>
113118
'''
114119
html_show_sphinx = False
115120

0 commit comments

Comments
 (0)