commit: cbc990eda2422d121e775d7bdf82e00cb0160fbd
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 29 11:17:18 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Oct 29 11:40:15 2024 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=cbc990ed
bin/gen-eclass-html.sh: Update message for eclasses fallback
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
bin/gen-eclass-html.sh | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh
index b17fbc5..3a4decc 100755
--- a/bin/gen-eclass-html.sh
+++ b/bin/gen-eclass-html.sh
@@ -180,31 +180,36 @@ Note that most eclasses have an accompanying manual page.
These man pages can be
installed by emerging <c>app-doc/eclass-manpages</c>.
</p>
-</body>
-
-<section>
-<title>Contents</title>
-<body>
EOF
if [[ -n ${NOMAN} ]]; then
cat <<- 'EOF' >> "${OUTPUTDIR}"/text.xml || exit 1
- <warning>
- This is only a placeholder. If you see this text in the output document,
- then the eclass documentation is missing.
- </warning>
+ <note>
+ This version of the devmanual does not include the eclass documentation.
+ </note>
+ </body>
EOF
else
- echo '<ul class="list-group">' >> "${OUTPUTDIR}"/text.xml || exit 1
+ cat <<- 'EOF' >> "${OUTPUTDIR}"/text.xml || exit 1
+ </body>
+
+ <section>
+ <title>Contents</title>
+ <body>
+
+ <ul class="list-group">
+ EOF
for i in $(find "${OUTPUTDIR}" -maxdepth 1 -mindepth 1 -type d | sort);
do
echo "<li><uri link=\"$(basename $i)/index.html\">$(basename
$i)</uri></li>" >> "${OUTPUTDIR}"/text.xml || exit 1
done
- echo '</ul>' >> "${OUTPUTDIR}"/text.xml || exit 1
+ cat <<- 'EOF' >> "${OUTPUTDIR}"/text.xml || exit 1
+ </ul>
+ </body>
+ </section>
+ EOF
fi
cat << 'EOF' >> "${OUTPUTDIR}"/text.xml || exit 1
-</body>
-</section>
</chapter>
</guide>
EOF