Skip to content

Commit 9c37cb6

Browse files
committed
[Sphinx] Fix the copyright year to always be the current year.
This is what we were doing manually anyway.
1 parent a5ce139 commit 9c37cb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# serve to show the default.
1212

1313
import sys
14+
from datetime import date
1415

1516
# If extensions (or modules to document with autodoc) are in another directory,
1617
# add these directories to sys.path here. If the directory is relative to the
@@ -40,7 +41,7 @@
4041

4142
# General information about the project.
4243
project = u'Swift'
43-
copyright = u'2015, Apple Inc'
44+
copyright = unicode(date.today().year) + u', Apple Inc'
4445

4546
# The version info for the project you're documenting, acts as replacement for
4647
# |version| and |release|, also used in various other places throughout the

0 commit comments

Comments
 (0)