Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show only the latest major versions in docs
When showing the docs switch menu it will show all the versions, and there is a lot of them, since we don't need to show every minor version there we do some shell magic to only keep the latest major versions in the docs. Here is what alltag variable was before % for i in $(git tag -l|grep '^v'|sort -rn);do echo -n "$i,";done|sed 's/,$//' v0.22.4,v0.22.3,v0.22.2,v0.22.1,v0.22.0,v0.21.5,v0.21.4,v0.21.3,v0.21.2,v0.21.1 ,v0.21.0,v0.20.0,v0.19.6,v0.19.5,v0.19.4,v0.19.3,v0.19.2,v0.19.1,v0.19.0, v0.18.0,v0.17.7,v0.17.6,v0.17.5,v0.17.4,v0.17.3,v0.17.2,v0.17.1,v0.17.0, v0.16.0,v0.15.6,v0.15.5,v0.15.4,v0.15.3,v0.15.2,v0.15.1,v0.15.0,v0.14.3, v0.14.2,v0.14.1,v0.14.0,v0.13.1,v0.13.0,v0.12.0,v0.11.1,v0.11.0% and with this changes: % bash /tmp/a.sh v0.22.4,v0.21.5,v0.20.0,v0.19.6,v0.18.0,v0.17.7,v0.16.0,v0.15.6,v0.14.3, v0.13.1,v0.12.0,v0.11.1 Signed-off-by: Chmouel Boudjnah <[email protected]>
- Loading branch information