Skip to content

Commit 46089ff

Browse files
authored
Add dynamic year (#12)
1 parent 7457ea2 commit 46089ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import pathlib
2020
import recommonmark
2121
import requests
22+
from datetime import datetime
2223
from recommonmark.transform import AutoStructify
2324

2425
HERE = pathlib.Path(__file__).parent
@@ -83,7 +84,8 @@
8384
# -- Project information -----------------------------------------------------
8485

8586
project = "jupyterlab-contrib"
86-
copyright = "2020, JupyterLab Contrib Team"
87+
year = datetime.strftime(datetime.now(), "%Y")
88+
copyright = f"2020-{year}, JupyterLab Contrib Team"
8789
author = "JupyterLab Contrib Team"
8890

8991
# The full version, including alpha/beta/rc tags

0 commit comments

Comments
 (0)