Skip to content

Commit

Permalink
chore: fix format.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Aug 20, 2023
1 parent 8a58d74 commit ce75278
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions website/docs/.format/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,11 @@ const loopNav = (nav, lang) =>
*/
const buildFileList = async () => {
const config = require(`../../sidebars.js`);
const fileList = config.guideSidebar[2].items
.map((item) => ({
type: file.ROUTE_TYPE,
path: path.resolve(__dirname, '..', `./${item}.md`),
lang: 'zh-CN',
}))
.concat(
config.guideSidebar[2].items.map((item) => ({
type: file.ROUTE_TYPE,
path: path.resolve(__dirname, '../../i18n/docusaurus-plugin-content-docs/current', `./${item}.md`),
lang: 'en-US',
}))
);
const fileList = config.guideSidebar[2].items.map((item) => ({
type: file.ROUTE_TYPE,
path: path.resolve(__dirname, '..', `./${item}.md`),
lang: 'zh-CN',
}));
// let fileList = [];
// Object.keys(config.themeConfig.locales).forEach((key) => {
// const locale = config.themeConfig.locales[key];
Expand Down

0 comments on commit ce75278

Please sign in to comment.