diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make-index-md.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/make-index-md.sh b/tools/make-index-md.sh index 1c0dc36103..ab52bb2c55 100755 --- a/tools/make-index-md.sh +++ b/tools/make-index-md.sh @@ -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 |