File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,29 @@ cp -p ../../node_modules/respec/builds/respec-w3c.* ../../deploy/js/
40
40
41
41
latest=` git describe --abbrev=0 --tags`
42
42
latestCopied=none
43
- for filename in ../../versions/[23456789].* .md ; do
43
+ lastMinor=" -"
44
+ for filename in $( ls -1 ../../versions/[23456789].* .md | sort -r) ; do
44
45
version=$( basename " $filename " .md)
46
+ minorVersion=${version: 0: 3}
45
47
tempfile=../../deploy/oas/v$version -tmp.html
46
48
echo -e " \n=== v$version ==="
49
+
47
50
node md2html.js --maintainers ./history/MAINTAINERS_v$version .md ${filename} > $tempfile
48
51
npx respec --use-local --src $tempfile --out ../../deploy/oas/v$version .html
49
52
rm $tempfile
53
+
50
54
if [ $version = $latest ]; then
51
55
if [[ ${version} != * " rc" * ]]; then
52
56
# version is not a Release Candidate
53
- cp -p ../../deploy/oas/v$version .html ../../deploy/oas/latest.html
57
+ ln -sf ../../deploy/oas/v$version .html ../../deploy/oas/latest.html
54
58
latestCopied=v$version
55
59
fi
56
60
fi
61
+
62
+ if [ ${minorVersion} != ${lastMinor} ] && [ ${minorVersion} != 2.0 ]; then
63
+ ln -sf ../../deploy/oas/v$version .html ../../deploy/oas/v$minorVersion .html
64
+ lastMinor=$minorVersion
65
+ fi
57
66
done
58
67
echo Latest tag is $latest , copied $latestCopied to latest.html
59
68
You can’t perform that action at this time.
0 commit comments