Skip to content

Commit

Permalink
Relocate related
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Mar 27, 2023
1 parent d041f46 commit 6a7bf17
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions kumascript/macros/JSRef.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const groupData = {
"Intl.Segmenter",
],
Segments: [
"Segments",
"Intl/Segmenter/segment/Segments",
"Intl.Segmenter",
],
TypedArray: [
Expand Down Expand Up @@ -314,20 +314,20 @@ async function renderOutput() {
defaultOpened,
);
}
}
if (index === 0 && group.length > 0) {
output += `<li><strong>${text.Related}</strong></li>`;
for (const groupItem of group) {
const link = web.smartLink(
`${slugStdlib}/${groupItem.replace(".", "/")}`,
null,
`<code>${groupItem}</code>`,
null,
slugStdlib,
"JSRef",
);
output += `<li><strong>${link}</strong></li>`;
}
if (group.length > 0) {
output += `<li><strong>${text.Related}</strong></li>`;
for (const groupItem of group) {
const link = web.smartLink(
`${slugStdlib}/${groupItem.replace(".", "/")}`,
null,
`<code>${groupItem}</code>`,
null,
slugStdlib,
"JSRef",
);
output += `<li><strong>${link}</strong></li>`;
}
}
Expand Down

0 comments on commit 6a7bf17

Please sign in to comment.