From d0724b60f578496a87119627bd01e3bf550ec2ce Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Thu, 14 Jun 2018 15:12:45 +0200 Subject: [PATCH] Problem: Copyright year wrong in docs Solution: Compute the copyright year when generating the docs --- docs/source/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index dfbf3f9..31edb2c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -29,9 +29,10 @@ # # needs_sphinx = '1.0' -from recommonmark.parser import CommonMarkParser +import datetime import sphinx_rtd_theme +from recommonmark.parser import CommonMarkParser # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom @@ -58,7 +59,8 @@ master_doc = 'index' # General information about the project. project = 'BigchainDB Javascript Driver' -copyright = '2017, BigchainDB' +now = datetime.datetime.now() +copyright = str(now.year) + ', BigchainDB Contributors' author = 'BigchainDB Contributors' # The version info for the project you're documenting, acts as replacement for