File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,16 @@ workdir="$(mktemp -td gendocs.XXXXXX)"
67
67
cp ./gendocs.py " $workdir /gendocs.py"
68
68
cp ./docs/README.adoc " $workdir /README.adoc"
69
69
70
- # documentation for development branches
71
- addToIndex " \n== Development branches\n"
72
- for branch in ubi8 ubi9; do
73
- addToIndex " \n=== $branch \n"
74
- handleRef " $branch " " $branch "
75
- done
76
-
77
- # documentation for tagged releases
78
- addToIndex " \n== Released images"
79
- for tag in $( git tag -l ' ubi?-openjdk-containers*' | sort -r) ; do
80
- addToIndex " \n=== $tag \n"
81
- handleRef " $tag "
70
+ for ubi in ubi9 ubi8; do
71
+ UBI=${ubi^^}
72
+ addToIndex " \n== $UBI \n"
73
+ addToIndex " \n=== development\n"
74
+ handleRef " $ubi "
75
+ for tag in $( git tag -l " ${ubi} -openjdk-containers*" | sort -r) ; do
76
+ version=${tag/ ${ubi} -openjdk-containers-/ }
77
+ addToIndex " \n=== $version \n"
78
+ handleRef " $tag "
79
+ done
82
80
done
83
81
84
82
asciidoctor " $workdir /README.adoc" -o docs/index.html
You can’t perform that action at this time.
0 commit comments