summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Klien <flowolf@klienux.org>2018-10-15 18:09:21 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-28 10:48:23 +0100
commitf386db380b43ac37982d46ea36d736bacee020ff (patch)
treef98216f5a6f59524132186a978fa0117dde42d90
parent7b87d98fff05f2ff426a399a36f86a71c419c6bf (diff)
downloadslixmpp-f386db380b43ac37982d46ea36d736bacee020ff.tar.gz
slixmpp-f386db380b43ac37982d46ea36d736bacee020ff.tar.bz2
slixmpp-f386db380b43ac37982d46ea36d736bacee020ff.tar.xz
slixmpp-f386db380b43ac37982d46ea36d736bacee020ff.zip
docs: auto-set copyright year to current year
-rw-r--r--docs/conf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 1b75cefa..208c0cdf 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,6 +12,7 @@
# serve to show the default.
import sys, os
+import datetime
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -45,7 +46,8 @@ master_doc = 'index'
# General information about the project.
project = u'Slixmpp'
-copyright = u'2011, Nathan Fritz, Lance Stout'
+year = datetime.datetime.now().year
+copyright = u'{}, Nathan Fritz, Lance Stout'.format(year)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the