Skip to content

Commit

Permalink
📝 docs: 迁移 hero 和 features 文档 & 翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Mar 6, 2024
1 parent b9bfb49 commit d3b1d6d
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 74 deletions.
64 changes: 0 additions & 64 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down
1 change: 0 additions & 1 deletion .i18nrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand Down
35 changes: 35 additions & 0 deletions docs/index.en-US.md
Original file line number Diff line number Diff line change
@@ -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
---
7 changes: 0 additions & 7 deletions docs/index.md

This file was deleted.

32 changes: 30 additions & 2 deletions docs/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

0 comments on commit d3b1d6d

Please sign in to comment.