We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c8ce0e + 8a2e070 commit 9f113bdCopy full SHA for 9f113bd
scripts/schema-publish.sh
@@ -32,12 +32,9 @@ publish_schema() {
32
local target=$deploydir/$base/$date
33
34
mkdir -p $deploydir/$base
35
- # replace the WORK-IN-PROGRESS placeholders
36
- sed -e $sedCmd $schemaDir/$schema > $target.yaml
37
38
- node scripts/yaml2json/yaml2json.js "$target.yaml"
39
- rm "$target.yaml"
40
- mv "$target.json" "$target"
+ # replace the WORK-IN-PROGRESS placeholders
+ sed ${sedCmd[@]} $schemaDir/$schema | npx yaml --json --indent 2 --single > $target
41
42
# Find the jekyll lander markdown file for this iteration.
43
local jekyllLander=$(find "$deploydir/$base" -maxdepth 1 -name "*.md")
scripts/yaml2json/yaml2json.js
0 commit comments