Mercurial > kallithea
changeset 7756:f68db0c03a78
docs: maintain copyright year from update-copyrights.py
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 21 Jul 2019 03:50:59 +0200 |
parents | a44228cd208b |
children | 6956cd0d6063 |
files | docs/conf.py scripts/update-copyrights.py |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/conf.py Fri Jul 19 01:00:11 2019 +0200 +++ b/docs/conf.py Sun Jul 21 03:50:59 2019 +0200 @@ -44,7 +44,7 @@ # General information about the project. project = u'Kallithea' -copyright = u'2010-2016 by various authors, licensed as GPLv3.' +copyright = u'2010-2019 by various authors, licensed as GPLv3.' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the
--- a/scripts/update-copyrights.py Fri Jul 19 01:00:11 2019 +0200 +++ b/scripts/update-copyrights.py Sun Jul 21 03:50:59 2019 +0200 @@ -155,6 +155,17 @@ format_f=lambda years, name: ' ' + nice_years(years, '–', ', ') + ' ', ) + #docs/conf.py:copyright = u'2010-2016 by various authors, licensed as GPLv3.' + insert_entries( + filename='docs/conf.py', + all_entries=repo_entries, + no_entries=contributor_data.total_ignore, + domain_extra={}, + split_re=r"(?<=copyright = u').*(?= by various authors)", + normalize_name=lambda name: '', + format_f=lambda years, name: nice_years(years, '-', ', ') , + ) + if __name__ == '__main__': main()