Skip to content

Commit

Permalink
apacheGH-41356: [Release][Docs] Update post release documentation tas…
Browse files Browse the repository at this point in the history
…k to remove the warnings banner for stable version (apache#41377)

### Rationale for this change

With every release dev documentation is moved to `docs/` and becomes stable version of the documentation but the  version warnings banner is still present.

### What changes are included in this PR?

This PR removes the banner before the dev docs are copied to the `docs/` folder.

### Are these changes tested?

Not yet.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41356

Lead-authored-by: AlenkaF <[email protected]>
Co-authored-by: Alenka Frim <[email protected]>
Co-authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
AlenkaF and raulcd authored May 9, 2024
1 parent 7bfe02d commit f6127a6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion dev/release/post-08-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,28 @@ fi
# delete current stable docs and restore all previous versioned docs
rm -rf docs/*
git checkout "${versioned_paths[@]}"
# Download and untar released docs in a temp folder
rm -rf docs_new
mkdir docs_new
pushd docs_new
curl \
--fail \
--location \
--remote-name \
https://apache.jfrog.io/artifactory/arrow/docs/${version}/docs.tar.gz
tar xvf docs.tar.gz
rm -f docs.tar.gz
# Update DOCUMENTATION_OPTIONS.show_version_warning_banner
find docs \
-type f \
-exec \
sed -i.bak \
-e "s/DOCUMENTATION_OPTIONS.show_version_warning_banner = true/DOCUMENTATION_OPTIONS.show_version_warning_banner = false/g" \
{} \;
find ./ -name '*.bak' -delete
popd
mv docs_new/docs/* docs/
rm -rf docs_new

if [ "$is_major_release" = "yes" ] ; then
previous_series=${previous_version%.*}
mv docs_temp docs/${previous_series}
Expand Down

0 comments on commit f6127a6

Please sign in to comment.