Skip to content

Commit f7fbac5

Browse files
committed
Build static html
1 parent 7a2571c commit f7fbac5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/md2html/build.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,25 @@ 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
3736
cp -p ../../node_modules/respec/builds/respec-w3c.* ../../deploy/js/
3837

3938
latest=`git describe --abbrev=0 --tags`
4039
latestCopied=none
4140
for filename in ../../versions/[23456789].*.md ; do
4241
version=$(basename "$filename" .md)
42+
tempfile=../../deploy/oas/v$version-tmp.html
4343
echo -e "\n=== v$version ==="
44-
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
44+
node md2html.js --respec --maintainers ./history/MAINTAINERS_v$version.md ${filename} > $tempfile
45+
npx respec --use-local --src $tempfile --out ../../deploy/oas/v$version.html
46+
rm $tempfile
4747
if [ $version = $latest ]; then
4848
if [[ ${version} != *"rc"* ]];then
4949
# version is not a Release Candidate
5050
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
5251
latestCopied=v$version
5352
fi
5453
fi
5554
done
5655
echo Latest tag is $latest, copied $latestCopied to latest.html
5756

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

0 commit comments

Comments
 (0)