File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ atlassian-ide-plugin.xml
77node_modules /
88deploy /
99coverage /
10+ src-preview /
1011history
1112Gemfile.lock
Original file line number Diff line number Diff line change 1414 "license" : " Apache-2.0" ,
1515 "scripts" : {
1616 "build" : " bash ./scripts/md2html/build.sh" ,
17+ "build-src" : " bash ./scripts/md2html/build-src.sh" ,
1718 "test" : " c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh" ,
1819 "validate-markdown" : " npx mdv src/oas.md && npx markdownlint-cli src/oas.md"
1920 },
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Author: @ralfhandl
4+
5+ # run this script from the root of the repo
6+
7+ mkdir -p deploy/oas
8+ mkdir -p deploy/js
9+ mkdir -p src-preview
10+
11+ cd scripts/md2html
12+
13+ cp -p ../../node_modules/respec/builds/respec-w3c.* ../../deploy/js/
14+
15+ filename=src/oas.md
16+ tempfile=../../deploy/oas/oas.html
17+ echo " === ${filename} ==="
18+
19+ node md2html.js --maintainers ../../EDITORS.md ../../${filename} > $tempfile
20+ npx respec --use-local --src $tempfile --out ../../src-preview/oas.html
21+ rm $tempfile
22+
23+ echo Built src-preview/oas.html
24+ echo
25+
26+ rm ../../deploy/js/respec-w3c.*
You can’t perform that action at this time.
0 commit comments