10000 Merge pull request #43 from shixin-guo/main · githubocto/repo-visualizer@df8fb4a · GitHub
[go: up one dir, main page]

Skip to content

Commit df8fb4a

Browse files
author
Amelia Wattenberger
authored
Merge pull request #43 from shixin-guo/main
feat: Option to change color scheme #40
2 parents b6ef9a2 + 9d29231 commit df8fb4a

File tree

6 files changed

+42
-22
lines changed

6 files changed

+42
-22
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ If unspecified, no artifact will be created.
8080

8181
Default: `''` (no artifact)
8282

83+
### `file_colors`
84+
85+
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).
86+
87+
For example: '{"js": "red","ts": "green"}'
88+
default: '{}'
89+
8390
## Outputs
8491

8592
### `svg`

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ inputs:
3131
description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact."
3232
required: false
3333
default: ''
34+
file_colors:
35+
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)."
36+
required: false
37+
default: "{}"
3438
outputs:
3539
svg:
3640
description: "The diagram contents as text"

0 commit comments

Comments
 (0)
0