pandoc-pages/pages/mipt_cxx1/generate_index.sh

19 lines
239 B
Bash
Executable File

#!/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><br>"
done
cat <<-_EOF
</body>
</html>
_EOF