Skip to content

Commit

Permalink
Adapt to new webref format for link extracts
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Apr 4, 2024
1 parent 3f2faad commit c2b5f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _tools/generate-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ function generateTermId(dfn, spec) {
}
// await fs.writeFile('terms.json', JSON.stringify([...termIndex.entries()], null, 2));
for (const spec of results) {
const fullLinks = Object.keys(spec.links || {}).reduce((acc, link) => {
const fullLinks = Object.keys(spec.links.rawlinks || {}).concat(Object.keys(spec.links.autolinks || {})).reduce((acc, link) => {
acc.push((spec.links[link].anchors || []).map(frag => link + "#" + frag));
return acc;
}, []).flat();
Expand Down

0 comments on commit c2b5f83

Please sign in to comment.