Skip to content

Commit 7a2571c

Browse files
committed
also build static html
1 parent 4656119 commit 7a2571c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/md2html/build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ cp history/MAINTAINERS_v3.0.2.md history/MAINTAINERS_v3.0.3.md
3333
cp history/MAINTAINERS_v3.0.2.md history/MAINTAINERS_v3.1.0.md
3434
# add lines for 3.0.4, 3.1.1, ...
3535

36+
#TODO: remove if static html variant is used
3637
cp -p ../../node_modules/respec/builds/respec-w3c.* ../../deploy/js/
3738

3839
latest=`git describe --abbrev=0 --tags`
@@ -41,10 +42,13 @@ for filename in ../../versions/[23456789].*.md ; do
4142
version=$(basename "$filename" .md)
4243
echo -e "\n=== v$version ==="
4344
node md2html.js --respec --maintainers ./history/MAINTAINERS_v$version.md ${filename} > ../../deploy/oas/v$version.html
45+
#TODO: produce static file as v$version.html without -static infix
46+
npx respec --use-local --src ../../deploy/oas/v$version.html --out ../../deploy/oas/v$version-static.html
4447
if [ $version = $latest ]; then
4548
if [[ ${version} != *"rc"* ]];then
4649
# version is not a Release Candidate
4750
cp -p ../../deploy/oas/v$version.html ../../deploy/oas/latest.html
51+
cp -p ../../deploy/oas/v$version-static.html ../../deploy/oas/latest-static.html #TODO: remove
4852
latestCopied=v$version
4953
fi
5054
fi

0 commit comments

Comments
 (0)