agama/doc/dbus/make-index
Martin Vidner b08ce899d7 doc/dbus: move logic from Makefile to shell scripts; add CSS
added a `make clean` target

refentry-agama.css is my stupid attempt to do minimal styling

Makefile has a quirky syntax that is a barrier to maintenance;
separate shell scripts are an easy target for shellcheck too.
2025-04-13 15:06:21 +02:00

18 lines
377 B
Bash
Executable file

#!/bin/sh
cat <<EOS
<!-- do not edit: generated by make-index -->
<head>
<title>Agama D-Bus API</title>
<link rel="stylesheet" href="refentry-agama.css" type="text/css">
</head>
EOS
echo "<ul>"
for F in tmp/ref-*.xml; do
F=${F#tmp/}
F=${F%.xml}
echo "<li><a href=\"${F}.html\""
echo " >${F#ref-}</a></li>"
done
echo "</ul>"
echo "<a href=\"..\">up</a>"