diff --git a/docs/conf.py b/docs/conf.py index b1ee0921..0e25a883 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,18 +48,16 @@ project = u'Jedi' copyright = u'2012 - {today.year}, Jedi contributors'.format(today=datetime.date.today()) import jedi -_path = os.path.dirname(os.path.abspath(__file__)) -_version_strs = [str(x) for x in jedi.__version__] +from jedi.utils import version_info # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. - -version = '.'.join(_version_strs[:2]) +version = '.'.join(str(x) for x in version_info()[:2]) # The full version, including alpha/beta/rc tags. -release = '.'.join(_version_strs) +release = jedi.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.