diff --git a/packages/core/client/.dumirc.ts b/packages/core/client/.dumirc.ts index 30a533d107..818889cb76 100644 --- a/packages/core/client/.dumirc.ts +++ b/packages/core/client/.dumirc.ts @@ -1,4 +1,3 @@ -import _ from 'lodash' import { getUmiConfig } from '@nocobase/devtools/umiConfig'; import { defineConfig } from 'dumi'; import { defineThemeConfig } from 'dumi-theme-nocobase'; @@ -43,14 +42,14 @@ export default defineConfig({ title: 'Components', link: '/components/action', }, + { + title: 'UI Schema', + link: '/ui-schema/schema-initializer/page-add-block', + }, { title: 'Home site', link: lang === 'zh-CN' ? 'https://docs-cn.nocobase.com' : 'https://docs.nocobase.com', } - // { - // title: 'UI Schema', - // link: '/ui-schema', - // }, ], sidebarEnhance: { '/core': [ @@ -404,7 +403,49 @@ export default defineConfig({ }, ] }, - ] + ], + '/ui-schema': [ + { + title: 'SchemaInitializer', + type: 'group', + children: [ + { + title: 'page:addBlock', + link: '/ui-schema/schema-initializer/page-add-block', + }, + ], + }, + { + title: 'SchemaInitializerItem', + type: 'group', + children: [ + { + title: 'ActionInitializerItem', + link: '/ui-schema/schema-initializer-item/action-initializer-item', + }, + ], + }, + { + title: 'SchemaSettings', + type: 'group', + children: [ + { + title: 'actionSettings:addNew', + link: '/ui-schema/schema-settings/action-settings-add-new', + }, + ], + }, + { + title: 'SchemaSettingsItem', + type: 'group', + children: [ + { + title: 'EditButton', + link: '/ui-schema/schema-settings-item/edit-button', + }, + ], + } + ], // '/ui-schema': [ // { // title: 'Overview', diff --git a/packages/core/client/docs/zh-CN/ui-schema/schema-initializer/page-add-block.md b/packages/core/client/docs/zh-CN/ui-schema/schema-initializer/page-add-block.md new file mode 100644 index 0000000000..217de2df8c --- /dev/null +++ b/packages/core/client/docs/zh-CN/ui-schema/schema-initializer/page-add-block.md @@ -0,0 +1 @@ +# page:addBlock