Skip to content

Commit

Permalink
Add git last updated sphinx extension
Browse files Browse the repository at this point in the history
Shows when each page was last updated in the footer
  • Loading branch information
sciencewhiz committed Jan 24, 2025
1 parent f8a0b76 commit e87cdf8
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand All @@ -35,6 +37,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand Down Expand Up @@ -68,6 +72,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: frc-docs
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand Down
22 changes: 18 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ sphinx = "==7.4.7"
sphinx_design= "==0.6.1"
sphinx_copybutton = "==0.5.2"
sphinx-hoverxref = "==1.4.0"
sphinx-last-updated-by-git = "==0.3.8"
sphinx-notfound-page = "==1.0.4"
sphinx-rtd-theme = "==3.0.0"
sphinx-rtd-theme = "==3.0.2"
sphinx-tabs = "==3.4.5"
sphinx-toolbox = "==3.8.0"
modern-sphinx-version-warning = "==1.1.6"
Expand Down
3 changes: 3 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ build:
python: "3.9"
apt_packages:
- librsvg2-bin
jobs:
post_checkout:
- git fetch --unshallow || true

formats:
- htmlzip
Expand Down
1 change: 1 addition & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"sphinx_toolbox.collapse",
"sphinx_copybutton",
"sphinx_contributors",
"sphinx_last_updated_by_git",
]

local_extensions = [
Expand Down
3 changes: 2 additions & 1 deletion source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ sphinx-copybutton==0.5.2 ; python_version >= "3.9" and python_version < "3.13"
sphinx-design==0.6.1 ; python_version >= "3.9" and python_version < "3.13"
sphinx-hoverxref==1.4.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx-jinja2-compat==0.3.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx-last-updated-by-git==0.3.8 ; python_version >= "3.9" and python_version < "3.13"
sphinx-notfound-page==1.0.4 ; python_version >= "3.9" and python_version < "3.13"
sphinx-prompt==1.8.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx-rtd-theme==3.0.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx-rtd-theme==3.0.2 ; python_version >= "3.9" and python_version < "3.13"
sphinx-tabs==3.4.5 ; python_version >= "3.9" and python_version < "3.13"
sphinx-toolbox==3.8.0 ; python_version >= "3.9" and python_version < "3.13"
sphinx==7.4.7 ; python_version >= "3.9" and python_version < "3.13"
Expand Down

0 comments on commit e87cdf8

Please sign in to comment.