Skip to content

Commit 71d84d5

Browse files
committed
doc dynamically generate copyright year
1 parent 6014571 commit 71d84d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#
1919
import os
2020
import sys
21+
from datetime import datetime
2122

2223
sys.path.insert(0, os.path.abspath(".."))
2324

@@ -52,9 +53,10 @@
5253
# The master toctree document.
5354
master_doc = "index"
5455

56+
today_year = datetime.today().year
5557
# General information about the project.
5658
project = "FastAPI-JSONAPI"
57-
copyright = "2022, MTS AI"
59+
copyright = f"{today_year}, MTS AI"
5860
author = "MTS AI"
5961

6062
# The version info for the project you're documenting, acts as replacement for

0 commit comments

Comments
 (0)