A tiny static site generation engine http://reaper.codeberg.page/alvu/
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.
 
 
 
alvu/Makefile

33 lines
486 B

.PHONY.: all
all: clean build
clean:
rm -rf alvu
build:
go build -ldflags '-s -w'
demo:
go run . --path lab
docs: build
./alvu --path="docs" --baseurl="/alvu/"
docs_dev: build
ls docs/**/* | entr -cr ./alvu --highlight --path='./docs'
pages: docs
rm -rf alvu
rm -rf .tmp
mkdir .tmp
mv dist/* .tmp
git checkout pages
rm -rf ./*
mv .tmp/* .
git add -A; git commit -m "update pages"; git push origin pages;
git checkout main
cross:
./scripts/cross-compile.sh