Skip to content

Commit 9e30f2e

Browse files
committed
docs: re-order sections; ubi first, then versions
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 6bf56b7 commit 9e30f2e

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

gendocs.sh

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,16 @@ workdir="$(mktemp -td gendocs.XXXXXX)"
6767
cp ./gendocs.py "$workdir/gendocs.py"
6868
cp ./docs/README.adoc "$workdir/README.adoc"
6969

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
8280
done
8381

8482
asciidoctor "$workdir/README.adoc" -o docs/index.html

0 commit comments

Comments
 (0)