Skip to content

Commit

Permalink
apacheGH-39737: [Release][Docs] Update post release documentation task (
Browse files Browse the repository at this point in the history
apache#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: apache#39737

Lead-authored-by: AlenkaF <frim.alenka@gmail.com>
Co-authored-by: Alenka Frim <AlenkaF@users.noreply.github.com>
Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
3 people authored and zanmato1984 committed Feb 28, 2024
1 parent fc06112 commit fc2a52e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dev/release/post-08-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fc2a52e

Please sign in to comment.