This is an automated email from the ASF dual-hosted git repository.
gengliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 321c654 [SPARK-35514][INFRA] Automatically update version index of
DocSearch via release-tag.sh
321c654 is described below
commit 321c6545b38976b8b051ac1e80666f96922d5950
Author: Gengliang Wang <[email protected]>
AuthorDate: Wed May 26 00:30:44 2021 +0800
[SPARK-35514][INFRA] Automatically update version index of DocSearch via
release-tag.sh
### What changes were proposed in this pull request?
Automatically update version index of DocSearch via release-tag.sh for
releasing new documentation site, instead of the current manual update.
### Why are the changes needed?
Simplify the release process.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Manually run the following command and check the diff
```
R_NEXT_VERSION=3.2.0
sed -i".tmp8" "s/'facetFilters':.*$/'facetFilters':
[\"version:$R_NEXT_VERSION\"]/g" docs/_config.yml
```
Closes #32662 from gengliangwang/updateDocsearchInRelease.
Authored-by: Gengliang Wang <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
---
dev/create-release/release-tag.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dev/create-release/release-tag.sh
b/dev/create-release/release-tag.sh
index a9a518f..4be1f9a 100755
--- a/dev/create-release/release-tag.sh
+++ b/dev/create-release/release-tag.sh
@@ -106,6 +106,8 @@ sed -i".tmp5" 's/__version__ = .*$/__version__ =
"'"$R_NEXT_VERSION.dev0"'"/' py
sed -i".tmp6" 's/SPARK_VERSION:.*$/SPARK_VERSION: '"$NEXT_VERSION"'/g'
docs/_config.yml
# Use R version for short version
sed -i".tmp7" 's/SPARK_VERSION_SHORT:.*$/SPARK_VERSION_SHORT:
'"$R_NEXT_VERSION"'/g' docs/_config.yml
+# Update the version index of DocSearch as the short version
+sed -i".tmp8" "s/'facetFilters':.*$/'facetFilters':
[\"version:$R_NEXT_VERSION\"]/g" docs/_config.yml
git commit -a -m "Preparing development version $NEXT_VERSION"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]