Skip to content

Commit

Permalink
Merge pull request #43 from shixin-guo/main
Browse files Browse the repository at this point in the history
feat: Option to change color scheme #40
  • Loading branch information
Wattenberger authored Mar 30, 2022
2 parents b6ef9a2 + 9d29231 commit df8fb4a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 22 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ If unspecified, no artifact will be created.

Default: `''` (no artifact)

### `file_colors`

You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json).

For example: '{"js": "red","ts": "green"}'
default: '{}'

## Outputs

### `svg`
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ inputs:
description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact."
required: false
default: ''
file_colors:
description: "You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json)."
required: false
default: "{}"
outputs:
svg:
description: "The diagram contents as text"
Expand Down
Loading

0 comments on commit df8fb4a

Please sign in to comment.