Skip to content

Commit 8c213de

Browse files
authored
Fix version dropdown list in haddock site (#7554)
1 parent 0dcea8d commit 8c213de

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/haddock-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Delete Oldest Build
7676
run: |
7777
# Delete the oldest haddock build if there are more than 10 builds.
78-
if [[ $(ls -1A haddock | wc -l) -gt 10 ]]; then
78+
if [[ $(ls -1A haddock | wc -l) -gt 8 ]]; then
7979
OLDEST_BUILD=$(ls -1A haddock | sort | head -n 1)
8080
rm -rf haddock/$OLDEST_BUILD
8181

scripts/combined-haddock.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,10 @@ echo "Injecting additional prologue html"
241241
list-valid-plutus-versions() {
242242
git fetch --tags --force
243243
local versions="$(git tag | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sort -rV | uniq | tr ' ' '\n')"
244-
local min_ver="1.40.0.0"
245244
echo master
246245
echo latest
247-
for ver in $versions; do
248-
if [[ "$(echo -ne "$ver\n$min_ver" | sort -V | head -n 1 | tr -d '\n')" == "$min_ver" ]]; then
249-
echo "$ver"
250-
fi
246+
for ver in $(echo "$versions" | head -n 6); do
247+
echo "$ver"
251248
done
252249
}
253250

0 commit comments

Comments
 (0)