userguide: dynamically determine copyright date

This uses the date of doc generation to determine the copyright date
for the trailing date. Based on Jeff Lucovsky solution.
pull/7186/head
Juliana Fajardini 3 years ago committed by Victor Julien
parent 67af1504b3
commit e0c8dba7ac

@ -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

Loading…
Cancel
Save