|
@@ -37,12 +37,18 @@ const copy = async () => {
|
|
|
if (item.show) {
|
|
if (item.show) {
|
|
|
let cmpName = item.name.toLowerCase();
|
|
let cmpName = item.name.toLowerCase();
|
|
|
let docpath = `src/packages/__VUE/${cmpName}/doc.md`;
|
|
let docpath = `src/packages/__VUE/${cmpName}/doc.md`;
|
|
|
|
|
+ let docEnPath = `src/packages/__VUE/${cmpName}/doc.en-US.md`;
|
|
|
let doctaropath = `src/packages/__VUE/${cmpName}/doc.taro.md`;
|
|
let doctaropath = `src/packages/__VUE/${cmpName}/doc.taro.md`;
|
|
|
fse.readFile(docpath, (err, data) => {
|
|
fse.readFile(docpath, (err, data) => {
|
|
|
if (!err) {
|
|
if (!err) {
|
|
|
copyFile(docpath, `${targetBaseUrl}/docs/${cmpName}/doc.md`);
|
|
copyFile(docpath, `${targetBaseUrl}/docs/${cmpName}/doc.md`);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ fse.readFile(docEnPath, (err, data) => {
|
|
|
|
|
+ if (!err) {
|
|
|
|
|
+ copyFile(docEnPath, `${targetBaseUrl}/docs/${cmpName}/doc.en-US.md`);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
fse.readFile(doctaropath, (err, data) => {
|
|
fse.readFile(doctaropath, (err, data) => {
|
|
|
if (!err) {
|
|
if (!err) {
|
|
|
copyFile(doctaropath, `${targetBaseUrl}/docs/${cmpName}/doc.taro.md`);
|
|
copyFile(doctaropath, `${targetBaseUrl}/docs/${cmpName}/doc.taro.md`);
|