diff options
| author | Justin Mayer <entroP@gmail.com> | 2022-08-01 12:40:26 +0200 |
|---|---|---|
| committer | Justin Mayer <entroP@gmail.com> | 2022-08-01 12:53:09 +0200 |
| commit | fcfb39b8f2924eaa7928c3235bfc1cdad2cabdff (patch) | |
| tree | 8c44166d80852e312f130d11a34ef7bd62116074 /docs/conf.py | |
| parent | 81b5fbe174f55097a9b0c51802a2dd9f0942e16d (diff) | |
| download | pelican-fcfb39b8f2924eaa7928c3235bfc1cdad2cabdff.tar.gz | |
Improve copyright year logic in Sphinx configuration
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index a391bffa..0211c71a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,4 @@ +import datetime import os import sys @@ -13,7 +14,8 @@ extensions = ['sphinx.ext.autodoc', source_suffix = '.rst' master_doc = 'index' project = 'Pelican' -copyright = '2010 – present, Justin Mayer, Alexis Metaireau, and contributors' +year = datetime.datetime.now().date().year +copyright = f'2010–{year}' exclude_patterns = ['_build'] release = __version__ version = '.'.join(release.split('.')[:1]) |
