Skip to content

Commit

Permalink
fix(docs): remove '---\n' prefix from toYaml config example generator (
Browse files Browse the repository at this point in the history
…vectordotdev#18502)

fix: remove '---\n' prefix from toYaml config example generator
  • Loading branch information
pront authored Sep 7, 2023
1 parent 712a210 commit 8d07e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/scripts/create-config-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const toToml = (obj) => {

// Convert object to YAML string
const toYaml = (obj) => {
return `---\n${YAML.stringify(obj)}`;
return `${YAML.stringify(obj)}`;
}

// Convert object to JSON string (indented)
Expand Down

0 comments on commit 8d07e18

Please sign in to comment.