Rename all md file to mdx
Luke Karrys committed
Oct 22, 2023 at 11:17 UTC
dc3e5b4d4d01149f1af5e10ed9ed8ae303003eeb
408 files changed
+3
-1
cli/lib/extract.js
+3
-1
@@ -69,6 +69,8 @@ const unpackTarball = async ({release, cwd, dir}) => {
69
}),
70
)
71
72
+ await Promise.all(result.map(f => fs.rename(join(cwd, f), join(cwd, f.replace('.md', '.mdx')))))
73
+
74
return result
75
}
76
@@ -93,7 +95,7 @@ const writeChangelog = async ({release, nav, cwd, srcPath, contentPath}) => {
95
const changelog = await gh.getFile({ref: release.branch, path: srcPath})
96
97
await fs.writeFile(
96
- join(cwd, contentPath + '.md'),
98
+ join(cwd, contentPath + '.mdx'),
99
Transform.sync(changelog, {
100
release,
101
path: contentPath,