Skip to content

Commit b959990

Browse files
committed
Checking W3C group homepages (debug)
1 parent 09a1f9e commit b959990

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/2026.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,17 @@ async function compute(group, template, deliverables, charter) {
317317
if (checkGroups.length > 0) {
318318
status('Checking W3C group homepages...');
319319
const w3cGroups = Array.from(await listGroups());
320+
console.log(w3cGroups);
320321
checkGroups.forEach(a => {
321322
const name = a.textContent.trim();
322323
const href = a.href;
324+
console.log(`Checking group link: ${name} / ${href}`);
323325
let match = w3cGroups.find(g => g.name === name);
324326
if (!match) {
325327
// try to be more flexible
326328
match = w3cGroups.find(g => g["_links"]["homepage"] === href);
327329
}
330+
console.log(match);
328331
if (match && match["_links"]["homepage"]) {
329332
a.href = match["_links"]["homepage"].href;
330333
a.textContent = match.name;

0 commit comments

Comments
 (0)