Pinjasaur / bic

Static blog generator, in bash
https://bic.sh/
11 stars 1 forks source link
bash cli nix-flake static-blog static-site static-site-generator
bic

bic

Build Status

Opinionated minimal static site (blog) generator. Implemented in a single Bash script.

Getting Started

Check out the docs or bic-example repository.

Local Development

Build (local develop):

docker build --platform linux/amd64 . -t bic:local

Run (local develop) with bic-example:

docker run --platform linux/amd64 --rm -it -v $PWD/../bic-example:/src -v $PWD:/app --entrypoint bash bic:local

Run (just build) with bic-example:

docker run --platform linux/amd64 --rm -v $PWD/../bic-example:/src bic:local

Run using nix flakes

nix shell github:Pinjasaur/bic --command bic $PWD/../bic-example

Local server (ran in bic-example):

npx -y browser-sync --watch --no-notify --extensions html build

Run test suite (uses BATS):

bats tests/test.bats --print-output-on-failure

License

MIT.