Skip to content

Commit

Permalink
builld into deploy-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Dec 19, 2024
1 parent 3d83a95 commit a3425f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target
atlassian-ide-plugin.xml
node_modules/
deploy/
deploy-preview/
coverage/
src-preview/
history
Gemfile.lock
10 changes: 5 additions & 5 deletions scripts/md2html/build-src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@

mkdir -p deploy/oas
mkdir -p deploy/js
mkdir -p src-preview
mkdir -p deploy-preview

cd scripts/md2html
cp -p node_modules/respec/builds/respec-w3c.* deploy/js/

cp -p ../../node_modules/respec/builds/respec-w3c.* ../../deploy/js/
cd scripts/md2html

filename=src/oas.md
tempfile=../../deploy/oas/oas.html
echo "=== ${filename} ==="

node md2html.js --maintainers ../../EDITORS.md ../../${filename} > $tempfile
npx respec --use-local --src $tempfile --out ../../src-preview/oas.html
npx respec --use-local --src $tempfile --out ../../deploy-preview/oas.html
rm $tempfile

echo Built src-preview/oas.html
echo Built deploy-preview/oas.html
echo

rm ../../deploy/js/respec-w3c.*

0 comments on commit a3425f2

Please sign in to comment.