From 03bfbb542410869a8e37013fe933cfb8df75d763 Mon Sep 17 00:00:00 2001 From: dextrot <131444479+dextrot@users.noreply.github.com> Date: Thu, 22 Feb 2024 02:31:05 +0530 Subject: [PATCH 1/4] dynamically update copyright year in footer --- docs/source/conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 28effac..1d5b041 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -49,9 +49,14 @@ # The master toctree document. master_doc = "index" +from datetime import date + +year = date.today().year + + # General information about the project. project = "gliderpy" -copyright = "2023, Filipe Fernandes" +copyright = str(year) + ", Filipe Fernandes" author = "Filipe Fernandes" # The version info for the project you're documenting, acts as replacement for From 2092d1f02399a9d5a5c2bb4ae6b387b2daf3140d Mon Sep 17 00:00:00 2001 From: dextrot <131444479+dextrot@users.noreply.github.com> Date: Thu, 22 Feb 2024 02:39:02 +0530 Subject: [PATCH 2/4] remove extra newline --- docs/source/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 1d5b041..f5f2021 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -53,7 +53,6 @@ year = date.today().year - # General information about the project. project = "gliderpy" copyright = str(year) + ", Filipe Fernandes" From 5af4afb9fd990d5fb0e59449b3532110a80be33a Mon Sep 17 00:00:00 2001 From: dextrot <131444479+dextrot@users.noreply.github.com> Date: Thu, 22 Feb 2024 02:46:49 +0530 Subject: [PATCH 3/4] fix failing pre-commit check --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index f5f2021..ecae6ca 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -55,7 +55,7 @@ # General information about the project. project = "gliderpy" -copyright = str(year) + ", Filipe Fernandes" +copyright = str(year) + ", Filipe Fernandes" author = "Filipe Fernandes" # The version info for the project you're documenting, acts as replacement for From c8a327f95fd121e029634d9cb2ee3e3ee8290f5c Mon Sep 17 00:00:00 2001 From: dextrot <131444479+dextrot@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:59:11 +0530 Subject: [PATCH 4/4] commit suggestion: use f-string Co-authored-by: Filipe --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index ecae6ca..0016b59 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -55,7 +55,7 @@ # General information about the project. project = "gliderpy" -copyright = str(year) + ", Filipe Fernandes" +copyright = f"{year}, Filipe Fernandes" author = "Filipe Fernandes" # The version info for the project you're documenting, acts as replacement for