Skip to content

Commit 7a87bc4

Browse files
Add git stamp to display the last update timestamp in the documentation. (#219)
1 parent d3f3549 commit 7a87bc4

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/docs.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install pandoc
3030
3131
- uses: actions/checkout@v3
32+
33+
jobs:
34+
post_checkout:
35+
- git fetch --unshallow || true
36+
3237
- run: |
3338
curl -LJO "https://media.tuhh.de/mls/software/conflowgen/docs/data/prepared_dbs/demo_poc.sqlite"
3439
curl -LJO "https://media.tuhh.de/mls/software/conflowgen/docs/data/prepared_dbs/demo_deham_cta.sqlite"

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'enum_tools.autoenum', # automatically document enums
6060
'sphinx_toolbox.more_autodoc.autonamedtuple', # automatically document namedtuples
6161
'nbsphinx', # use Jupyter notebooks to add programmatically created visuals
62+
'sphinx_last_updated_by_git', # Extension to display the last update timestamp and author in the documentation
6263
]
6364

6465
# Add any paths that contain templates here, relative to this directory.
@@ -219,3 +220,4 @@
219220
os.system(f'echo \'mv "{database_name}.sqlite" "{sqlite_databases_directory}"\'')
220221
os.system(f'mv "{database_name}.sqlite" "{sqlite_databases_directory}"')
221222
os.system("echo 'sqlite databases fetched'")
223+

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
'twine', # check and upload package to PyPI
7676

7777
# pip resolution issue - https://github.com/pypa/pip/issues/12430#issuecomment-1849059000
78-
'sphinx-tabs'
78+
'sphinx-tabs',
79+
80+
'sphinx-last-updated-by-git'
7981
],
8082
# a collection of nice-to-haves for working on Jupyter Notebooks - just a favorites list of the authors
8183
'jupyterlab': [

0 commit comments

Comments
 (0)