docs: auto-set copyright year to current year
This commit is contained in:
parent
7b87d98fff
commit
f386db380b
@ -12,6 +12,7 @@
|
|||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import sys, os
|
import sys, os
|
||||||
|
import datetime
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# 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
|
# 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.
|
# General information about the project.
|
||||||
project = u'Slixmpp'
|
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
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user