mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 19:24:39 +08:00
fix version string in documentation
This commit is contained in:
+3
-5
@@ -48,18 +48,16 @@ project = u'Jedi'
|
|||||||
copyright = u'2012 - {today.year}, Jedi contributors'.format(today=datetime.date.today())
|
copyright = u'2012 - {today.year}, Jedi contributors'.format(today=datetime.date.today())
|
||||||
|
|
||||||
import jedi
|
import jedi
|
||||||
_path = os.path.dirname(os.path.abspath(__file__))
|
from jedi.utils import version_info
|
||||||
_version_strs = [str(x) for x in jedi.__version__]
|
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
|
version = '.'.join(str(x) for x in version_info()[:2])
|
||||||
version = '.'.join(_version_strs[:2])
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# 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
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
Reference in New Issue
Block a user