Skip to content

Commit

Permalink
Handle situation where a WHATWG workstream has multiple standards (#450)
Browse files Browse the repository at this point in the history
now the case with WebSockets part of the html workstream
  • Loading branch information
dontcallmedom authored Dec 13, 2021
1 parent d5b6063 commit 02496fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/find-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const hasPublishedContent = (candidate) => fetch(candidate.spec).then(({ok, url}
const {groups, repos} = await fetch("https://w3c.github.io/validate-repos/report.json").then(r => r.json());
const specRepos = await fetch("https://w3c.github.io/spec-dashboard/repo-map.json").then(r => r.json());
const whatwgSpecs = await fetch("https://raw.githubusercontent.com/whatwg/sg/master/db.json").then(r => r.json())
.then(d => d.workstreams.map(w => { return {...w.standards[0], id: w.id}; }));
.then(d => d.workstreams.map(w => w.standards.map(s => { return {...s, id: s.href.replace(/.*\/([a-z]+)\.spec\.whatwg\.org\//, '$1')}; }) ).flat());
const cssSpecs = await fetch("https://api.github.com/repos/w3c/csswg-drafts/contents/").then(r => r.json()).then(data => data.filter(p => p.type === "dir" && !cssMetaDir.includes(p.path)).map(p => p.path));
const svgSpecs = await fetch("https://api.github.com/repos/w3c/svgwg/contents/specs").then(r => r.json()).then(data => data.filter(p => p.type === "dir" && !svgMetaDir.includes(p.name)).map(p => p.path));
const fxtfSpecs = await fetch("https://api.github.com/repos/w3c/fxtf-drafts/contents/").then(r => r.json()).then(data => data.filter(p => p.type === "dir" && !fxtfMetaDir.includes(p.path)).map(p => p.path));
Expand Down

0 comments on commit 02496fd

Please sign in to comment.