Dummy automatic index for mipt_cxx
This commit is contained in:
parent
9f11ec59c4
commit
149b450b41
@ -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
|
||||
|
||||
|
18
pages/mipt_cxx1/generate_index.sh
Executable file
18
pages/mipt_cxx1/generate_index.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user