File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ const repositoryName = "surrealdb/surrealdb";
5
5
const branch = "main" ;
6
6
const fncSourceCodeFilePath = "core/src/fnc/mod.rs" ;
7
7
8
+ const fncExclusions = [ ".chain" ] ;
9
+
8
10
const detectMissingFunctions = async ( ) => {
9
11
console . log ( "Detecting missing functions..." ) ;
10
12
console . log ( "--------------------------------------------------" ) ;
@@ -68,6 +70,10 @@ const detectMissingFunctions = async () => {
68
70
"../doc-surrealql_versioned_docs/version-latest/functions/database/*.mdx"
69
71
) ;
70
72
for await ( const path of glob . scan ( "." ) ) {
73
+ if ( path . endsWith ( "index.mdx" ) ) {
74
+ continue ;
75
+ }
76
+
71
77
const data = await Bun . file ( path ) . text ( ) ;
72
78
const $ = cheerio . load ( data ) ;
73
79
@@ -78,7 +84,8 @@ const detectMissingFunctions = async () => {
78
84
. replace ( "()" , "" )
79
85
. replace ( / \u200B / g, "" )
80
86
)
81
- . get ( ) ;
87
+ . get ( )
88
+ . filter ( ( functionName ) => ! fncExclusions . includes ( functionName ) ) ;
82
89
83
90
allDocumentedFunctions . push ( ...functionNames ) ;
84
91
}
You can’t perform that action at this time.
0 commit comments