Skip to content

Commit c57fd92

Browse files
committed
2 parents 420f280 + 98478ba commit c57fd92

File tree

112 files changed

+1512
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1512
-253
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Docusaurus docs with Vale linter
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: Vale doc linter
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/[email protected]
11+
12+
# Set up Vale Action
13+
- uses: errata-ai/[email protected]
14+
with:
15+
# Filter mode can be set to: added, diff_context, file, nofilter
16+
filter_mode: nofilter
17+
# Set the reporter to display the output: github-pr-check, github-pr-review, github-check
18+
reporter: github-pr-check
19+
# Fails the action if there are errors
20+
fail_on_error: true
21+
# Lint the files in the "versioned_docs/version-2.0.0/" directory
22+
files: 'versioned_docs/version-2.0.0'
23+
# Specify the Vale version
24+
version: 3.0.3
25+
env:
26+
# GitHub token for authentication, automatically set by GitHub Actions
27+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.vale.ini

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# vale.ini
2+
3+
StylesPath = vale_styles # Update this path to where your styles are stored.
4+
MinAlertLevel = error # Set the minimum alert level to display (suggestion, warning, or error).
5+
Vocab = Base
6+
7+
[*.md]
8+
# Enable Markdown-specific styles.
9+
BasedOnStyles = Vale, Google
10+
11+
# Customize specific rules based on your needs.
12+
List.Capitalization = YES
13+
14+
# Override some rules:
15+
Vale.Spelling = YES
16+
Google.PassiveVoice = NO # Disable passive voice rule if unnecessary
17+
Google.We = NO # Disable first-person plural flagging
18+
Google.Will = NO # Allow "will" usage
19+
Google.Exclamation = NO # Allow exclamation points
20+
Google.Ellipses = NO # Allow ellipses in text
21+
Google.Latin = NO # Allow "e.g." and "i.e." instead of "for example"
22+
23+
# Allow specific terms:
24+
Vale.Terms=NO
25+

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,60 @@ npm start
7575

7676
The command starts a local development server and opens a browser window.
7777

78+
## Running Vale Locally for Documentation Linting
79+
80+
To help maintain consistency in our documentation, we use Vale, a syntax-aware linter that checks for spelling, grammar, and style issues.
81+
82+
### Installation
83+
84+
**Step 1: Install Vale**
85+
86+
If you're on macOS, you can install Vale using Homebrew:
87+
88+
```bash
89+
brew install vale
90+
```
91+
92+
Alternatively, you can install Vale manually:
93+
94+
1. Download Vale: Visit the Vale Releases page and download the latest version for your operating system.
95+
96+
2. Install Vale:
97+
98+
- On macOS and Linux, extract the binary, move it to /usr/local/bin, and make it executable:
99+
100+
```bash
101+
sudo mv vale /usr/local/bin/
102+
sudo chmod +x /usr/local/bin/vale
103+
```
104+
105+
- On Windows, follow the instructions in the downloaded .zip file.
106+
107+
**Step 2: Configure Vale**
108+
109+
1. Ensure you have the .vale.ini configuration file in the root directory.
110+
111+
2. Check that StylesPath in .vale.ini points to the vale_styles directory (where custom styles are stored):
112+
113+
```ini
114+
StylesPath = vale_styles
115+
MinAlertLevel = error
116+
```
117+
118+
### Running Vale
119+
120+
1. Linting Documentation: To check all markdown files in versioned_docs/version-2.0.0/ for errors, run:
121+
122+
```bash
123+
vale versioned_docs/version-2.0.0/**/*.md
124+
```
125+
126+
2. Review Errors:
127+
128+
- Vale will output any issues directly in the terminal. Address these issues in the markdown files to maintain style consistency.
129+
130+
Note: Running Vale locally helps catch issues early, ensuring a smooth review process when you submit a pull request.
131+
78132
## Prettier
79133

80134
1. Fork the repository

