Skip to content

Commit

Permalink
📝 docs: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 23, 2023
1 parent d7ac07d commit 1f3f99e
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 28 deletions.
3 changes: 3 additions & 0 deletions docs/api/create-instance.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sourceUrl: '{github}/blob/master/src/functions/createInstance.ts'
group:
title: Advanced Settings
order: 10
nav:
title: API Reference
order: 10
---

## Introduction
Expand Down
3 changes: 3 additions & 0 deletions docs/api/create-instance.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sourceUrl: '{github}/blob/master/src/functions/createInstance.ts'
group:
title: 高级设置
order: 10
nav:
title: API
order: 10
---

## 简介
Expand Down
4 changes: 1 addition & 3 deletions docs/api/create-styles.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ title: createStyles
description: Create scoped styles
order: 0
sourceUrl: '{github}/blob/master/src/factories/createStyles/index.ts'
group:
title: Style Creation
order: 0
group: Creating Styles
demo:
tocDepth: 4
---
Expand Down
4 changes: 1 addition & 3 deletions docs/api/create-styles.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ title: createStyles
description: 创建具有作用域的样式
order: 0
sourceUrl: '{github}/blob/master/src/factories/createStyles/index.ts'
group:
title: 创建样式
order: 0
group: 创建样式
demo:
tocDepth: 4
---
Expand Down
2 changes: 1 addition & 1 deletion docs/api/global-styles.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: createGlobalStyle
description: Create global styles
order: 10
group: Style Creation
group: Creating Styles
---

## Introduction
Expand Down
1 change: 0 additions & 1 deletion docs/api/use-theme.en-US.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: useTheme
order: 1
nav: API
group: Hooks
---

Expand Down
1 change: 0 additions & 1 deletion docs/api/use-theme.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: useTheme
order: 1
nav: API
group: Hooks
---

Expand Down
4 changes: 1 addition & 3 deletions docs/best-practice/antd-based-components.en-US.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
```markdown
---
title: 🚧 Styling Best Practices for Customizing Components Based on antd v5
group:
title: Component Library Development
title: UI Library Development
order: 3
---

# How to Write Styles Elegantly for a Component Library Based on antd v5?
```
2 changes: 0 additions & 2 deletions docs/best-practice/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
```markdown
---
title: Best Practices and Case Studies
nav:
Expand All @@ -13,4 +12,3 @@ As more and more users adopt antd-style, it has been observed that users still e
Therefore, this section has been adjusted to focus on "Best Practices" and "Case Studies", detailing the best practices for using antd-style based on common scenarios encountered by users.

In addition to best practices, this section also includes some practical case studies, with the hope of providing assistance to you.
```
2 changes: 1 addition & 1 deletion docs/best-practice/mac-select.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Custom Component: MacOS Selector
title: Custom Component —— macOS Selector
group:
title: Style Cases
order: 10
Expand Down
2 changes: 1 addition & 1 deletion docs/best-practice/mirgration-less-global-style.en-US.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: CSS Modules Global Style Override Migration
group:
title: Style Writing
title: Writing Style
order: 0
---

Expand Down
2 changes: 1 addition & 1 deletion docs/best-practice/nest-element-style.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Writing Linked Styles for Parent-Child Components
group: Style Writing
group: Writing Style
---

# How to Write Linked Styles
Expand Down
2 changes: 0 additions & 2 deletions docs/guide/compare.en-US.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
````markdown
---
title: Comparison of CSS in JS Writing Methods
order: 2
Expand All @@ -25,7 +24,6 @@ Most applications using antd are generally paired with less and css modules for
box-shadow: 0 8px 20px @shadow-color;
}
```
````

```tsx | pure
// index.tsx
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/css-in-js-intro.en-US.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Quick Start to CSS in JS
order: 1
group: Fundamentals
group: Basic Knowledge
---

# Quick Start to CSS in JS
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/migrate-less-codemod.en-US.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---

title: Less Application Automated Migration
order: 0
group: Migrating from Less
---

# Migrate Less Applications with Codemod

Expand Down
13 changes: 6 additions & 7 deletions docs/index.en-US.md → docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
```markdown
---
hero:
title: Ant Design <b>Style</b>
Expand All @@ -15,13 +14,13 @@ features:
description: Ant Design Style is compatible with various style engines such as styled-components, emotion-styled, etc., and has rich writing capabilities.
link: /guide/strategy
imageType: light
row: 8

- title: One-click Dark Mode Switch
link: /guide/switch-theme
description: We have encapsulated dynamic theme configuration and dark theme algorithm based on antd v5 cssinjs, providing easy-to-use light and dark theme switching capabilities for application-level scenarios, making it easier to use.
image: https://mdn.alipayobjects.com/huamei_rqvucu/afts/img/A*8KE7T7l39J0AAAAAAAAAAAAADoN6AQ/original
imageType: primary
row: 8

- title: Flexible Theme Extension
description: Ant Design Style provides custom token and stylish functionality. When the default antd token does not meet the styling requirements, you can flexibly extend your own theme system and freely consume it in CSS in JS.
Expand All @@ -43,30 +42,30 @@ features:
link: /guide/stylish
image: https://mdn.alipayobjects.com/huamei_rqvucu/afts/img/A*_in2RLf5pY8AAAAAAAAAAAAADoN6AQ/original
imageType: primary
row: 9
row: 10

- title: Smooth Migration from less
description: Need to migrate from an old project? Using antd-style can smoothly migrate less in the project to CSS in JS at a lower cost, and provide a better user experience and development experience.
link: /guide/migrate-from-less
image: https://mdn.alipayobjects.com/huamei_rqvucu/afts/img/A*5H2ySLO-X4cAAAAAAAAAAAAADoN6AQ/original
imageType: primary
row: 8

- title: Good Compatibility with Micro Apps
description: Ant Design Style is compatible with qiankun micro apps by default (with a slight performance sacrifice). It also provides performance optimization options for scenarios that do not require micro apps.
image: https://mdn.alipayobjects.com/huamei_rqvucu/afts/img/A*tZNeQIUYx_4AAAAAAAAAAAAADoN6AQ/original
imageType: primary
row: 6
row: 8

- title: Application Cases
description: Showcases various cases of components and applications using Ant Design Style, helping developers get started quickly. This documentation is also built using Ant Design Style and can serve as a reference for static site construction.
link: /case
image: https://mdn.alipayobjects.com/huamei_rqvucu/afts/img/A*5H2ySLO-X4cAAAAAAAAAAAAADoN6AQ/original
imageType: soon
row: 8
row: 9

- title: Easy Responsive Adaptation
description: Ant Design Style will provide convenient utility functions for responsive applications, helping developers quickly complete responsive theme development.
image: https://mdn.alipayobjects.com/huamei_rqvucu/afts/img/A*5H2ySLO-X4cAAAAAAAAAAAAADoN6AQ/original
row: 6
row: 7
---
```

0 comments on commit 1f3f99e

Please sign in to comment.