11---
22import StarlightPage from ' @astrojs/starlight/components/StarlightPage.astro' ;
3+ import { getSeeAlsoLinksFromList } from ' @src/utils/general' ;
4+ import SeeAlsoSection from ' @src/components/SeeAlsoSection.astro' ;
35import { getFunctionsByTypeByCategory } from ' @src/utils/functions' ;
46
57const functionsByTypeByCategory = getFunctionsByTypeByCategory ();
@@ -10,19 +12,27 @@ const theseFunctions = functionsByTypeByCategory.shared;
1012 title: ' Shared functions' ,
1113 tableOfContents: false ,
1214}} >
15+ <p >This page lists all <strong >shared</strong > functions available in the <a href =" /lua-api" >Lua API</a > organized by category.</p >
1316
14- <p >This page lists all <strong >shared</strong > functions available in the <a href =" /lua-api" >Lua API</a > organized by category.</p >
17+ { Object .entries (theseFunctions ).map (([category , funcs ]) => (
18+ <section >
19+ <details >
20+ <summary >{ category } functions</summary >
21+ <ul >
22+ { funcs .map (func => (
23+ <li ><a href = { ` /${func .id } ` } >{ func .id } </a ></li >
24+ ))}
25+ </ul >
26+ </details >
27+ </section >
28+ ))}
1529
16- { Object .entries (theseFunctions ).map (([category , funcs ]) => (
17- <section >
18- <details >
19- <summary >{ category } functions</summary >
20- <ul >
21- { funcs .map (func => (
22- <li ><a href = { ` /${func .id } ` } >{ func .id } </a ></li >
23- ))}
24- </ul >
25- </details >
26- </section >
27- ))}
30+ <SeeAlsoSection seeAlsoLinks ={ getSeeAlsoLinksFromList ([
31+ ' article:Scripting_Functions' ,
32+ ' article:Client_Scripting_Functions' ,
33+ ' article:Server_Scripting_Functions' ,
34+ ' article:Scripting_Events' ,
35+ ' article:Client_Scripting_Events' ,
36+ ' article:Server_Scripting_Events' ,
37+ ])} currentId =' ' />
2838</StarlightPage >
0 commit comments