okami.mom/glamour

git clone https://git.nkp.pet/okami.mom/glamour

bashbunnidocs: how to generate new golden files (#330)716970e

main
626 B23 linesraw

Contributing

Contributions are welcome!

Please submit a pull request for minor changes and submit issues for major changes for discussions.

Testing

When providing a new feature or bug fix, please provide tests that demonstrate the issue along with your fix.

Golden Files

If golden files need to be updated, you can do so with -update.

Usage: go test ./pkg/... -update.

Themes

New styles need to be implemented in styles/<style-name>.go, and then go generate ./... will create the JSON files from it.

You can look up all references of another theme (e.g. Dracula), and add your theme accordingly.

1# Contributing
2
3Contributions are welcome!
4
5Please submit a pull request for minor changes and submit issues for major changes for discussions.
6
7## Testing
8
9When providing a new feature or bug fix, please provide tests that demonstrate the issue along with your fix.
10
11### Golden Files
12
13If golden files need to be updated, you can do so with `-update`.
14
15Usage: `go test ./pkg/... -update`.
16
17## Themes
18
19New styles need to be implemented in `styles/<style-name>.go`, and then `go generate
20./...` will create the JSON files from it.
21
22You can look up all references of another theme (e.g. Dracula), and add your
23theme accordingly.