|
|
@ -49,9 +49,9 @@ import pkg_resources |
|
|
|
# |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. |
|
|
|
release = __import__('pkg_resources').get_distribution('Flask').version |
|
|
|
release = __import__('pkg_resources').get_distribution('Flask').version |
|
|
|
|
|
|
|
if 'dev' in release: |
|
|
|
|
|
|
|
release = release.split('dev')[0] + 'dev' |
|
|
|
version = '.'.join(release.split('.')[:2]) |
|
|
|
version = '.'.join(release.split('.')[:2]) |
|
|
|
if 'dev' in version: |
|
|
|
|
|
|
|
version = version.split('dev')[0] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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. |
|
|
|