From 6d56f997a552fc963af6b366c1fc49ec6a273c97 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Wed, 4 Nov 2020 15:32:18 +0800 Subject: [PATCH] fix doc conf.py --- site/src/site/sphinx/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/src/site/sphinx/conf.py b/site/src/site/sphinx/conf.py index 5f09f0f14..52f586940 100644 --- a/site/src/site/sphinx/conf.py +++ b/site/src/site/sphinx/conf.py @@ -67,13 +67,13 @@ github_doc_root = 'https://github.com/alibaba/arthas/tree/master/site/src/site/s # The full version, including alpha/beta/rc tagss # release = # read version from pom.xml -rootDir = os.path.dirname(os.path.abspath(__file__)) + '/../../..' +rootDir = os.path.dirname(os.path.abspath(__file__)) + '/../../../..' pomXml = ET.parse(rootDir + '/pom.xml') for projectChildrenElem in list(pomXml.getroot()): - if projectChildrenElem.tag == '{http://maven.apache.org/POM/4.0.0}parent': + if projectChildrenElem.tag == '{http://maven.apache.org/POM/4.0.0}properties': for parentChildrenElem in list(projectChildrenElem): - if parentChildrenElem.tag == '{http://maven.apache.org/POM/4.0.0}version': + if parentChildrenElem.tag == '{http://maven.apache.org/POM/4.0.0}revision': version = parentChildrenElem.text # if version is SNAPSHOT, read final release from maven center