]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
userguide: dynamically determine copyright date
authorJuliana Fajardini <jufajardini@gmail.com>
Wed, 9 Feb 2022 19:46:24 +0000 (19:46 +0000)
committerVictor Julien <vjulien@oisf.net>
Tue, 29 Mar 2022 05:56:03 +0000 (07:56 +0200)
This uses the date of doc generation to determine the copyright date
for the trailing date. Based on Jeff Lucovsky solution.

doc/userguide/conf.py

index 36570c1654f4d3ac94d0f2b8b36ac1da9db81a21..1474dd87afb83e108ecb777de4da1de3185db250 100644 (file)
@@ -17,6 +17,7 @@ import os
 import shlex
 import re
 import subprocess
+import datetime
 
 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
 
@@ -51,7 +52,8 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'Suricata'
-copyright = u'2016-2022, OISF'
+end_year = datetime.datetime.now().date().year
+copyright = u'2016-{}, OISF'.format(end_year)
 author = u'OISF'
 
 # The version info for the project you're documenting, acts as replacement for