Docs: Fix incorrect project version generation.
The documentation version generates differently in the local
and CI building environments. The expectation is to have the version
in the form of "v1.5.0+(last commit SHA)" while CI makes it v1.5.0.
Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: Ia989c1c169a614e169f1defdaa3ca34c4e0cf643
diff --git a/docs/conf.py.in b/docs/conf.py.in
index 7efc1db..ddf849b 100644
--- a/docs/conf.py.in
+++ b/docs/conf.py.in
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
-# Copyright (c) 2019-2021, Arm Limited. All rights reserved.
+# Copyright (c) 2019-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -26,14 +26,15 @@
# -- Project information -----------------------------------------------------
project = 'Trusted Firmware-M'
-copyright = '2017-2019, ARM CE-OSS'
+copyright = '2017-2022, ARM CE-OSS'
author = 'ARM CE-OSS'
title = 'User Guide'
-# The short X.Y version
+# The project version in the form: "vX.Y.Z" in case of clear release
+# or "vX.Y.Z+ (latest SHA)" if an update was posted.
version = '@SPHINXCFG_TFM_VERSION@'
-# The full version, including alpha/beta/rc tags
-release = '@SPHINXCFG_TFM_VERSION_FULL@'
+# Do not distinguish between release and version in Shpinx
+release = version
# -- General configuration ---------------------------------------------------