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
1 changed files with 5 additions and 1 deletions

View File

@ -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-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.
# The version info for the project you're documenting, acts as replacement for