Skip to content

Commit 08f9118

Browse files
committed
Use Sphinx feature to simplify setting copyright
1 parent 2092876 commit 08f9118

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Configuration for Sphinx.
44
"""
55

6-
import datetime
76
import importlib.metadata
87

98
from packaging.specifiers import SpecifierSet
@@ -24,8 +23,7 @@
2423
source_suffix = ".rst"
2524
master_doc = "index"
2625

27-
year = datetime.datetime.now(tz=datetime.UTC).year
28-
project_copyright = f"{year}, {author}"
26+
project_copyright = f"%Y, {author}"
2927

3028
# Exclude the prompt from copied code with sphinx_copybutton.
3129
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies.

0 commit comments

Comments
 (0)