Skip to content

Commit 52a541a

Browse files
authored
Enh/add date modified documentation (#559)
1 parent 63187cd commit 52a541a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 # fetch full git history for mkdocs-git-revision-date-localized-plugin.
1416
- name: Configure Git Credentials
1517
run: |
1618
git config user.name github-actions[bot]

mkdocs.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ theme:
1010
- navigation.footer
1111
- content.action.view
1212
- content.action.edit
13+
- content.footer.last-updated
1314
icon:
1415
edit: material/pencil
1516
view: material/eye
@@ -73,3 +74,9 @@ markdown_extensions:
7374
plugins:
7475
- section-index
7576
- search
77+
- git-revision-date-localized:
78+
type: datetime
79+
fallback_to_build_date: true
80+
locale: en
81+
timezone: UTC
82+
enable_creation_date: false

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ dev = [
5454
docs = [
5555
"mkdocs-material",
5656
"mkdocs-section-index",
57+
"mkdocs-git-revision-date-localized-plugin",
5758
]
5859

5960
[tool.setuptools]

0 commit comments

Comments
 (0)