From ccda3f773513d2fff25dae1a419bff42e166c386 Mon Sep 17 00:00:00 2001 From: Frederik Beaujean Date: Tue, 19 Dec 2017 14:33:23 +0100 Subject: [PATCH] [docs] Enter today's year automatically --- docs/conf.py.in | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/conf.py.in b/docs/conf.py.in index 8a2781b..65b214c 100644 --- a/docs/conf.py.in +++ b/docs/conf.py.in @@ -15,6 +15,7 @@ import sys import os import sphinx_py3doc_enhanced_theme +from datetime 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 @@ -53,8 +54,8 @@ master_doc = 'index' # General information about the project. project = u'galario' -copyright = u'2017, Marco Tazzari, Frederik Beaujean, Leonardo Testi' -author = u'Marco Tazzari, Frederik Beaujean, Leonardo Testi' +authors = u'Marco Tazzari, Frederik Beaujean, Leonardo Testi' +copyright = '%d, %s' % (datetime.now().year, authors) # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -240,7 +241,7 @@ latex_elements = { # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). +# authors, documentclass [howto, manual, or own class]). # latex_documents = [ # (master_doc, 'galario.tex', u'galario Documentation', # u'Marco Tazzari, Frederik Beaujean', 'manual'), @@ -273,7 +274,7 @@ latex_elements = { # (source start file, name, description, authors, manual section). man_pages = [ (master_doc, 'galario', u'galario Documentation', - [author], 1) + [authors], 1) ] # If true, show URL addresses after external links. @@ -283,11 +284,11 @@ man_pages = [ # -- Options for Texinfo output ------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, +# (source start file, target name, title, authors, # dir menu entry, description, category) texinfo_documents = [ (master_doc, 'galario', u'galario Documentation', - author, 'galario', 'One line description of project.', + authors, 'galario', 'One line description of project.', 'Miscellaneous'), ]