Dummy automatic index for mipt_cxx

This commit is contained in:
thematdev 2023-09-21 22:34:53 +03:00
parent 9f11ec59c4
commit 149b450b41
Signed by: thematdev
GPG Key ID: D12878639B090D90
3 changed files with 20 additions and 2 deletions

View File

@ -13,9 +13,9 @@ $(PREFIX)/%.html: %.md
@mkdir -p $(@D)
pandoc $< --to html --output $@ --standalone
$(PREFIX)/index.html: index.html
$(PREFIX)/index.html:
@mkdir -p $(@D)
cp $< $@
./generate_index.sh > $@
index: $(PREFIX)/index.html

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
cat <<-_EOF
<html>
<head>
<title>Конспекты по плюсам</title>
</head>
<body>
_EOF
for page in *.md; do
p=${page%.md}
echo "<a href=\"$p.html\">$p</a>"
done
cat <<-_EOF
</body>
</html>
_EOF