packaging.python.org icon indicating copy to clipboard operation
packaging.python.org copied to clipboard

Add a last edited date to source documents

Open willingc opened this issue 2 years ago • 1 comments

We know that some docs are out of date. It would be helpful to display an accurate "last edited date" on a page.

@pradyunsg Any ideas on how to do that efficiently?

willingc avatar Nov 03 '23 05:11 willingc

https://github.com/mgeier/sphinx-last-updated-by-git

https://github.com/jdillard/sphinx-gitstamp

Both of these extensions gather git information from the repo and inject that into the build. I still have a TODO over at Lutra to properly deep dive into this aspect and present it.

IIRC, the first one should be easier to place into the docs without theme changes, and the latter would be a better fit for something to integrate into a theme/via templates.

pradyunsg avatar Nov 03 '23 09:11 pradyunsg