Skip to content

Commit

Permalink
Use name: nightly in docs-versions.sh for HEAD (#9915)
Browse files Browse the repository at this point in the history
* Use name: master in docs-versions.sh for HEAD

At the time when this list is generated (at release), `src/VERSION` is
typically equivalent to the most recent tagged version.
It should just be called master and not present the development version
(which may even change during its course).

* Use "nightly" as label

Co-authored-by: Jonne Haß <me@jhass.eu>

Co-authored-by: Jonne Haß <me@jhass.eu>
  • Loading branch information
straight-shoota and jhass authored Dec 1, 2020
1 parent ed1c447 commit ef80450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/docs-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ awk '
BEGIN {
print "{"
print " \"versions\": ["
getline current_version < "src/VERSION"
printf " {\"name\": \"" current_version "\", \"url\": \"/api/master/\", \"released\": false}"
printf " {\"name\": \"nightly\", \"url\": \"/api/master/\", \"released\": false}"
}
{
Expand Down

0 comments on commit ef80450

Please sign in to comment.