@@ -35,7 +35,15 @@ function default_1(theme) {
3535 if ( ! hideInPageTOC ) {
3636 md . push ( `## Table of contents\n\n` ) ;
3737 }
38- for ( const child of ( _b = this . children ) !== null && _b !== void 0 ? _b : [ ] ) {
38+ let sortedChildren = ( _b = this . children ) !== null && _b !== void 0 ? _b : [ ] ;
39+ sortedChildren . sort ( function ( x , y ) {
40+ return x . name == "iasql_functions"
41+ ? - 1
42+ : y . name == "iasql_functions"
43+ ? 1
44+ : 0 ;
45+ } ) ;
46+ for ( const child of sortedChildren ) {
3947 if ( ( ( _c = child . parent ) === null || _c === void 0 ? void 0 : _c . id ) == 0 &&
4048 child . kind == 2 &&
4149 ! child . name . includes ( "/" ) &&
@@ -44,16 +52,36 @@ function default_1(theme) {
4452 ! child . name . includes ( "interfaces" ) &&
4553 ! child . name . includes ( "subscribers" ) ) {
4654 md . push ( `### ${ child . name } \n\n` ) ;
47- for ( const child1 of ( _d = this . children ) !== null && _d !== void 0 ? _d : [ ] ) {
48- if ( child1 . name . includes ( child . name ) &&
49- ( child1 . name . includes ( "entity" ) || child1 . name . includes ( "rpc" ) ) ) {
50- for ( const child2 of ( _e = child1 . children ) !== null && _e !== void 0 ? _e : [ ] ) {
51- if ( ! ( ( _f = child2 . url ) === null || _f === void 0 ? void 0 : _f . includes ( "modules" ) ) ) {
52- md . push ( `[${ ( 0 , utils_1 . camelToSnakeCase ) ( child2 . name ) } ](${ child2 . url } )\n\n` ) ;
53- }
54- }
55+ const tables = [ ] ;
56+ const methods = [ ] ;
57+ const enums = [ ] ;
58+ const filtered = sortedChildren === null || sortedChildren === void 0 ? void 0 : sortedChildren . filter ( ( x ) => x . name . includes ( child . name ) &&
59+ ( x . name . includes ( "entity" ) || x . name . includes ( "rpc" ) ) ) ;
60+ for ( const filt of filtered ) {
61+ for ( const item of ( _d = filt . children ) !== null && _d !== void 0 ? _d : [ ] ) {
62+ if ( item . kindString == "Class" && ! ( ( _e = item . url ) === null || _e === void 0 ? void 0 : _e . includes ( "rpc" ) ) )
63+ tables . push ( item ) ;
64+ if ( item . kindString == "Class" && ( ( _f = item . url ) === null || _f === void 0 ? void 0 : _f . includes ( "rpc" ) ) )
65+ methods . push ( item ) ;
66+ if ( item . kindString == "Enumeration" )
67+ enums . push ( item ) ;
5568 }
5669 }
70+ if ( tables . length > 0 )
71+ md . push ( " **Tables**\n" ) ;
72+ for ( const child2 of tables ) {
73+ md . push ( ` [${ ( 0 , utils_1 . camelToSnakeCase ) ( child2 . name ) } ](${ child2 . url } )\n\n` ) ;
74+ }
75+ if ( methods . length > 0 )
76+ md . push ( " **Functions**\n" ) ;
77+ for ( const child2 of methods ) {
78+ md . push ( ` [${ ( 0 , utils_1 . camelToSnakeCase ) ( child2 . name ) } ](${ child2 . url } )\n\n` ) ;
79+ }
80+ if ( enums . length > 0 )
81+ md . push ( " **Enums**\n" ) ;
82+ for ( const child2 of enums ) {
83+ md . push ( ` [${ ( 0 , utils_1 . camelToSnakeCase ) ( child2 . name ) } ](${ child2 . url } )\n\n` ) ;
84+ }
5785 }
5886 }
5987 }
0 commit comments