On 11/11/15 03:57, Sam Kleinman wrote:
>
> If you can et the current git commit into your conf.py, you can set it
> in the ``html_theme_options`` dictionary:
> <http://sphinx-doc.org/config.html#confval-html_theme_options>.
Getting the current commit is easily done with the 'gitpython' package
from PyPI:
import git
repo = git.Repo()
last_commit = str(repo.head.commit)[:7]
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.