From fbb954d72054ae784cff7a148d19007fce5eb8ff Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Oct 2012 08:22:32 -0400 Subject: 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. --- doc/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') 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. -- cgit