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
7
7
node_modules /
8
8
deploy /
9
9
coverage /
10
+ src-preview /
10
11
history
11
12
Gemfile.lock
Original file line number Diff line number Diff line change 14
14
"license" : " Apache-2.0" ,
15
15
"scripts" : {
16
16
"build" : " bash ./scripts/md2html/build.sh" ,
17
+ "build-src" : " bash ./scripts/md2html/build-src.sh" ,
17
18
"test" : " c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh" ,
18
19
"validate-markdown" : " npx mdv src/oas.md && npx markdownlint-cli src/oas.md"
19
20
},
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