mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
upd: 处理 README 文件使用绝对路径
This commit is contained in:
+2
-1
@@ -13,5 +13,6 @@ dirs.forEach(dir => {
|
||||
})
|
||||
|
||||
// 复制 markdown,处理相对路径
|
||||
const md = fs.readFileSync('README.md').toString('UTF-8').replace(/\]\(\.\/help\//ig, '](./').replace(/src="\.\/help\//ig, 'src="./')
|
||||
const readme = path.join(__dirname, 'README.md')
|
||||
const md = fs.readFileSync(readme).toString('UTF-8').replace(/\]\(\.\/help\//ig, '](./').replace(/src="\.\/help\//ig, 'src="./')
|
||||
fs.writeFileSync(path.join(__dirname, './help/README.md'), md)
|
||||
|
||||
Reference in New Issue
Block a user