Skip to content

Commit c033a76

Browse files
authored
docs: make footer dynamic (#160)
* fix #159: make footer dynamic Signed-off-by: sushant-suse <[email protected]> * fix #159: fixed ruff issue Signed-off-by: sushant-suse <[email protected]> --------- Signed-off-by: sushant-suse <[email protected]>
1 parent f6d83e2 commit c033a76

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

docs/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
# -- Project information
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9+
from datetime import datetime
10+
911
from docbuild.__about__ import __version__
1012

1113
project = "docbuild"
12-
copyright = "2025, Tom Schraitle" # noqa: A001
13-
author = "Tom Schraitle"
14+
current_year = datetime.now().year
15+
copyright = f"{current_year}, Tom Schraitle | Sushant Gaurav" # noqa: A001
16+
author = "Tom Schraitle, Sushant Gaurav"
1417
release = __version__
1518

1619
gh_user = "openSUSE"

src/docbuild/models/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class Manifest(BaseModel):
173173
"html": "/sles/16.0/html/SLE-comparison/",
174174
"pdf": "/sles/16.0/pdf/SLE-comparison_en.pdf",
175175
},
176-
"dateModified": "2025-11-04",
176+
"dateModified": date.today().isoformat(),
177177
}
178178
],
179179
"tasks": ["About"],

tests/models/test_manifest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def test_single_document_serialize_date_non_none() -> None:
8888
description="Example description",
8989
dcfile="DC-EXAMPLE",
9090
format=DocumentFormat(html="/example-html"),
91-
datemodified=date(2025, 1, 2),
91+
datemodified=date(2026, 1, 2),
9292
).model_dump(by_alias=True)
93-
assert serialized["dateModified"] == "2025-01-02"
93+
assert serialized["dateModified"] == "2026-01-02"
9494

9595

9696
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)