Skip to main content

Get the "last updated" time for each Sphinx page from Git

Project description

This is a little Sphinx extension that does just that.

It also checks for included files.

If a page doesn’t have a source file (or if Git is broken or whatever), its last_updated time is set to None.

The default value for html_last_updated_fmt is changed to the empty string.

Usage
  1. Install the Python package sphinx-last-updated-by-git

  2. Add sphinx_last_updated_by_git to extensions in your conf.py

  3. Run Sphinx!

License

BSD-2-Clause (same as Sphinx itself), for more information take a look at the LICENSE file.

Similar stuff

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx-last-updated-by-git-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sphinx-last-updated-by-git-0.1.0.tar.gz.

File metadata

  • Download URL: sphinx-last-updated-by-git-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for sphinx-last-updated-by-git-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5709bd3f17763cb4681db0111d870c3242f1c8ac7908b7da8daabd6e311de887
MD5 efbed4dd4d19cc6b9c680f121873d840
BLAKE2b-256 3715667079ca67b490be17ca9a1c26e6c372308c62349c2873408257aa90c65a

See more details on using hashes here.

File details

Details for the file sphinx_last_updated_by_git-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_last_updated_by_git-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for sphinx_last_updated_by_git-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74d5a78d037525316bf4a7279454931b939ef5930561210bdba77ff613e81463
MD5 ae8f952b18c8c4fb74c0850e719c02b2
BLAKE2b-256 28005856b055dcf53965d41e486a399e48e557177b5cab404762c374cf86cfff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page