Merge "Add version number to the documentation footer"
This commit is contained in:
commit
17a8d4e585
@ -51,6 +51,13 @@ master_doc = 'index'
|
||||
project = u'nova-dpm'
|
||||
copyright = u'2016, OpenStack Foundation'
|
||||
|
||||
# Version information
|
||||
import nova_dpm.version
|
||||
# The short X.Y version.
|
||||
version = nova_dpm.version.version_info.version_string()
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = nova_dpm.version.version_info.release_string()
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
add_function_parentheses = True
|
||||
|
||||
|
15
nova_dpm/version.py
Normal file
15
nova_dpm/version.py
Normal file
@ -0,0 +1,15 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from pbr import version
|
||||
|
||||
version_info = version.VersionInfo('nova-dpm')
|
Loading…
Reference in New Issue
Block a user