Skip to content

Commit d0724b6

Browse files
authored
Problem: Copyright year wrong in docs
Solution: Compute the copyright year when generating the docs
1 parent d363010 commit d0724b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/conf.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
#
3030
# needs_sphinx = '1.0'
3131

32-
from recommonmark.parser import CommonMarkParser
32+
import datetime
3333
import sphinx_rtd_theme
3434

35+
from recommonmark.parser import CommonMarkParser
3536

3637
# Add any Sphinx extension module names here, as strings. They can be
3738
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -58,7 +59,8 @@
5859

5960
# General information about the project.
6061
project = 'BigchainDB Javascript Driver'
61-
copyright = '2017, BigchainDB'
62+
now = datetime.datetime.now()
63+
copyright = str(now.year) + ', BigchainDB Contributors'
6264
author = 'BigchainDB Contributors'
6365

6466
# The version info for the project you're documenting, acts as replacement for

0 commit comments

Comments
 (0)