Skip to content

Commit

Permalink
Fix setup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Mar 11, 2024
1 parent f9e3768 commit 53522f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function setupAssets() {
}
});
}
import { find } from "../feishu-pages/docs.json";
const hkMetadata = find((doc) => doc.meta?.slug === "zh-HK");
import docs from "../feishu-pages/docs.json";
const hkMetadata = docs.find((doc) => doc.meta?.slug === "zh-HK");
const HomePageSlug = "guides";
// read feishu-pages/docs.json file find slug equal guides, then copy it to locales/zh-HK/docs/index.md
// for Nginx directory to index.html
Expand Down

0 comments on commit 53522f5

Please sign in to comment.