nocobase/packages/core/client/.dumirc.ts
chenos 05040a1c5f
fix: client docs (#2965)
* fix: application bug

* fix: test error

* feat: client doc

* fix: delete it.only

* fix: demos

* fix: ci

* fix: create index.md

---------

Co-authored-by: dream2023 <1098626505@qq.com>
2023-11-06 11:50:13 +08:00

117 lines
2.7 KiB
TypeScript

import { getUmiConfig } from '@nocobase/devtools/umiConfig';
import { defineConfig } from 'dumi';
import { defineThemeConfig } from 'dumi-theme-nocobase';
const umiConfig = getUmiConfig();
export default defineConfig({
hash: true,
alias: {
...umiConfig.alias,
},
resolve: {
atomDirs: [
{ type: 'api', dir: 'src' },
{ type: 'api', dir: 'src/schema-component/antd' },
{ type: 'api', dir: 'src/route-switch/antd' },
],
},
themeConfig: defineThemeConfig({
title: 'NocoBase',
logo: 'https://www.nocobase.com/images/logo.png',
github: 'https://github.com/nocobase/nocobase',
footer: 'nocobase | Copyright © 2022',
// sidebarGroupModePath: ['/components'],
nav: [
{
title: 'API',
link: '/apis/application',
},
],
sidebarEnhance: {
'/apis': [
{
title: 'Core',
type: 'group',
children: [
{
title: 'Application',
children: [
{
title: 'Application',
link: '/apis/application',
},
{
title: 'APIClient',
link: '/apis/api-client',
},
{
title: 'SettingsCenter',
link: '#',
},
],
},
{
title: 'UI schema designer',
children: [
{
title: 'SchemaComponent',
link: '#',
},
{
title: 'SchemaInitializer',
link: '#',
},
{
title: 'SchemaSettings',
link: '#',
},
{
title: 'DNDContext & DragHandler',
link: '#',
},
],
},
{
title: 'Collection Manager',
link: '#',
},
{
title: 'BlockProvider',
link: '#',
},
{
title: 'RecordProvider',
link: '#',
},
],
},
{
title: 'React components',
type: 'group',
children: [
{
title: 'Board',
link: '#',
},
{
title: 'Icon',
link: '#',
},
],
},
{
title: 'Schema components',
type: 'group',
children: [
{
title: 'Input',
link: '#',
},
],
},
],
},
}),
});