mjestecko/compile.sh

16 lines
413 B
Bash
Raw Normal View History

2023-05-22 09:11:10 +00:00
#!/bin/sh
2023-05-22 13:30:16 +00:00
set +e
2023-05-22 09:11:10 +00:00
mkdir -p ./html/articles
./tools/main_page_generator.py ./articles | ./tools/mmd/build/multimarkdown > ./html/index.html
for d in ./articles/*; do
if [ -d "$d" ]; then
./tools/article_wrapper.py "$d/page.mmd" | ./tools/mmd/build/multimarkdown > "./html/articles/$(basename -- $d).html"
fi
done
2023-05-22 13:29:20 +00:00
./tools/feed_generator.py ./articles/ https://mjestecko.neocities.org/ > ./html/feed.xml