docs: update dumi config

This commit is contained in:
PeachScript 2022-10-23 21:58:26 +08:00
parent 8c52c91f66
commit 32c33e20c3
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { Affix, Col, Menu, MenuProps } from 'antd';
import MobileMenu from 'rc-drawer';
import SiteContext from '../SiteContext';
import useLocation from '../../../hooks/useLocation';
import { useFullSidebarData } from 'dumi/dist/client/theme-api/useSidebarData';
import { useFullSidebarData } from 'dumi';
const Sidebar: FC = () => {
const sidebarData = useSidebarData();

View File

@ -8,7 +8,7 @@ export default defineConfig({
favicons: ['https://gw.alipayobjects.com/zos/rmsportal/rlpTLlbMzTNYuZGGCVYM.png'],
resolve: {
docDirs: [{ type: 'doc', dir: 'docs' }],
entityDirs: [{ type: 'component', dir: 'components' }],
atomDirs: [{ type: 'component', dir: 'components' }],
codeBlockMode: 'passive',
},
locales: [