diff --git a/.gitignore b/.gitignore index 3e4d68617..00ffd45bd 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,4 @@ nb-configuration.xml /.phpunit.*.cache /.php-cs-fixer.php +/docs/assets/__pycache__/ diff --git a/LICENSE b/LICENSE index ba4b519d5..9c79c150b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ The MIT License (MIT) Copyright (c) 2020-2022 Lonnie Ezell -Copyright (c) 2022-2025 CodeIgniter Foundation +Copyright (c) 2022-present CodeIgniter Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/assets/hooks.py b/docs/assets/hooks.py new file mode 100644 index 000000000..41369b51d --- /dev/null +++ b/docs/assets/hooks.py @@ -0,0 +1,5 @@ +from datetime import datetime + +def on_config(config, **kwargs): + config.copyright = config.copyright.format(year=datetime.now().year) + return config diff --git a/mkdocs.yml b/mkdocs.yml index 6fde754ad..12a177683 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -57,7 +57,10 @@ extra: site_url: https://shield.codeigniter.com/ repo_url: https://github.com/codeigniter4/shield edit_uri: edit/develop/docs/ -copyright: Copyright © 2023-2025 CodeIgniter Foundation. +copyright: Copyright © 2022-{year} CodeIgniter Foundation. + +hooks: + - docs/assets/hooks.py markdown_extensions: - pymdownx.superfences