Website for pkgbase.live
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
915 B

tidy!=(which tidy5 || which tidy)
pandoc!=(which pandoc)
TIDY=$(tidy) -quiet -mi --indent-spaces 4 --wrap 111
PANDOC=$(pandoc) --template template.html --css /style.css -f markdown -t html
website: howtos pkg-sets
$(PANDOC) < index.md > index.html
$(TIDY) index.html
howtos:
.for f in index bootstrap jails fresh howdo abi-changes
$(PANDOC) < howto/${f}.md > howto/${f}.html
$(TIDY) howto/${f}.html
.endfor
pkg-sets:
.for f in current stable release
$(PANDOC) < ${f}/index.md > ${f}/index.html
$(TIDY) ${f}/index.html
.endfor
update-static: website
mkdir -p build/howto build/current build/stable build/release
cp alpha.pkgbase.live.pub build/
cp favicon.png build/
cp style.css build/
mv index.html build/
mv howto/*.html build/howto/
mv current/index.html build/current/
mv stable/index.html build/stable/
mv release/index.html build/release/
mkdir -p site/
cp -r build/* site/
rm -r build