You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2024/02/20 11:21:36 UTC
(arrow) 24/30: GH-39737: [Release][Docs] Update post release documentation task (#39762)
This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch maint-15.0.x
in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 0d6e95b490c07256e24f6d2d01e0b6d010e980c0
Author: Alenka Frim <Al...@users.noreply.github.com>
AuthorDate: Tue Feb 6 01:54:13 2024 +0100
GH-39737: [Release][Docs] Update post release documentation task (#39762)
This PR updates the `dev/release/post-08-docs.sh` task so that
- `DOCUMENTATION_OPTIONS.theme_switcher_version_match` changes from `""` to `"{previous_version}"`
- `DOCUMENTATION_OPTIONS.show_version_warning_banner` changes from `false` to `true`
for the documentation that is moved to a subfolder when a new major release is done.
* Closes: #39737
Lead-authored-by: AlenkaF <fr...@gmail.com>
Co-authored-by: Alenka Frim <Al...@users.noreply.github.com>
Co-authored-by: Raúl Cumplido <ra...@gmail.com>
Co-authored-by: Sutou Kouhei <ko...@cozmixng.org>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
dev/release/post-08-docs.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/dev/release/post-08-docs.sh b/dev/release/post-08-docs.sh
index f18f7d10c7..4df574700e 100755
--- a/dev/release/post-08-docs.sh
+++ b/dev/release/post-08-docs.sh
@@ -86,6 +86,21 @@ if [ "$is_major_release" = "yes" ] ; then
fi
git add docs
git commit -m "[Website] Update documentations for ${version}"
+
+# Update DOCUMENTATION_OPTIONS.theme_switcher_version_match and
+# DOCUMENTATION_OPTIONS.show_version_warning_banner
+pushd docs/${previous_series}
+find ./ \
+ -type f \
+ -exec \
+ sed -i.bak \
+ -e "s/DOCUMENTATION_OPTIONS.theme_switcher_version_match = '';/DOCUMENTATION_OPTIONS.theme_switcher_version_match = '${previous_version}';/g" \
+ -e "s/DOCUMENTATION_OPTIONS.show_version_warning_banner = false/DOCUMENTATION_OPTIONS.show_version_warning_banner = true/g" \
+ {} \;
+find ./ -name '*.bak' -delete
+popd
+git add docs/${previous_series}
+git commit -m "[Website] Update warning banner for ${previous_series}"
git clean -d -f -x
popd