aboutsummaryrefslogtreecommitdiff
path: root/genhtml.sh
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-12-23 00:38:25 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-12-23 00:38:25 +0800
commitd45068ee692b214348a7e2c23be2192d78717a5e (patch)
tree2dd0b816cfa74992ad77314b82528700edfe1154 /genhtml.sh
parent2ac4593a9416459b6cde49ab1b47c169dab6d637 (diff)
downloadalicelinux-d45068ee692b214348a7e2c23be2192d78717a5e.tar.gz
alicelinux-d45068ee692b214348a7e2c23be2192d78717a5e.zip
updated styles
Diffstat (limited to 'genhtml.sh')
-rw-r--r--genhtml.sh8
1 files changed, 4 insertions, 4 deletions
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