summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2021-01-15 11:51:52 -0800
committerGitHub <noreply@github.com>2021-01-15 11:51:52 -0800
commitfac4d9c5b9ac2629021edb262468b7f0d98e83c1 (patch)
tree8176569c3efcb31aa5da27b19c09e78b6c0e4617
parent03e9415b86085f52990126c16e82d8916a9d8862 (diff)
parentd88bb0b09b54dedd2508ec4ededb63ae562c0d1a (diff)
Merge pull request #4006 from hugodahl/Update-documentation-copyright-date
Update documentation copyright date (Closes #4000)
-rw-r--r--conf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/conf.py b/conf.py
index 590e5bc2c..c2d3d37ee 100644
--- a/conf.py
+++ b/conf.py
@@ -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