From: Emmanuel Ameh Date: Wed, 5 Aug 2026 22:02:16 +0000 (+0100) Subject: doc: compute footer copyright year dynamically X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=19389e67fb0c12acb6235f0ee9c2f22a1b11df6f;p=ceph.git doc: compute footer copyright year dynamically The footer on every docs.ceph.com page showed a hardcoded 2016 copyright. Render it as a range ending in the current build year. Fixes: https://tracker.ceph.com/issues/79036 Signed-off-by: Emmanuel Ameh --- diff --git a/doc/conf.py b/doc/conf.py index 9a3372b93631..1691aae1e2a0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,3 +1,4 @@ +import datetime import fileinput import glob import logging @@ -55,7 +56,7 @@ def is_release_eol(codename): # project information project = 'Ceph' -copyright = ('2016, Ceph authors and contributors. ' +copyright = (f'2016-{datetime.date.today().year}, Ceph authors and contributors. ' 'Licensed under Creative Commons Attribution Share Alike 3.0 ' '(CC-BY-SA-3.0)') version, codename, release = parse_ceph_release()