Skip to content

Commit 6bf56b7

Browse files
committed
docs: consistent AsciiDoc headers, ToC
Add a table of contents to the documentation index page. Consistently use '='-style headers. Remove the redundant suffix from headers (== e.g. == -> == e.g.) Signed-off-by: Jonathan Dowland <[email protected]>
1 parent b2201a5 commit 6bf56b7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/README.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Red Hat UBI OpenJDK container images
1+
= Red Hat UBI OpenJDK container images
2+
:toc: right
23

34
This is auto-generated documentation for the
45
link:https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image[Red

gendocs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ cp ./gendocs.py "$workdir/gendocs.py"
6868
cp ./docs/README.adoc "$workdir/README.adoc"
6969

7070
# documentation for development branches
71-
addToIndex "\n== Development branches ==\n"
71+
addToIndex "\n== Development branches\n"
7272
for branch in ubi8 ubi9; do
73-
addToIndex "\n=== $branch ===\n"
73+
addToIndex "\n=== $branch\n"
7474
handleRef "$branch" "$branch"
7575
done
7676

7777
# documentation for tagged releases
78-
addToIndex "\n== Released images =="
78+
addToIndex "\n== Released images"
7979
for tag in $(git tag -l 'ubi?-openjdk-containers*' | sort -r); do
80-
addToIndex "\n=== $tag ===\n"
80+
addToIndex "\n=== $tag\n"
8181
handleRef "$tag"
8282
done
8383

0 commit comments

Comments
 (0)