Skip to content

Commit a12fce7

Browse files
committed
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: * apache/arrow-site#228 (comment) * apache/arrow-site#228 (comment) Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
1 parent 7d4bc9b commit a12fce7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/release/post-08-docs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ tar xvf docs.tar.gz
8181
rm -f docs.tar.gz
8282
git checkout docs/c_glib/index.html
8383
if [ "$is_major_release" = "yes" ] ; then
84-
mv docs_temp docs/${previous_version}
84+
previous_series=${previous_version%.*}
85+
mv docs_temp docs/${previous_series}
8586
fi
8687
git add docs
8788
git commit -m "[Website] Update documentations for ${version}"

0 commit comments

Comments
 (0)