docusaurus.config.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ module.exports = {
144144
label: "Resources",
145145
items: [
146146
{
147-
label: 'Blogs',
148-
href:'https://keploy.io/blog',
147+
label: "Blogs",
148+
href: "https://keploy.io/blog",
149149
},
150150
{
151-
label: 'Contributing',
152-
href: '/keploy-explained/contribution-guide',
151+
label: "Contributing",
152+
href: "/keploy-explained/contribution-guide",
153153
},
154154
{
155-
label: 'Glossary',
156-
href:'/concepts/reference/glossary/',
155+
label: "Glossary",
156+
href: "/concepts/reference/glossary/",
157157
},
158-
]
158+
],
159159
},
160160
{
161161
type: "docsVersionDropdown",
@@ -171,7 +171,7 @@ module.exports = {
171171
{
172172
href: "https://app.keploy.io/pricing",
173173
position: "right",
174-
label: 'Pricing'
174+
label: "Pricing",
175175
},
176176
// TODO : Add Blogging Section
177177
// {

src/components/Community.js

+2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ export const Community = () => {
9595
>
9696
<svg
9797
fill="currentColor"
98+
// Hotfix: add viewBox to prevent icon from being cut off after tailwind preflight disabled
9899
className="h-12 w-12 flex-none text-black "
100+
viewBox="0 0 48 48"
99101
>
100102
<rect width="48" height="48" rx="12" />
101103
<path

src/components/Intro.js

+14-12
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function Frameworks() {
180180
to={useBaseUrl("/dependencies/redis")}
181181
className="hover-label-container flex flex-col items-center justify-center space-y-1 p-6 text-center hover:underline"
182182
data-tooltip="Redis"
183-
>
183+
>
184184
<img
185185
className="h-8 w-8 transition hover:scale-110"
186186
src="/docs/img/redis-logo.svg"
@@ -189,9 +189,9 @@ function Frameworks() {
189189
</Link>
190190
</li>
191191
<li className="mt-5 flex flex-col space-y-3 text-lg">
192-
<Link
193-
className="hover-label-container flex flex-col items-center justify-center space-y-1 p-6 text-center "
194-
data-tooltip="MySQL"
192+
<Link
193+
className="hover-label-container flex flex-col items-center justify-center space-y-1 p-6 text-center "
194+
data-tooltip="MySQL"
195195
>
196196
<img
197197
className="h-8 w-8 transition hover:scale-110"
@@ -201,9 +201,9 @@ function Frameworks() {
201201
</Link>
202202
</li>
203203
<li className="mt-5 flex flex-col space-y-3 text-lg">
204-
<Link
205-
className="hover-label-container flex flex-col items-center justify-center space-y-1 p-6 text-center "
206-
data-tooltip="DynamoDB"
204+
<Link
205+
className="hover-label-container flex flex-col items-center justify-center space-y-1 p-6 text-center "
206+
data-tooltip="DynamoDB"
207207
>
208208
<img
209209
className="h-8 w-8 transition hover:scale-110"
@@ -231,12 +231,14 @@ export const Intro = () => {
231231
return (
232232
<section className="mb-4 mt-12">
233233
<h2 className="mb-4 text-2xl font-semibold tracking-wide md:text-3xl">
234-
Getting Started ✨
234+
Getting Started ✨
235235
</h2>
236-
<p className="text-l text-gray-500">
237-
Get up and running with Keploy in just a few minutes by integrating it with your applications.
238-
Below are the quick-start guides for popular languages and frameworks.
239-
</p><br/>
236+
<p className="text-l text-gray-500">
237+
Get up and running with Keploy in just a few minutes by integrating it
238+
with your applications. Below are the quick-start guides for popular
239+
languages and frameworks.
240+
</p>
241+
<br />
240242
<div className="grid gap-6 sm:grid-cols-2 xl:gap-8">
241243
<Languages />
242244
<Frameworks />

0 commit comments

Comments
 (0)