You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by fe...@apache.org on 2021/12/12 04:27:23 UTC
[incubator-kyuubi] branch branch-1.4 updated: [KYUUBI #1548] Get docs version from project.version
This is an automated email from the ASF dual-hosted git repository.
feiwang pushed a commit to branch branch-1.4
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/branch-1.4 by this push:
new d22d616 [KYUUBI #1548] Get docs version from project.version
d22d616 is described below
commit d22d61675dc8d34355df0d123db70405525d5fa4
Author: Fei Wang <fw...@ebay.com>
AuthorDate: Sun Dec 12 12:27:00 2021 +0800
[KYUUBI #1548] Get docs version from project.version
<!--
Thanks for sending a pull request!
Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html
2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
-->
### _Why are the changes needed?_
<!--
Please clarify why the changes are needed. For instance,
1. If you add a feature, you can talk about the use case of it.
2. If you fix a bug, you can clarify why it is a bug.
-->
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 <fw...@ebay.com>
Signed-off-by: Fei Wang <fw...@ebay.com>
(cherry picked from commit 3594e08d1be1e657bdb6c6a7f45862c2879b57a3)
Signed-off-by: Fei Wang <fw...@ebay.com>
---
docs/conf.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 35c1c24..f73d5be 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 ---------------------------------------------------