Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinjasaur/bic
Static blog generator, in bash
https://github.com/pinjasaur/bic
bash cli nix-flake static-blog static-site static-site-generator
Last synced: about 1 month ago
JSON representation
Static blog generator, in bash
- Host: GitHub
- URL: https://github.com/pinjasaur/bic
- Owner: Pinjasaur
- Created: 2021-01-26T03:47:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-19T04:29:14.000Z (3 months ago)
- Last Synced: 2024-11-04T22:37:08.541Z (2 months ago)
- Topics: bash, cli, nix-flake, static-blog, static-site, static-site-generator
- Language: Shell
- Homepage: https://bic.sh/
- Size: 163 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bic
![Build Status](https://img.shields.io/github/actions/workflow/status/Pinjasaur/bic/ci.yml)
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):
```bash
docker build --platform linux/amd64 . -t bic:local
```Run (local develop) with [bic-example]:
```bash
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]:
```bash
docker run --platform linux/amd64 --rm -v $PWD/../bic-example:/src bic:local
```Run using [nix flakes]
```bash
nix shell github:Pinjasaur/bic --command bic $PWD/../bic-example
```Local server (ran in [bic-example]):
```bash
npx -y browser-sync --watch --no-notify --extensions html build
```Run test suite (uses [BATS]):
```bash
bats tests/test.bats --print-output-on-failure
```## License
[MIT].
[docs]: https://bic.sh/
[bic-example]: https://github.com/Pinjasaur/bic-example
[MIT]: https://pinjasaur.mit-license.org/2021
[nix flakes]: https://www.tweag.io/blog/2020-05-25-flakes
[BATS]: https://github.com/bats-core/bats-core