提交 6650ea04 编写于 作者: O oasis-cloud

chore: sync docs

上级 12527126
......@@ -18,7 +18,7 @@ jobs:
- name : Sync
uses : JamesIves/github-pages-deploy-action@4.1.7
with :
branch : master # action 应该部署到的分支 。
branch : main # action 应该部署到的分支 。
folder : site_docs #操作应该部署的文件夹 。
clean: false
repository-name: jdf2e/nutui-docs
......
......@@ -37,11 +37,17 @@ const copy = async () => {
if (item.show) {
let cmpName = item.name.toLowerCase()
let docpath = `src/packages/${cmpName}/doc.md`
let docENpath = `src/packages/${cmpName}/doc.en-US.md`
fse.readFile(docpath, (err, data) => {
if (!err) {
copyFile(docpath, `${targetBaseUrl}/docs/${cmpName}/doc.md`)
}
})
fse.readFile(docENpath, (err, data) => {
if (!err) {
copyFile(docpath, `${targetBaseUrl}/docs/${cmpName}/doc.en-US.md`)
}
})
}
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册