forked from orbit-oss/flask
Fixed a doc config error
This commit is contained in:
parent
267f5f5c82
commit
54c3df60cd
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue