Skip to content

Commit 83b8161

Browse files
committed
fix
1 parent 08aa5bd commit 83b8161

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scripts/concatenate-docs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function getDirectoryRecursive(basePath) {
3838
getDirectoryRecursive(fullPath);
3939
} else if (fullPath.endsWith('.mdx')) {
4040
// import the respective mdx file
41+
// prefix a `W` to prevent filename like 12345.mdx
4142
const basename = path
4243
.basename(file, '.mdx')
4344
.split('-')
@@ -46,9 +47,9 @@ function getDirectoryRecursive(basePath) {
4647
fileContents[fileContents.length] = {
4748
...front(fs.readFileSync(fullPath).toString()),
4849
body: `
49-
import ${basename} from './${file}'
50+
import W${basename} from './${file}'
5051
51-
<${basename} />
52+
<W${basename} />
5253
`,
5354
};
5455
}

0 commit comments

Comments
 (0)