Skip to content

Commit b44386a

Browse files
authored
chore: make docs copyright year automatic (#77)
* chore: make docs copyright year automatic * replace year with present in license file
1 parent c208a9b commit b44386a

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,4 @@ nb-configuration.xml
128128
/.phpunit.*.cache
129129
/.phpunit.cache
130130
/.php-cs-fixer.php
131+
docs/assets/__pycache__/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22

33
Copyright (c) 2023 Michal Sniatala
4-
Copyright (c) 2023 CodeIgniter Foundation
4+
Copyright (c) 2023-present CodeIgniter Foundation
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

docs/assets/hooks.py

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

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ extra:
5353
site_url: https://queue.codeigniter.com/
5454
repo_url: https://github.com/codeigniter4/queue
5555
edit_uri: edit/develop/docs/
56-
copyright: Copyright © 2025 CodeIgniter Foundation.
56+
copyright: Copyright © 2023-{year} CodeIgniter Foundation.
57+
58+
hooks:
59+
- docs/assets/hooks.py
5760

5861
markdown_extensions:
5962
- admonition

0 commit comments

Comments
 (0)