File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ function replaceGenericTypesInParamsTable(content) {
6161/**
6262 * Extracts the "## Parameters" section from a markdown file and writes it to a separate file.
6363 * @param {string } filePath - The path to the markdown file
64- * @param {string } dirName - The directory containing the files
6564 * @returns {boolean } True if a file was created
6665 */
67- function extractParametersSection ( filePath , dirName ) {
66+ function extractParametersSection ( filePath ) {
6867 const content = fs . readFileSync ( filePath , 'utf-8' ) ;
6968 const fileName = path . basename ( filePath , '.mdx' ) ;
69+ const dirName = path . dirname ( filePath ) ;
7070
7171 // Always use -params suffix
7272 const suffix = '-params' ;
@@ -168,7 +168,7 @@ function main() {
168168 }
169169
170170 // Extract Parameters sections
171- if ( extractParametersSection ( filePath , dir ) ) {
171+ if ( extractParametersSection ( filePath ) ) {
172172 paramsCount ++ ;
173173 }
174174 }
You can’t perform that action at this time.
0 commit comments