Skip to content

Commit

Permalink
Add new release branch to docs versions
Browse files Browse the repository at this point in the history
[noissue]

(cherry picked from commit 03ef150)
  • Loading branch information
mdellweg committed Oct 3, 2023
1 parent 81c3afa commit 55feeb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ci/scripts/create_release_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ git branch "${NEW_BRANCH}"
# Clean changelog snippets.
find CHANGES/ \( -name "*.feature" -o -name "*.bugfix" -o -name "*.doc" -o -name "*.translation" -o -name "*.devel" -o -name "*.misc" \) -exec git rm -f \{\} +

# Add to version.txt
sed -i -e "1 i \\${NEW_BRANCH}" docs/versions.txt

bumpversion minor --commit --message $'Bump version to {new_version}\n\n[noissue]' --allow-dirty

git push origin "${NEW_BRANCH}"
2 changes: 1 addition & 1 deletion docs_theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{% if config.theme.version.endswith("dev") -%}
version_select.value = "";
{% else -%}
version_select.value = "{{ config.theme.version }}";
version_select.value = "{{ config.theme.version }}".match("[0-9]+\.[0-9]+")[0];
{% endif -%}
version_select.onchange = function(event) { window.location = "{{ prefix }}{{ '.'|url }}" + event.target.value };
})
Expand Down

0 comments on commit 55feeb6

Please sign in to comment.