|
12 | 12 | # serve to show the default. |
13 | 13 |
|
14 | 14 | import sys, os |
| 15 | +from datetime import datetime |
15 | 16 |
|
16 | 17 | # If extensions (or modules to document with autodoc) are in another directory, |
17 | 18 | # add these directories to sys.path here. If the directory is relative to the |
|
40 | 41 | master_doc = 'index' |
41 | 42 |
|
42 | 43 | # General information about the project. |
43 | | -project = u'CMS' |
44 | | -copyright = u'2020, The CMS development team' |
| 44 | +project = "CMS" |
| 45 | +_current_year = datetime.now().year |
| 46 | +copyright = f"{_current_year}, The CMS development team" |
45 | 47 |
|
46 | 48 | # The version info for the project you're documenting, acts as replacement for |
47 | 49 | # |version| and |release|, also used in various other places throughout the |
|
183 | 185 | # Grouping the document tree into LaTeX files. List of tuples |
184 | 186 | # (source start file, target name, title, author, documentclass [howto/manual]). |
185 | 187 | latex_documents = [ |
186 | | - ('index', 'cms.tex', u'CMS Documentation', |
187 | | - u'The CMS development team', 'manual'), |
| 188 | + ("index", "cms.tex", "CMS Documentation", "The CMS development team", "manual"), |
188 | 189 | ] |
189 | 190 |
|
190 | 191 | # The name of an image file (relative to this directory) to place at the top of |
|
212 | 213 |
|
213 | 214 | # One entry per manual page. List of tuples |
214 | 215 | # (source start file, name, description, authors, manual section). |
215 | | -man_pages = [ |
216 | | - ('index', 'CMS', u'CMS Documentation', |
217 | | - [u'The CMS development team'], 1) |
218 | | -] |
| 216 | +man_pages = [("index", "CMS", "CMS Documentation", ["The CMS development team"], 1)] |
219 | 217 |
|
220 | 218 | # If true, show URL addresses after external links. |
221 | 219 | #man_show_urls = False |
|
227 | 225 | # (source start file, target name, title, author, |
228 | 226 | # dir menu entry, description, category) |
229 | 227 | texinfo_documents = [ |
230 | | - ('index', 'CMS', u'CMS Documentation', |
231 | | - u'The CMS development team', 'CMS', 'Contest Management System.', |
232 | | - 'Miscellaneous'), |
| 228 | + ( |
| 229 | + "index", |
| 230 | + "CMS", |
| 231 | + "CMS Documentation", |
| 232 | + "The CMS development team", |
| 233 | + "CMS", |
| 234 | + "Contest Management System.", |
| 235 | + "Miscellaneous", |
| 236 | + ), |
233 | 237 | ] |
234 | 238 |
|
235 | 239 | # Documents to append as an appendix to all manuals. |
|
0 commit comments