docs: tweak index.md generation and run it again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user