diff options
| author | Hugo Dahl <hugo@code-jedi.com> | 2021-01-14 18:16:34 -0600 |
|---|---|---|
| committer | Hugo Dahl <hugo@code-jedi.com> | 2021-01-14 18:16:35 -0600 |
| commit | d88bb0b09b54dedd2508ec4ededb63ae562c0d1a (patch) | |
| tree | b8473f0c09ed346b3e036f41d914e83f2f5d2c3e /conf.py | |
| parent | d85e0716166bc73e4d1bdde4a5ee2287fe811750 (diff) | |
Set year from execution date
Set the date (year) of the copyright notice to be the current year at
the time the documentation is generated.
Diffstat (limited to 'conf.py')
| -rw-r--r-- | conf.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -23,6 +23,7 @@ import re import subprocess import sys import urllib.parse +import time import recommonmark from sphinx.transforms import SphinxTransform @@ -101,9 +102,12 @@ redirects_file = 'docs/redirects.txt' # The master toctree document. #master_doc = 'index' +# Get current date (execution) for copyright year +current_date = time.localtime() + # General information about the project. project = 'Adafruit CircuitPython' -copyright = '2014-2021, MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)' +copyright = f'2014-{current_date.tm_year}, MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)' # These are overwritten on ReadTheDocs. # The version info for the project you're documenting, acts as replacement for |
