Skip to content

Commit 1be009f

Browse files
authored
Merge pull request OAI#3782 from OAI/fix/maintainers-per-spec-version
Use pinned version of MAINTAINERS.md per spec version
2 parents 209d9a4 + 428d7d7 commit 1be009f

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

scripts/md2html/build.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,28 @@ mkdir -p deploy/js
1010

1111
cd scripts/md2html
1212
mkdir -p history
13-
git show c740e950d:MAINTAINERS.md > history/MAINTAINERS_v2.0.md
13+
cat > history/MAINTAINERS_v2.0.md <<EOF
14+
## Active
15+
* Jeremy Whitlock [@whitlockjc](https://github.com/whitlockjc)
16+
* Marsh Gardiner [@earth2marsh](https://github.com/earth2marsh)
17+
* Ron Ratovsky [@webron](https://github.com/webron)
18+
* Tony Tam [@fehguy](https://github.com/fehguy)
19+
EOF
20+
cp history/MAINTAINERS_v2.0.md history/MAINTAINERS_v3.0.0.md
21+
git show c740e95:MAINTAINERS.md > history/MAINTAINERS_v3.0.1.md
22+
git show 3140640:MAINTAINERS.md > history/MAINTAINERS_v3.0.2.md
23+
cp history/MAINTAINERS_v3.0.2.md history/MAINTAINERS_v3.0.3.md
24+
cp history/MAINTAINERS_v3.0.2.md history/MAINTAINERS_v3.1.0.md
25+
# add lines for 3.0.4, 3.1.1, ...
26+
1427
cp -p js/* ../../deploy/js 2> /dev/null
1528
cp -p markdown/* ../../deploy/ 2> /dev/null
1629

17-
node md2html.js --respec --maintainers ./history/MAINTAINERS_v2.0.md ../../versions/2.0.md > ../../deploy/oas/v2.0.html
18-
1930
latest=`git describe --abbrev=0 --tags`
2031
latestCopied=none
21-
for filename in ../../versions/[3456789].*.md ; do
32+
for filename in ../../versions/[23456789].*.md ; do
2233
version=$(basename "$filename" .md)
23-
node md2html.js --respec --maintainers ../../MAINTAINERS.md ${filename} > ../../deploy/oas/v$version.html
34+
node md2html.js --respec --maintainers ./history/MAINTAINERS_v$version.md ${filename} > ../../deploy/oas/v$version.html
2435
if [ $version = $latest ]; then
2536
if [[ ${version} != *"rc"* ]];then
2637
# version is not a Release Candidate

scripts/md2html/md2html.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ function doMaintainers() {
118118
let t = $(this).text().split('@')[0];
119119
maintainers.push({name:t});
120120
});
121-
u = $('ul').eq(1);
121+
if ($("ul").length < 2) return;
122+
u = $("ul").last();
122123
$(u).children('li').each(function(e){
123124
let t = $(this).text().split('@')[0];
124125
emeritus.push({name:t});

0 commit comments

Comments
 (0)