From d22d61675dc8d34355df0d123db70405525d5fa4 Mon Sep 17 00:00:00 2001 From: Fei Wang Date: Sun, 12 Dec 2021 12:27:00 +0800 Subject: [PATCH] [KYUUBI #1548] Get docs version from project.version ### _Why are the changes needed?_ Fix the docs version issue ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1548 from turboFei/docs_version. Closes #1548 dfee7b6f [Fei Wang] Fix docs version Authored-by: Fei Wang Signed-off-by: Fei Wang (cherry picked from commit 3594e08d1be1e657bdb6c6a7f45862c2879b57a3) Signed-off-by: Fei Wang --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 35c1c2408..f73d5be2b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,6 +32,7 @@ import os import sys import shlex +import subprocess sys.path.insert(0, os.path.abspath('.')) @@ -72,7 +73,7 @@ limitations under the License. author = 'Kent Yao' # The full version, including alpha/beta/rc tags -release = '1.3.0' +release = subprocess.getoutput("cd .. && build/mvn help:evaluate -Dexpression=project.version|grep -v Using|grep -v INFO|grep -v WARNING|tail -n 1").split('\n')[-1] # -- General configuration ---------------------------------------------------