You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/10/20 21:43:59 UTC

[arrow] 12/13: ARROW-17317: [Release][Docs] Normalize previous document version directory (#14457)

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch maint-10.0.0
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit a12fce731d56493dff599d989a4b8a0bca7409b3
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Thu Oct 20 22:13:23 2022 +0900

    ARROW-17317: [Release][Docs] Normalize previous document version directory (#14457)
    
    We should use X.Y instead of X.Y.Z (e.g.: 8.0 not 8.0.1) for previous version document directory.
    
    See also:
    https://github.com/apache/arrow/blob/apache-arrow-9.0.0/dev/release/post-08-docs.sh#L84
    
    The script should accept X.Y.Z such as 8.0.1 and normalize it to X.Y. It'll reduce human error.
    
    See also:
    
    * https://github.com/apache/arrow-site/pull/228#issuecomment-1205997067
    * https://github.com/apache/arrow-site/pull/228#issuecomment-1206085602
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Joris Van den Bossche <jo...@gmail.com>
---
 dev/release/post-08-docs.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev/release/post-08-docs.sh b/dev/release/post-08-docs.sh
index ad74dbce8d..0c05cf2192 100755
--- a/dev/release/post-08-docs.sh
+++ b/dev/release/post-08-docs.sh
@@ -81,7 +81,8 @@ tar xvf docs.tar.gz
 rm -f docs.tar.gz
 git checkout docs/c_glib/index.html
 if [ "$is_major_release" = "yes" ] ; then
-  mv docs_temp docs/${previous_version}
+  previous_series=${previous_version%.*}
+  mv docs_temp docs/${previous_series}
 fi
 git add docs
 git commit -m "[Website] Update documentations for ${version}"