From 02b87986292908391e239f02b89a0bab7d25043c Mon Sep 17 00:00:00 2001 From: eiinu Date: Wed, 13 Mar 2024 15:43:02 +0800 Subject: [PATCH] fix(ci): update copymd.cjs --- scripts/copyh5.cjs | 2 +- scripts/copymd.cjs | 2 +- scripts/copytaro.cjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/copyh5.cjs b/scripts/copyh5.cjs index 14f6d0412f..b3707f9d97 100644 --- a/scripts/copyh5.cjs +++ b/scripts/copyh5.cjs @@ -67,7 +67,7 @@ const copy = async () => { const fromConfig = await fse.readJson(configPath); fromConfig.nav.forEach(({ packages }) => { packages.forEach((item) => { - if (item.show) { + if (item.show !== false) { let cmpName = item.name.toLowerCase(); let docpath = `src/packages/__VUE/${cmpName}/doc.md`; let docEnPath = `src/packages/__VUE/${cmpName}/doc.en-US.md`; diff --git a/scripts/copymd.cjs b/scripts/copymd.cjs index ec1df24d49..87e1796e5a 100644 --- a/scripts/copymd.cjs +++ b/scripts/copymd.cjs @@ -34,7 +34,7 @@ const copy = async () => { const fromConfig = await fse.readJson(configPath); fromConfig.nav.forEach(({ packages }) => { packages.forEach((item) => { - if (item.show) { + if (item.show !== false) { let cmpName = item.name.toLowerCase(); let docpath = `src/packages/__VUE/${cmpName}/doc.md`; let docEnPath = `src/packages/__VUE/${cmpName}/doc.en-US.md`; diff --git a/scripts/copytaro.cjs b/scripts/copytaro.cjs index c6fb003dd2..ee6c0b35ed 100644 --- a/scripts/copytaro.cjs +++ b/scripts/copytaro.cjs @@ -67,7 +67,7 @@ const copy = async () => { const fromConfig = await fse.readJson(configPath); fromConfig.nav.forEach(({ packages }) => { packages.forEach((item) => { - if (item.show) { + if (item.show !== false) { let cmpName = item.name.toLowerCase(); let doctaropath = `src/packages/__VUE/${cmpName}/doc.taro.md`; fse.readFile(doctaropath, (err, data) => {