]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: compute footer copyright year dynamically 70858/head
authorEmmanuel Ameh <eameh@contractor.linuxfoundation.org>
Wed, 5 Aug 2026 22:02:16 +0000 (23:02 +0100)
committerEmmanuel Ameh <eameh@contractor.linuxfoundation.org>
Wed, 5 Aug 2026 22:02:16 +0000 (23:02 +0100)
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 <eameh@contractor.linuxfoundation.org>
doc/conf.py

index 9a3372b93631108433e4e53719a92172c872da09..1691aae1e2a04bfc7be547f861230975013f23f7 100644 (file)
@@ -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()