diff --git a/README.md b/README.md index 172a74d..b6286b4 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,21 @@ You can supply a JSON stylesheet with the `-s` flag: ./gold -s mystyle.json ``` -Style definitions located in `styles/` can be embedded into the binary by -running [statik](https://github.com/rakyll/statik). -``` -statik -f -src styles -include "*.json" -``` +## Example Output + +![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/gold_dark.png) ## Colors Currently `gold` uses the [Aurora ANSI colors](https://godoc.org/github.com/logrusorgru/aurora#Index). -## Example Output +## Development -![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/cmd/gold/styles/gold_dark.png) +Style definitions located in `styles/` can be embedded into the binary by +running [statik](https://github.com/rakyll/statik): +``` +statik -f -src styles -include "*.json" +``` + +You can re-generate screenshots of all available styles by running `gallery.sh`. +This requires `termshot` and `pngcrush` installed on your system! diff --git a/gallery.sh b/gallery.sh new file mode 100755 index 0000000..a57d3cb --- /dev/null +++ b/gallery.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +for style in ./styles/*.json; do + echo "Generating screenshot for ${style}" + filename="gold_`basename -s .json ${style}`.png" + termshot -o ./styles/ -f "$filename" ./gold -s ${style} + pngcrush -ow "./styles/$filename" +done diff --git a/styles/gold_dark.png b/styles/gold_dark.png index a5f72db..237fd25 100644 Binary files a/styles/gold_dark.png and b/styles/gold_dark.png differ