Lines Matching full:all
1 // Build all.html by combining the generated toc and apicontent from each
11 .filter((name) => name.includes('.html') && name !== 'all.html');
22 const seen = new Set(['all.html', 'index.html']);
44 // Prefix all in-page anchor marks with module name
49 // Prefix all in-page links with current module name
61 // Prefix all links to other docs modules with those module names
72 // Replace various mentions of index with all.
73 let all = toc.replace(/index\.html/g, 'all.html') variable
74 .replace('<a href="all.html">', '<a href="index.html">')
75 .replace('index.json', 'all.json')
76 .replace('api-section-index', 'api-section-all')
77 .replace('data-id="index"', 'data-id="all"')
81 all = all.replace(/<title>.*?\| /, '<title>');
84 const tocStart = /<!-- TOC -->/.exec(all);
85 all = all.slice(0, tocStart.index + tocStart[0].length) +
89 all.slice(tocStart.index + tocStart[0].length);
92 const apiStart = /<\w+ id="apicontent">\s*/.exec(all);
93 const apiEnd = all.lastIndexOf('<!-- API END -->');
94 all = all.slice(0, apiStart.index + apiStart[0].length)
103 all.slice(apiEnd);
106 fs.writeFileSync(new URL('./all.html', source), all, 'utf8');
108 // Validate all hrefs have a target.
110 const ids = new Set([...all.matchAll(idRe)].map((match) => match[1]));
113 const hrefMatches = all.matchAll(hrefRe);