@@ -17,33 +17,41 @@ const unfinishedEvents = getUnfinishedPages('events');
17
17
class =" guidelines-link" >Contribution guidelines</a ></p >
18
18
19
19
<h3 >Unfinished Function Pages</h3 >
20
- <p >These functions (part of the MTA Lua API) are <strong >missing documentation or code examples</strong >:</p >
21
20
<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
+ )}
32
36
</section >
33
37
34
38
<h3 >Unfinished Event Pages</h3 >
35
- <p >These events (part of the MTA Lua API) are <strong >missing documentation or code examples</strong >:</p >
36
39
<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
+ )}
47
55
</section >
48
56
49
57
</StarlightPage >
0 commit comments