Skip to content

Commit a89a126

Browse files
committed
Optimize document
1 parent f58c84e commit a89a126

File tree

9 files changed

+218
-154
lines changed

9 files changed

+218
-154
lines changed

document/en/guide/quickstart.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22

33
## Install
44

5-
### Prerequisites
5+
### Prerequisites
66

7-
- Intellij `2023.1` or later.
7+
- IntelliJ IDEA 2023.1 or later
88

9-
### Install in Intellij
9+
### Install via IntelliJ
1010

1111
1. Open IntelliJ IDEA.
1212
2. Go to `File` > `Settings` > `Plugins`.
1313
3. Click `Marketplace`.
1414
4. Search for `JimmerBuddy` and install it.
1515

16-
### Install online
16+
### Install Online
1717

18-
1. Open [the link](https://plugins.jetbrains.com/plugin/26622-jimmer-buddy)
19-
2. Click `Get` button.
18+
1. Open [this link](https://plugins.jetbrains.com/plugin/26622-jimmer-buddy).
19+
2. Click the `Get` button.
2020

21-
### Install offline
21+
### Install Offline
2222

23-
1. Open [the link](https://plugins.jetbrains.com/plugin/26622-jimmer-buddy)
24-
2. Click `versions` button.
23+
1. Open [this link](https://plugins.jetbrains.com/plugin/26622-jimmer-buddy).
24+
2. Click the `Versions` button.
2525
3. Download the latest version.
26-
4. Install the plugin from `File` > `Settings` > `Plugins` > `Install plugin from disk...`.
26+
4. In IntelliJ, go to `File` > `Settings` > `Plugins` > `Install plugin from disk...` and select the downloaded file.
2727

2828
## FAQ
2929

3030
### Why is the plugin not available?
3131

32-
- Please wait for the project to be indexed, then reopen the project
32+
- Please wait for the project to finish indexing, then reopen the project.
3333

34-
### What time will the plugin generate draft, props, etc.?
34+
### When does the plugin generate draft, props, etc.?
3535

36-
- When you change the Java or Kotlin source, then wait 2 seconds
36+
- When you change Java or Kotlin source files, wait about 2 seconds.
3737

38-
### What time will the plugin generate the DTO view, input, etc.?
38+
### When does the plugin generate DTO view, input, etc.?
3939

40-
- When you change the DTO source, then wait 2 seconds
40+
- When you change DTO source files, wait about 2 seconds.
4141

42-
### Why does the plugin not generate source for Immutable and DTO
42+
### Why doesn't the plugin generate source for Immutable and DTO?
4343

44-
- Please check the plugin log tool window on the bottom or the left bottom, then create an issue
44+
- Please check the plugin log tool window at the bottom or lower left, then create an issue if needed.
4545

46-
### Why generated source is not same as the Jimmer's apt/ksp
46+
### Why is the generated source different from Jimmer's apt/ksp?
4747

48-
Do not worry, the Jimmer's apt/ksp will generate full source when your project builds.
48+
- Don't worry, Jimmer's apt/ksp will generate the full source when your project builds.
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
# What is JimmerBuddy?
22

3-
JimmerBuddy is a intellij plugin for project jimmer. Before, you needed to clean and build the project manually to generate the code. Now, you can generate any code when you change the source code.
3+
JimmerBuddy is an IntelliJ plugin for the Jimmer project. Previously, you needed to manually clean and build the project to generate code. Now, you can generate code automatically whenever you change the source code.
44

55
::: tip
6-
Just want to try it out? Skip to the [Quick Start](./quickstart.md)
6+
Just want to try it out? Skip to the [Quickstart](./quickstart.md)
77
:::
88

9-
## First-class Java/Kotlin development
9+
## First-class Java/Kotlin Development
1010

11-
- Automatically generate code from your source code. such as `draft`, `fetcher`, `props` etc.
11+
- Automatically generate code from your source code, such as `draft`, `fetcher`, `props`, etc.
1212
- List all `Immutables`, `DTOs`, and `ErrorFamilies` in the project.
13-
- Generate entity from database or ddl file.
13+
- Generate entities from a database or DDL file.
1414
- Jimmer project wizard.
15-
- Inspection for jimmer annotations.
16-
- Navigate to Immutable or Prop.
17-
- Complation for jimmer annotations.
18-
- Genreate all set of Draft.
19-
- DTO class member go to DTO file.
15+
- Inspections for Jimmer annotations.
16+
- Navigate to `Immutable` or `Prop`.
17+
- Completion for Jimmer annotations.
18+
- Generate all sets of `Draft`.
19+
- Navigate from DTO class members to DTO files.
2020
- Execute SQL to clipboard.
2121
- DTO type count and navigation.
2222
- Immutable inheritor count and navigation.
2323

24-
## First-class DTO development
24+
## First-class DTO Development
2525

26-
- Automatically generate `view`, `input`, `specification` etc. class for DTO.
27-
- Syntax highlight.
28-
- Syntax check.
29-
- Native compiler check.
26+
- Automatically generate `view`, `input`, `specification`, etc. classes for DTOs.
27+
- Syntax highlighting.
28+
- Syntax checking.
29+
- Native compiler checking.
3030
- Navigation to `type`, `prop`, `import`, `annotation`, etc.
31-
- Completion `export`, `package`, `import`, `prop`, `macro`, `config` etc.
32-
- Automatically import for `export`, `implements`, `userProp` etc.
33-
- Format source.
31+
- Completion for `export`, `package`, `import`, `prop`, `macro`, `config`, etc.
32+
- Automatic import for `export`, `implements`, `userProp`, etc.
33+
- Format source code.
3434
- Structure view.
35-
- Visualization to create DTO file.
35+
- Visualize and create DTO files.
3636

37-
## Supported annotations
37+
## Supported Annotations
3838

3939
`@Entity`, `@OneToOne`, `@OneToMany`, `@ManyToMany`, `@IdView`, `@Formula`

document/en/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44
hero:
55
name: "JimmerBuddy"
66
text: "First-class support for Project Jimmer"
7-
tagline: "A Intellij Plugin"
7+
tagline: "An IntelliJ Plugin"
88
image:
99
src: /logo.svg
1010
alt: VitePress
@@ -21,13 +21,13 @@ hero:
2121

2222
features:
2323
- icon: 🎯
24-
title: Focus on You Code
25-
details: Chcek your code about Jimmer annotations
24+
title: Focus on Your Code
25+
details: Check your code for Jimmer annotations
2626
- icon: ❤️
2727
title: Enjoy the Power of Jimmer
2828
details: Helpful code completion, code analysis, and more
2929
- icon: 🚀
30-
title: Fast to generate code
31-
details: Generate code without cleaning and compiling the project
30+
title: Fast Code Generation
31+
details: Generate code instantly without cleaning or compiling the project
3232
---
3333

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
# Inspection
22

3-
JimmerBuddy provide some inspection features to help you find problems in your code.
3+
JimmerBuddy provides several inspection features to help you identify problems in your code.
44

5-
## Association
5+
## Association Annotations
66

7-
Check some annotations of the association.
7+
Checks for correct usage of association annotations:
88

9-
- `@OneToOne` and `@ManyToOne` can not at collection property.
10-
- `@OneToMany` and `@ManyToMany` can not at non-collection property.
9+
- `@OneToOne` and `@ManyToOne` cannot be used on collection properties.
10+
- `@OneToMany` and `@ManyToMany` cannot be used on non-collection properties.
1111

12-
## MappedBy
12+
## MappedBy Property
1313

14-
Check the `mappedBy` property of the association.
14+
Checks the `mappedBy` property of associations:
1515

16-
- `mappedBy` prop must exist.
17-
- `mappedBy` prop type must match the inverse property type.
16+
- The `mappedBy` property must exist.
17+
- The `mappedBy` property type must match the inverse property type.
1818

19-
## IdView
19+
## IdView Annotation
2020

21-
Check the `@IdView` annotation.
21+
Checks the `@IdView` annotation:
2222

23-
- `value` must exist if the property is a collection.
24-
- Property type must be a collection if the type is a generic type.
25-
- Base prop must exist.
23+
- The `value` must exist if the property is a collection.
24+
- The property type must be a collection if the type is generic.
25+
- The base property must exist.
2626

27-
## Formula
27+
## Formula Annotation
2828

29-
Check the `@Formula` annotation.
29+
Checks the `@Formula` annotation:
3030

31-
- `dependencies` must exist.
31+
- The `dependencies` property must exist.
3232

33-
## FetchBy
33+
## FetchBy Annotation
3434

35-
Check the `@FetchBy` annotation.
35+
Checks the `@FetchBy` annotation:
3636

37-
- Property must be a fetcher.
38-
- Property must exist.
39-
- Fetcher type must match the fetch type.
37+
- The property must be a fetcher.
38+
- The property must exist.
39+
- The fetcher type must match the fetch type.
4040

41-
## Immutable
41+
## Immutable Annotations
4242

43-
Check some annotations about Immutable such as `@Immutable`, `@Entity`, `@MappedSuperclass`, and `@Embeddable`.
43+
Checks for correct usage of immutable-related annotations such as `@Immutable`, `@Entity`, `@MappedSuperclass`, and `@Embeddable`:
4444

45-
- Must on the interface.
45+
- Must be used on interfaces.
4646

47-
## OrderedProp
47+
## OrderedProp Annotation
4848

49-
Check the `@OrderedProp` annotation.
49+
Checks the `@OrderedProp` annotation:
5050

51-
- `value` must exist.
51+
- The `value` property must exist.

0 commit comments

Comments
 (0)