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 <[email protected]>
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 <[email protected]>
    Co-authored-by: Alenka Frim <[email protected]>
    Co-authored-by: Raúl Cumplido <[email protected]>
    Co-authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 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
 

Reply via email to