From d45068ee692b214348a7e2c23be2192d78717a5e Mon Sep 17 00:00:00 2001 From: emmett1 Date: Mon, 23 Dec 2024 00:38:25 +0800 Subject: updated styles --- genhtml.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'genhtml.sh') diff --git a/genhtml.sh b/genhtml.sh index b2832408..2a530e48 100644 --- a/genhtml.sh +++ b/genhtml.sh @@ -12,11 +12,12 @@ for i in *.md; do } > ${i%.md}.html done -echo "Here lie the docs" > docs/docs.md +echo 'Here lie the documentations for Alice Linux.' > docs/index.md for i in docs/*.md; do + case $i in docs/index.md) continue; esac + title=$(head -n1 $i) i=${i#*/} - case $i in docs.md) continue; esac - echo "- [${i%.md}](./${i%.md}.html)" >> docs/docs.md + echo "- [$title](./${i%.md}.html)" >> docs/index.md done for i in docs/*.md; do @@ -27,6 +28,5 @@ for i in docs/*.md; do cat footer } > docs/${i%.md}.html done -rm -f docs/docs.md exit 0 -- cgit v1.2.3