From 6a7bf17ea549de119259e1b5d8612bb2e3c09108 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 26 Mar 2023 22:18:11 -0400 Subject: [PATCH] Relocate related --- kumascript/macros/JSRef.ejs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/kumascript/macros/JSRef.ejs b/kumascript/macros/JSRef.ejs index dab1efca0dfc..8b16adfd3525 100644 --- a/kumascript/macros/JSRef.ejs +++ b/kumascript/macros/JSRef.ejs @@ -95,7 +95,7 @@ const groupData = { "Intl.Segmenter", ], Segments: [ - "Segments", + "Intl/Segmenter/segment/Segments", "Intl.Segmenter", ], TypedArray: [ @@ -314,20 +314,20 @@ async function renderOutput() { defaultOpened, ); } + } - if (index === 0 && group.length > 0) { - output += `
  • ${text.Related}
  • `; - for (const groupItem of group) { - const link = web.smartLink( - `${slugStdlib}/${groupItem.replace(".", "/")}`, - null, - `${groupItem}`, - null, - slugStdlib, - "JSRef", - ); - output += `
  • ${link}
  • `; - } + if (group.length > 0) { + output += `
  • ${text.Related}
  • `; + for (const groupItem of group) { + const link = web.smartLink( + `${slugStdlib}/${groupItem.replace(".", "/")}`, + null, + `${groupItem}`, + null, + slugStdlib, + "JSRef", + ); + output += `
  • ${link}
  • `; } }