Merge pull request #4006 from hugodahl/Update-documentation-copyright-date

Update documentation copyright date (Closes #4000)
This commit is contained in:
Scott Shawcroft 2021-01-15 11:51:52 -08:00 committed by GitHub
commit fac4d9c5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ import re
import subprocess import subprocess
import sys import sys
import urllib.parse import urllib.parse
import time
import recommonmark import recommonmark
from sphinx.transforms import SphinxTransform from sphinx.transforms import SphinxTransform
@ -101,9 +102,12 @@ redirects_file = 'docs/redirects.txt'
# The master toctree document. # The master toctree document.
#master_doc = 'index' #master_doc = 'index'
# Get current date (execution) for copyright year
current_date = time.localtime()
# General information about the project. # General information about the project.
project = 'Adafruit CircuitPython' project = 'Adafruit CircuitPython'
copyright = '2014-2020, 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. # These are overwritten on ReadTheDocs.
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for