From 044b40eadce61c1ed1c720c41d642b154dbf6165 Mon Sep 17 00:00:00 2001 From: Mebin Abraham Date: Fri, 17 Jul 2026 14:14:48 +0100 Subject: [PATCH 1/2] fix: markdownlint in README.md --- README.md | 13 ++++++++++--- project_template/README.md.jinja | 10 +++++++--- .../{% if is_public_repo %}LICENSE{% endif %} | 2 +- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 98c4214..17ec991 100644 --- a/README.md +++ b/README.md @@ -572,14 +572,21 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details. ## License -See [LICENSE](LICENSE) for details. +Copyright © 2024 [Crown Copyright][crown-copyright] (Office for National Statistics) + +Unless stated otherwise, the codebase is released under the [MIT License](LICENSE). +This covers both the codebase and any sample code in the documentation. + +The documentation in this repo are released under the [Open Government Licence v3.0][ogl-v3]. --- [//]: # (:TODO: Enable link checking once https://github.com/tcort/markdown-link-check/issues/250 is resolved.) - [alternative-software-tools]: #alternatives-softwaretools [updating-project]: #updating-project-with-template-changes - + +[crown-copyright]: https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/ + +[ogl-v3]: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/ diff --git a/project_template/README.md.jinja b/project_template/README.md.jinja index 5a964a5..cdce68c 100644 --- a/project_template/README.md.jinja +++ b/project_template/README.md.jinja @@ -187,9 +187,13 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details. ## License -Copyright © 2024 [Crown Copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/) (Office for National Statistics) +Copyright © 2026 [Crown Copyright][crown-copyright] (Office for National Statistics) -Unless stated otherwise, the codebase is released under the [MIT License](LICENSE). This covers both the codebase and any sample code in the documentation. +Unless stated otherwise, the codebase is released under the [MIT License](LICENSE). +This covers both the codebase and any sample code in the documentation. -The documentation in this repo are released under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). +The documentation in this repo are released under the [Open Government Licence v3.0][ogl-v3]. + +[crown-copyright]: https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/ +[ogl-v3]: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/ {%- endif %} diff --git a/project_template/{% if is_public_repo %}LICENSE{% endif %} b/project_template/{% if is_public_repo %}LICENSE{% endif %} index f0de560..78db4db 100644 --- a/project_template/{% if is_public_repo %}LICENSE{% endif %} +++ b/project_template/{% if is_public_repo %}LICENSE{% endif %} @@ -1,5 +1,5 @@ The MIT License (MIT) -Copyright (c) 2024, Crown Copyright (Office for National Statistics) +Copyright (c) 2026, Crown Copyright (Office for National Statistics) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the From 91d02d6b679e4a8e6db8407aeb4aad07a6741659 Mon Sep 17 00:00:00 2001 From: Mebin Abraham Date: Fri, 17 Jul 2026 14:19:53 +0100 Subject: [PATCH 2/2] feat: dynamically generate LICENCE year --- project_template/README.md.jinja | 2 +- ...endif %} => {% if is_public_repo %}LICENSE{% endif %}.jinja} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename project_template/{{% if is_public_repo %}LICENSE{% endif %} => {% if is_public_repo %}LICENSE{% endif %}.jinja} (92%) diff --git a/project_template/README.md.jinja b/project_template/README.md.jinja index cdce68c..7bb3093 100644 --- a/project_template/README.md.jinja +++ b/project_template/README.md.jinja @@ -187,7 +187,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details. ## License -Copyright © 2026 [Crown Copyright][crown-copyright] (Office for National Statistics) +Copyright © {{ '%Y' | strftime }} [Crown Copyright][crown-copyright] (Office for National Statistics) Unless stated otherwise, the codebase is released under the [MIT License](LICENSE). This covers both the codebase and any sample code in the documentation. diff --git a/project_template/{% if is_public_repo %}LICENSE{% endif %} b/project_template/{% if is_public_repo %}LICENSE{% endif %}.jinja similarity index 92% rename from project_template/{% if is_public_repo %}LICENSE{% endif %} rename to project_template/{% if is_public_repo %}LICENSE{% endif %}.jinja index 78db4db..dbdf200 100644 --- a/project_template/{% if is_public_repo %}LICENSE{% endif %} +++ b/project_template/{% if is_public_repo %}LICENSE{% endif %}.jinja @@ -1,5 +1,5 @@ The MIT License (MIT) -Copyright (c) 2026, Crown Copyright (Office for National Statistics) +Copyright (c) {{ '%Y' | strftime }}, Crown Copyright (Office for National Statistics) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the