Lines Matching full:all
1 // Build all.html by combining the generated toc and apicontent from each
10 .filter((name) => name.includes('.html') && name !== 'all.html');
22 'all.html': true,
48 // Replace various mentions of index with all.
49 let all = toc.replace(/index\.html/g, 'all.html') variable
50 .replace('<a href="all.html">', '<a href="index.html">')
51 .replace('index.json', 'all.json')
52 .replace('api-section-index', 'api-section-all')
53 .replace('data-id="index"', 'data-id="all"')
57 all = all.replace(/<title>.*?\| /, '<title>');
60 const tocStart = /<!-- TOC -->/.exec(all);
61 all = all.slice(0, tocStart.index + tocStart[0].length) +
65 all.slice(tocStart.index + tocStart[0].length);
68 const apiStart = /<\w+ id="apicontent">\s*/.exec(all);
69 const apiEnd = all.lastIndexOf('<!-- API END -->');
70 all = all.slice(0, apiStart.index + apiStart[0].length) +
72 all.slice(apiEnd);
75 fs.writeFileSync(new URL('./all.html', source), all, 'utf8');
77 // Validate all hrefs have a target.
81 while (match = idRe.exec(all)) {
86 while (match = hrefRe.exec(all)) {