mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix version.
This commit is contained in:
12
doc/conf.py
12
doc/conf.py
@ -52,6 +52,12 @@ master_doc = 'index'
|
|||||||
project = u'C++ Format'
|
project = u'C++ Format'
|
||||||
copyright = u'2012-2014, Victor Zverovich'
|
copyright = u'2012-2014, Victor Zverovich'
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
|
||||||
# Get version from CMakeLists.txt.
|
# Get version from CMakeLists.txt.
|
||||||
version = {}
|
version = {}
|
||||||
with open('../CMakeLists.txt') as f:
|
with open('../CMakeLists.txt') as f:
|
||||||
@ -62,12 +68,6 @@ with open('../CMakeLists.txt') as f:
|
|||||||
version[kind] = value
|
version[kind] = value
|
||||||
version = '{}.{}.{}'.format(version['MAJOR'], version['MINOR'], version['PATCH'])
|
version = '{}.{}.{}'.format(version['MAJOR'], version['MINOR'], version['PATCH'])
|
||||||
|
|
||||||
# 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 = '@CPPFORMAT_VERSION@'
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = version
|
release = version
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user