From: W. Trevor King Date: Fri, 26 Oct 2012 12:22:32 +0000 (-0400) Subject: doc:conf: use `version (date)` in Sphinx docs X-Git-Tag: 1.1.0~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fbb954d72054ae784cff7a148d19007fce5eb8ff;p=be.git doc:conf: use `version (date)` in Sphinx docs Since commit bed7587fe4910f8e4b892a09675279c5a4ab5484 Author: W. Trevor King Date: Thu Oct 25 19:07:09 2012 -0400 version: use abbreviated SHA instead of explicit _VERSION in master branch the version SHA will either be explicit in version(), or version() will return a release tag. This makes the long SHA in the Sphinx docs unnecessary, so we can replace it with the more interesting commit date. --- diff --git a/doc/conf.py b/doc/conf.py index 8b3fcfa..75b9031 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -52,8 +52,9 @@ copyright = u'2010, W. Trevor King' # The short X.Y version. version = libbe.version.version(3) # The full version, including alpha/beta/rc tags. -release = '%s (%s)' % (libbe.version.version(), - libbe.version.version_info['revision']) +release = '{} ({})'.format( + libbe.version.version(), + libbe.version.version_info['date']) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.