From b49f5b6f1bc751c045ef16d8c916291c15872543 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 21 Jan 2021 23:54:28 +0100 Subject: [PATCH] Fix docs version parsing We do not want to pick just any tag that comes first, as that well may be parent/version. Change-Id: Ic51ca768f42de498dd86f470f839e64a063c1dd4 Signed-off-by: Robert Varga --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 57d8120be6..7093f9de2a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,6 +15,6 @@ import xml.etree.ElementTree as ET from docs_conf.conf import * data = ET.parse('pom.xml') -project_version = data.getroot().find('*//{http://maven.apache.org/POM/4.0.0}version').text +project_version = data.getroot().find('./{http://maven.apache.org/POM/4.0.0}version').text version = project_version release = project_version -- 2.36.6