Files
docs/justfile

25 lines
479 B
Makefile

articles := "./content/articles"
docker_image := "homelab/docs"
docker_tag := "latest"
shortdate := `date +%F`
[private]
default:
@just --list
# Run the development server.
[group('dev')]
run:
@swift run watch content Sources deploy
new-article name:
@touch {{articles}}/{{shortdate}}-{{name}}.md
@echo {{articles}}/{{shortdate}}-{{name}}.md
alias n := new-article
[group('dev')]
build:
@pnpm run css-build
@docker build --tag {{docker_image}}:{{docker_tag}} .