Skip to content

Commit b4dc4aa

Browse files
committed
chore: prepare for v2
1 parent 29c4b36 commit b4dc4aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import sys
1616
import os
1717
import re
18+
from datetime import datetime
1819

1920
# If extensions (or modules to document with autodoc) are in another directory,
2021
# add these directories to sys.path here. If the directory is relative to the
@@ -55,15 +56,16 @@
5556

5657
# General information about the project.
5758
project = u'Syncthing'
58-
copyright = u'2014-2019, The Syncthing Authors'
59+
year = datetime.now().year
60+
copyright = f'2014-{year}, The Syncthing Authors'
5961

6062
# The version info for the project you're documenting, acts as replacement for
6163
# |version| and |release|, also used in various other places throughout the
6264
# built documents.
6365
#
6466
# The full version, including alpha/beta/rc tags.
6567

66-
release = 'v1'
68+
release = 'v2'
6769
try:
6870
release = open('RELEASE', 'r').read().strip()
6971
except FileNotFoundError:

0 commit comments

Comments
 (0)