diff --git a/docs/conf.py b/docs/conf.py index b4731fff..5127a66c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,9 +49,9 @@ import pkg_resources # |version| and |release|, also used in various other places throughout the # built documents. release = __import__('pkg_resources').get_distribution('Flask').version +if 'dev' in release: + release = release.split('dev')[0] + 'dev' version = '.'.join(release.split('.')[:2]) -if 'dev' in version: - version = version.split('dev')[0] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.