|
1 |
| -# Style guidance |
| 1 | +# Style Guidance |
2 | 2 |
|
3 |
| -In general, Keploy content follows the [Google developer documentation style guide](https://developers.google.com/style). |
4 |
| -When the Google guide is silent about an issue, we follow the [Microsoft Writing Style Guide](https://docs.microsoft.com/en-us/style-guide/welcome/). |
| 3 | +Keploy documentation generally follows the [Google Developer Documentation Style Guide](https://developers.google.com/style). |
5 | 4 |
|
6 |
| -## Keploy-specific style guidance |
| 5 | +When the Google guide does not address a specific topic, we defer to the [Microsoft Writing Style Guide](https://docs.microsoft.com/en-us/style-guide/welcome/). |
7 | 6 |
|
8 |
| -We have a few Keploy-specific style guidelines that override the Google and Microsoft guides. |
| 7 | +--- |
9 | 8 |
|
10 |
| -### Capitalization of core terms |
| 9 | +## 🛠️ Keploy-Specific Style Guidelines |
11 | 10 |
|
12 |
| -Many of Keploy's core terms can be used in a generic way. |
13 |
| -To differentiate one of Keploy's core terms from a generic instance of a term, always treat the Keploy term as a proper noun in documentation. |
14 |
| -Generic versions of the same term should not be capitalized and should be used sparingly to avoid confusion. |
| 11 | +The following are Keploy-specific rules that override or expand on the Google and Microsoft guides. |
15 | 12 |
|
16 |
| -- Correct: "Next, Normalise the Test case on the Test run details." |
17 |
| -- Incorrect: "Next, normalise the test case on the test run details" |
| 13 | +--- |
18 | 14 |
|
19 |
| -### En dashes in ranges |
| 15 | +### 📌 Capitalization of Core Terms |
20 | 16 |
|
21 |
| -Using an en dash (`–` or the character `–`) in a range of numbers is acceptable. |
22 |
| -Even better is to use words such as _from_, _to_, and _through_. |
| 17 | +Some of Keploy’s core terms may also exist as generic terms in software or technical contexts. |
| 18 | +To reduce confusion, **always capitalize Keploy-specific terms** when referring to features or platform components. Generic usage should be lowercase and used sparingly. |
23 | 19 |
|
24 |
| -Be consistent. |
25 |
| -If you use an en dash in one range, use en dashes in all ranges. |
26 |
| -Do not mix words and en dashes (or hyphens, for that matter). |
| 20 | +✅ **Correct:** |
| 21 | +> “Next, Normalise the Test case on the Test run details page.” |
27 | 22 |
|
28 |
| -- Correct: "5 to 10 GB" |
29 |
| -- Correct: "5–10 GB" |
30 |
| -- Correct: "5-10 GB" |
31 |
| -- Incorrect: "from 5-10 GB" |
| 23 | +❌ **Incorrect:** |
| 24 | +> “Next, normalise the test case on the test run details.” |
32 | 25 |
|
33 |
| -## Headings |
| 26 | +--- |
34 | 27 |
|
35 |
| -Although the following guidance is provided by both the Google and Microsoft guides, we want to emphasize how we style headings. |
| 28 | +### 🔤 Sentence Case in Headings |
36 | 29 |
|
37 |
| -### Infinitive verb forms in headings |
| 30 | +Use **sentence case** for all titles and headings. This means only the **first word** and **proper nouns** are capitalized. |
38 | 31 |
|
39 |
| -Titles and headings should use infinitive verb forms whenever possible. People tend to search by using infinitive verb forms, so using them helps SEO. |
| 32 | +✅ Correct: |
| 33 | +> How to get started with Keploy |
40 | 34 |
|
41 |
| -- Correct: "Install Keploy" |
42 |
| -- Incorrect: "Installing Keploy" |
| 35 | +❌ Incorrect: |
| 36 | +> How To Get Started With Keploy |
43 | 37 |
|
44 |
| -### Sentence casing in headings |
| 38 | +--- |
45 | 39 |
|
46 |
| -Use sentence casing for titles and headings. |
47 |
| -Sentence casing means that only the first letter of the first word and proper nouns are capitalized. |
| 40 | +### 🧾 Infinitive Verb Forms in Headings |
| 41 | + |
| 42 | +Use **infinitive verb forms** (e.g., "to install", "to create", "to configure") in titles and headings. |
| 43 | +This improves searchability and aligns with common SEO practices. |
| 44 | + |
| 45 | +✅ Correct: |
| 46 | +> Install Keploy |
| 47 | +> Create test cases |
| 48 | +
|
| 49 | +❌ Incorrect: |
| 50 | +> Installing Keploy |
| 51 | +> Creating test cases |
| 52 | +
|
| 53 | +--- |
| 54 | + |
| 55 | +### 🧮 En Dashes in Ranges |
| 56 | + |
| 57 | +Use **en dashes (–)** to indicate numeric ranges. Do **not** mix styles or use hyphens inconsistently. |
| 58 | +You may also use words like *from*, *to*, or *through* — but be consistent throughout the doc. |
| 59 | + |
| 60 | +✅ Correct: |
| 61 | +- 5–10 GB |
| 62 | +- 5 to 10 GB |
| 63 | + |
| 64 | +❌ Incorrect: |
| 65 | +- from 5-10 GB |
| 66 | +- 5–10 GB and 10 to 20 MB (mixed style) |
| 67 | + |
| 68 | +--- |
| 69 | + |
| 70 | +### 🧠 Use Active Voice |
| 71 | + |
| 72 | +Use **active voice** instead of passive voice to improve clarity and readability. |
| 73 | + |
| 74 | +✅ Correct: |
| 75 | +> Keploy records the API calls and generates test cases. |
| 76 | +
|
| 77 | +❌ Incorrect: |
| 78 | +> The API calls are recorded and test cases are generated by Keploy. |
| 79 | +
|
| 80 | +--- |
| 81 | + |
| 82 | +### 🌍 Write for Global Readability |
| 83 | + |
| 84 | +Use clear, simple, and **inclusive language**: |
| 85 | +- Avoid jargon or unexplained acronyms. |
| 86 | +- Provide context for technical terms. |
| 87 | +- Prefer short, direct sentences. |
| 88 | + |
| 89 | +✅ Better: |
| 90 | +> After installing Go, use the following command to run Keploy. |
| 91 | +
|
| 92 | +❌ Confusing: |
| 93 | +> Assuming GOPATH is set and your binaries are globally linked, execute Keploy. |
| 94 | +
|
| 95 | +--- |
| 96 | + |
| 97 | +### 🔧 Code Formatting |
| 98 | + |
| 99 | +- Wrap inline code using backticks: \`like this\` |
| 100 | +- Use triple backticks for multi-line code blocks: |
| 101 | + \`\`\`bash |
| 102 | + npm install |
| 103 | + npm run serve |
| 104 | + \`\`\` |
| 105 | +- Add comments in code examples where needed for clarity. |
| 106 | + |
| 107 | +--- |
| 108 | + |
| 109 | +## ✅ Summary Checklist for Writers |
| 110 | + |
| 111 | +- [ ] Are headings in sentence case and infinitive form? |
| 112 | +- [ ] Are core terms capitalized correctly? |
| 113 | +- [ ] Did I use active voice wherever possible? |
| 114 | +- [ ] Are numeric ranges formatted consistently? |
| 115 | +- [ ] Is my language clear and globally understandable? |
| 116 | +- [ ] Are code examples formatted properly? |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +> ✨ _Consistency leads to clarity. Let’s keep Keploy documentation clean, helpful, and easy to follow._ |
48 | 121 |
|
49 |
| -- Correct: "How to get started with Keploy" |
50 |
| -- Incorrect: "How To Get Started With Keploy" |
|
0 commit comments