Skip to content

Commit

Permalink
fix(ci): update copymd.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Mar 13, 2024
1 parent dc75233 commit 02b8798
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/copyh5.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion scripts/copymd.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion scripts/copytaro.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 02b8798

Please sign in to comment.