Skip to content

Commit 3cfcd06

Browse files
author
repo-visualizer
committed
feat: update readme
1 parent 81bbabb commit 3cfcd06

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
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+
### `customize_file_colors`
84+
85+
User can customize color of file. need to be a Json String. it will replace the key-value pair of [src/language-colors.json].
86+
87+
For example: '{"js": "red","ts": "green"}'
88+
default: '{}'
89+
8390
## Outputs
8491

8592
### `svg`

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const main = async () => {
2525

2626
const rootPath = core.getInput("root_path") || ""; // Micro and minimatch do not support paths starting with ./
2727
const maxDepth = core.getInput("max_depth") || 9
28-
const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || '{}'); // such as '{"js": "red", "ts": "green"}'
28+
const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || '{}');
2929
const colorEncoding = core.getInput("color_encoding") || "type"
3030
const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"
3131
const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"

0 commit comments

Comments
 (0)