Skip to content

Commit b2a8d80

Browse files
authored
add hook to format copyright string
1 parent a057d2b commit b2a8d80

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs_overrides/hooks/year.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from datetime import datetime
2+
def on_config(config, **kwargs):
3+
year: str = str(datetime.now().year)
4+
config.copyright = config.copyright.format(year=year)

0 commit comments

Comments
 (0)