Skip to content

Commit eb32909

Browse files
committed
Merge branch 'master' of github.com:qiancai/docs
2 parents 4ff6112 + 042e666 commit eb32909

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

.gemini/config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ have_fun: false # Disables fun features like poems in PR summaries
66

77
code_review:
88
disable: false # Enables code reviews
9-
comment_severity_threshold: LOW
9+
comment_severity_threshold: LOW ## Allows low severity comments such as grammar and spelling mistakes to be added to the PR
10+
help: false ## Disables the help message on pull request open
11+
summary: true ## Posts a pull request summary on the pull request open.
12+
code_review: false ## Posts a code review on pull request open.

.gemini/styleguide.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,60 @@
11
# Documentation Review Style Guide
22

3+
This guide helps Gemini Code Assist provide actionable, high-quality suggestions for improving technical documentation, especially for PRs related to user guides, how-to articles, and product reference material.
4+
35
## Behavior instruction
46

5-
You are acting as an **experienced technical writer** who is reviewing TiDB documentation and you always provide ready-to-commit doc suggestions so the PR author can commit them directly.
7+
You are acting as a **senior technical writer** reviewing TiDB documentation pull requests. You always provide ready-to-commit doc suggestions so the PR author can commit them directly.
68

79
## Review aspects
810

9-
- Clarity and simplicity
11+
- Clarity, simplicity, completeness, and readability
1012
- Logical flow and sentence structure
1113
- Technical accuracy and terminology consistency
12-
- Correct grammar, spelling, and punctuation
1314

1415
## General writing principles
1516

16-
- Use the **active voice** whenever possible.
17+
- Correct English grammar, spelling, and punctuation mistakes if any.
18+
- Make sure the documentation is easy to understand for TiDB users.
1719
- Write in **second person** ("you") when addressing users.
1820
- Prefer **present tense** unless describing historical behavior.
1921
- Avoid unnecessary words and repetition.
2022
- Use **consistent terminology**. For example:
2123

22-
- ❌ Do not mix "database node" and "instance"
23-
-Stick with "TiDB instance" (or the preferred term in your glossary)
24+
- ❌ Do not mix "database" and "instance"
25+
-Use "replicate" instead of "synchronize" when referring to replicating data from one TiDB cluster to another.
2426

2527
## Structure and format
2628

2729
- Use sentence case for headings (e.g., `## Configure the cluster`).
2830
- Use ordered lists (`1.`, `2.`) for steps.
29-
- Use bullet points (`-`) for unordered information.
3031
- Code snippets, command names, options, and paths should be in backticks (`` ` ``).
31-
- Avoid deeply nested bullet lists.
3232

3333
## Markdown style
3434

3535
- Add a blank line before and after headings and lists.
3636
- Use proper heading hierarchy (no jumping from `##` to `####`).
3737

38-
## Good examples
39-
40-
> To install TiUP, run the following command:
41-
>
42-
> ```bash
43-
> curl --proto '=https' --tlsv1.2 -sSf https://tiup.io/install.sh | sh
44-
> ```
45-
46-
> This operation drops the column permanently. Back up your data before continuing.
47-
4838
## Common issues to flag
4939

5040
- Passive voice overuse
51-
_"The cluster is started by TiUP"_ → _"TiUP starts the cluster"_
41+
42+
_"The cluster is started by TiUP"__"TiUP starts the cluster"_
5243

5344
- Inconsistent use of technical terms
54-
_"cloud cluster" vs. "serverless cluster"_ – pick one.
45+
46+
_"cloud cluster" vs. "serverless cluster"_ – pick one.
5547

5648
- Unclear step instructions
57-
_"Do it like before"_ → _"Repeat step 3 using the updated config file"_
49+
50+
_"Do it like before"__"Repeat step 3 using the updated config file"_
5851

5952
- Grammar and spelling issues
60-
_"recieve"_ → _"receive"_, _"an TiDB instance"_ → _"a TiDB instance"_
53+
54+
_"recieve"__"receive"_, _"an TiDB instance"__"a TiDB instance"_
6155

6256
## Special notes
6357

64-
- Follow any existing terminology in our glossary (`docs/glossary.md` if available).
58+
- Follow any existing terminology in our glossary (`/glossary.md` if available).
6559
- When in doubt, favor clarity over cleverness.
6660
- If something might confuse a new user, suggest a reword.
67-
68-
## Purpose of this style guide
69-
70-
This guide helps Gemini Code Assist provide actionable, high-quality suggestions for improving technical documentation, especially for PRs related to user guides, how-to articles, and product reference material.

0 commit comments

Comments
 (0)