Skip to content

Commit

Permalink
Bump release version number to 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Dec 25, 2024
1 parent f46faac commit 03acc13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build_html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ NUM_LANGUAGES="$(printf '%s' "$LANGUAGES" | wc -w)"
# Write _redirects file
mkdir -p build/html
printf '/ /latest/ 302\n' > build/html/_redirects
printf '/latest/* /2.4/:splat 301\n' >> build/html/_redirects
printf '/latest/* /2.5/:splat 301\n' >> build/html/_redirects

i=1
for lang in $LANGUAGES
Expand All @@ -20,10 +20,10 @@ do

if [ "$lang" = "en" ]
then
printf '/:version/en/* /2.4/en/404.html 404\n' >> build/html/_redirects
printf '/:version/en/* /2.5/en/404.html 404\n' >> build/html/_redirects
printf '/:version/* /:version/en/:splat 301\n' >> build/html/_redirects
else
printf '/:version/%s/* /2.4/%s/404.html 404\n' "$lang" "$lang" >> build/html/_redirects
printf '/:version/%s/* /2.5/%s/404.html 404\n' "$lang" "$lang" >> build/html/_redirects
printf '/:version/* /:version/%s/:splat 301 Language=%s\n' "$lang" "$(printf "%s" "$lang" | sed 's/_/-/g')" >> build/html/_redirects
fi
make versionedhtml SPHINXOPTS="-j $(nproc) -Dlanguage=$lang"
Expand Down
6 changes: 3 additions & 3 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
smv_tag_whitelist = r"^$"
smv_branch_whitelist = r"^(main|(\d+)\.(\d+))$"
smv_remote_whitelist = r"^origin$"
# Mark all branches in the form "N.M" as released except "2.5"
smv_released_pattern = r"^.*/(?!2\.5)(\d+)\.(\d+)$"
smv_latest_version = r"2.4"
# Mark all branches in the form "N.M" as released except "2.6"
smv_released_pattern = r"^.*/(?!2\.6)(\d+)\.(\d+)$"
smv_latest_version = r"2.5"
smv_outputdir_format = "{config.version}/{config.language}"
notfound_urls_prefix = "/2.4/en/"

Expand Down

0 comments on commit 03acc13

Please sign in to comment.