docs: tweak index.md generation and run it again

This commit is contained in:
Lennart Poettering
2018-11-16 17:44:27 +01:00
parent 2fe8213230
commit 6fdc4831bb
2 changed files with 19 additions and 25 deletions
+3 -2
View File
@@ -4,12 +4,13 @@ set -eu
cd "$@"/docs/
(
echo "# systemd Documentation"
echo -e "# systemd Documentation\n"
for f in *.md ; do
if [ "x$f" != "xindex.md" ] ; then
t=`grep "^# " "$f" | head -n 1 | sed -e 's/^#\s*//'`
echo -e "\n* [$t]($f)"
u="https://systemd.io/"`echo "$f" | sed -e 's/.md$//'`
echo "* [$t]($u)"
fi
done
) > index.md