From a3425f2ffd67c3fdf289d85384110a63577a2fee Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Thu, 19 Dec 2024 20:55:56 +0100 Subject: [PATCH] builld into deploy-preview --- .gitignore | 2 +- scripts/md2html/build-src.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index ed69dc8553..f3ff4ab93f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ target atlassian-ide-plugin.xml node_modules/ deploy/ +deploy-preview/ coverage/ -src-preview/ history Gemfile.lock diff --git a/scripts/md2html/build-src.sh b/scripts/md2html/build-src.sh index 0a2291d893..fd0cb8d3de 100755 --- a/scripts/md2html/build-src.sh +++ b/scripts/md2html/build-src.sh @@ -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.*