@@ -17,33 +17,41 @@ const unfinishedEvents = getUnfinishedPages('events');
1717 class =" guidelines-link" >Contribution guidelines</a ></p >
1818
1919<h3 >Unfinished Function Pages</h3 >
20- <p >These functions (part of the MTA Lua API) are <strong >missing documentation or code examples</strong >:</p >
2120<section >
22- <details >
23- <summary >Total: { unfinishedFunctions .length } </summary >
24- <ul >
25- { unfinishedFunctions .map ((func ) => (
26- <li >
27- <a href = { ` /reference/${func } ` } >{ func } </a >
28- </li >
29- ))}
30- </ul >
31- </details >
21+ { unfinishedFunctions .length === 0 ? (
22+ <p >There are currently no unfinished function pages 😄</p >
23+ ) : (
24+ <p >These functions (part of the MTA Lua API) are <strong >missing documentation or code examples</strong >:</p >
25+ <details >
26+ <summary >Total: { unfinishedFunctions .length } </summary >
27+ <ul >
28+ { unfinishedFunctions .map ((func ) => (
29+ <li >
30+ <a href = { ` /reference/${func } ` } >{ func } </a >
31+ </li >
32+ ))}
33+ </ul >
34+ </details >
35+ )}
3236</section >
3337
3438<h3 >Unfinished Event Pages</h3 >
35- <p >These events (part of the MTA Lua API) are <strong >missing documentation or code examples</strong >:</p >
3639<section >
37- <details >
38- <summary >Total: { unfinishedEvents .length } </summary >
39- <ul >
40- { unfinishedEvents .map ((event ) => (
41- <li >
42- <a href = { ` /reference/${event } ` } >{ event } </a >
43- </li >
44- ))}
45- </ul >
46- </details >
40+ { unfinishedEvents .length === 0 ? (
41+ <p >There are currently no unfinished event pages 😄</p >
42+ ) : (
43+ <p >These events (part of the MTA Lua API) are <strong >missing documentation or code examples</strong >:</p >
44+ <details >
45+ <summary >Total: { unfinishedEvents .length } </summary >
46+ <ul >
47+ { unfinishedEvents .map ((event ) => (
48+ <li >
49+ <a href = { ` /reference/${event } ` } >{ event } </a >
50+ </li >
51+ ))}
52+ </ul >
53+ </details >
54+ )}
4755</section >
4856
4957</StarlightPage >
0 commit comments