diff --git a/.dumirc.ts b/.dumirc.ts index 0fb2f108..83318de9 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -11,74 +11,10 @@ export default defineConfig({ hash: true, ignoreMomentLocale: true, themeConfig: { - hero: { - 'zh-CN': { - title: 'ProEditor', - description: '🌟 通用编辑器 UI 框架', - actions: [ - { - text: '快速开始 →', - link: '/guide/intro', - }, - { - text: 'Github', - link: 'https://github.com/ant-design/pro-editor', - }, - ], - }, - 'en-US': { - title: 'ProEditor', - description: '🌟 A General Editor UI Framework', - actions: [ - { - text: 'Quick Start →', - link: '/guide/intro', - }, - ], - }, - }, socialLinks: { github: 'https://github.com/ant-design/pro-editor', }, footer: 'Made with ❤️ by 蚂蚁集团 - AFX & 数字科技', - features: [ - { - image: - 'https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/q48YQ5X4ytAAAAAAAAAAAAAAFl94AQBr', - title: '简单易用', - description: '在 Ant Design 上进行了自己的封装,更加易用', - }, - { - image: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', - title: 'Ant Design', - description: '与 Ant Design 设计体系一脉相承,无缝对接 antd 项目', - }, - { - image: - 'https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/UKqDTIp55HYAAAAAAAAAAAAAFl94AQBr', - title: '通用编辑器组件', - description: '提供完备的编辑器组件,方便使用者定制自己的编辑器', - }, - - { - image: - 'https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/Y_NMQKxw7OgAAAAAAAAAAAAAFl94AQBr', - title: '预设样式', - description: '样式风格与 antd 一脉相承,无需魔改,浑然天成。默认好用的主题系统', - }, - { - image: - 'https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/U3XjS5IA1tUAAAAAAAAAAAAAFl94AQBr', - title: '预设行为', - description: '更少的代码,更少的 Bug,更多的功能', - }, - - { - image: 'https://gw.alipayobjects.com/zos/antfincdn/Eb8IHpb9jE/Typescript_logo_2020.svg', - title: 'TypeScript', - description: '使用 TypeScript 开发,提供完整的类型定义文件,无需频繁打开官网', - }, - ], logo: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg', name: '@ant-design/pro-editor', }, diff --git a/.i18nrc.js b/.i18nrc.js index 822fd6cf..ce72e61e 100644 --- a/.i18nrc.js +++ b/.i18nrc.js @@ -6,7 +6,6 @@ module.exports = { markdown: { entry: ['docs/**/**.md', 'src/**/**.md'], entryLocale: 'zh-CN', - exclude: ['docs/index.zh-CN.md'], entryExtension: '.zh-CN.md', outputLocales: ['en-US'], }, diff --git a/docs/index.en-US.md b/docs/index.en-US.md new file mode 100644 index 00000000..a8fba4f3 --- /dev/null +++ b/docs/index.en-US.md @@ -0,0 +1,35 @@ +--- +hero: + title: ProEditor + description: 🌟 Universal Editor UI Framework + actions: + - text: Get Started → + link: /guide/intro + - text: Github + link: https://github.com/ant-design/pro-editor + +features: + - title: Easy to Use + description: Wrapped on Ant Design, making it more user-friendly + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/q48YQ5X4ytAAAAAAAAAAAAAAFl94AQBr + + - title: Ant Design + description: Inherit the Ant Design design system, seamlessly integrate with antd projects + image: https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg + + - title: Universal Editor Components + description: Provide comprehensive editor components for users to customize their own editors + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/UKqDTIp55HYAAAAAAAAAAAAAFl94AQBr + + - title: Preset Styles + description: Style in line with antd, no need for major modifications, naturally integrated, default user-friendly theme system + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/Y_NMQKxw7OgAAAAAAAAAAAAAFl94AQBr + + - title: Preset Behaviors + description: Less code, fewer bugs, more functionality + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/U3XjS5IA1tUAAAAAAAAAAAAAFl94AQBr + + - title: TypeScript + description: Developed using TypeScript, providing complete type definition files, no need to frequently visit the official website + image: https://gw.alipayobjects.com/zos/antfincdn/Eb8IHpb9jE/Typescript_logo_2020.svg +--- diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index f80e4d3d..00000000 --- a/docs/index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -hero: - title: ProEditor - description: 🌟 Universal Editor UI Framework ---- - -@ant-design/pro-editor diff --git a/docs/index.zh-CN.md b/docs/index.zh-CN.md index c9e28204..ad855da3 100644 --- a/docs/index.zh-CN.md +++ b/docs/index.zh-CN.md @@ -2,6 +2,34 @@ hero: title: ProEditor description: 🌟 通用编辑器 UI 框架 ---- + actions: + - text: 快速开始 → + link: /guide/intro + - text: Github + link: https://github.com/ant-design/pro-editor + +features: + - title: 简单易用 + description: 在 Ant Design 上进行了自己的封装,更加易用 + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/q48YQ5X4ytAAAAAAAAAAAAAAFl94AQBr + + - title: Ant Design + description: 与 Ant Design 设计体系一脉相承,无缝对接 antd 项目 + image: https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg + + - title: 通用编辑器组件 + description: 提供完备的编辑器组件,方便使用者定制自己的编辑器 + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/UKqDTIp55HYAAAAAAAAAAAAAFl94AQBr -@ant-design/pro-editor + - title: 预设样式 + description: 样式风格与 antd 一脉相承,无需魔改,浑然天成,默认好用的主题系统 + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/Y_NMQKxw7OgAAAAAAAAAAAAAFl94AQBr + + - title: 预设行为 + description: 更少的代码,更少的 Bug,更多的功能 + image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/U3XjS5IA1tUAAAAAAAAAAAAAFl94AQBr + + - title: TypeScript + description: 使用 TypeScript 开发,提供完整的类型定义文件,无需频繁打开官网 + image: https://gw.alipayobjects.com/zos/antfincdn/Eb8IHpb9jE/Typescript_logo_2020.svg +---