This is an automated email from the ASF dual-hosted git repository. kou pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push: new 874e596707 GH-39737: [Release][Docs] Update post release documentation task (#39762) 874e596707 is described below commit 874e59670773bd0d52d9c6811483c00abc5ee736 Author: Alenka Frim <alen...@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 <frim.ale...@gmail.com> Co-authored-by: Alenka Frim <alen...@users.noreply.github.com> Co-authored-by: Raúl Cumplido <raulcumpl...@gmail.com> Co-authored-by: Sutou Kouhei <k...@cozmixng.org> Signed-off-by: Sutou Kouhei <k...@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