Skip to content

Commit bd7a8e8

Browse files
committed
fix(docs): Correct Markdown formatting for lists with code blocks
Signed-off-by: Aryan Nair <[email protected]>
1 parent 5f41812 commit bd7a8e8

File tree

4 files changed

+164
-155
lines changed

4 files changed

+164
-155
lines changed

src/components/StartKeploy.js

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import Tabs from "@theme/Tabs";
33
import TabItem from "@theme/TabItem";
44
import CodeBlock from "@theme/CodeBlock";
55
import Link from "@docusaurus/Link";
6+
// Add this line at the top of StartKeploy.js
7+
import '../css/custom.css';
8+
9+
// ... your other imports like import React from 'react';
10+
// ... the rest of your component code
611

712
export default function StartKeploy() {
813
return (
@@ -21,63 +26,63 @@ export default function StartKeploy() {
2126
<TabItem value="go" label="Go">
2227
<br />
2328
<p>
24-
<strong>Record the test cases</strong>
29+
<strong>1. Record the test cases</strong>
2530
</p>
26-
<CodeBlock language="bash">
31+
<CodeBlock language="bash" className="my-code-block">
2732
{`keploy record -c "go run main.go"`}
2833
</CodeBlock>
2934
<p>
30-
<strong>Run the test cases</strong>
35+
<strong>2. Run the test cases</strong>
3136
</p>
32-
<CodeBlock language="bash">
37+
<CodeBlock language="bash" className="my-code-block">
3338
{`keploy test -c "go run main.go" --delay 10`}
3439
</CodeBlock>
3540
</TabItem>
3641

3742
<TabItem value="node" label="Node.js">
3843
<br />
3944
<p>
40-
<strong>Record the test cases</strong>
45+
<strong>1. Record the test cases</strong>
4146
</p>
42-
<CodeBlock language="bash">
47+
<CodeBlock language="bash" className="my-code-block">
4348
{`keploy record -c "npm start"`}
4449
</CodeBlock>
4550
<p>
46-
<strong>Run the test cases</strong>
51+
<strong>2. Run the test cases</strong>
4752
</p>
48-
<CodeBlock language="bash">
53+
<CodeBlock language="bash" className="my-code-block">
4954
{`keploy test -c "npm start" --delay 10`}
5055
</CodeBlock>
5156
</TabItem>
5257

5358
<TabItem value="java" label="Java">
5459
<br />
5560
<p>
56-
<strong>Record the test cases</strong>
61+
<strong>1. Record the test cases</strong>
5762
</p>
58-
<CodeBlock language="bash">
63+
<CodeBlock language="bash" className="my-code-block">
5964
{`keploy record -c "mvn spring-boot:run"`}
6065
</CodeBlock>
6166
<p>
62-
<strong>Run the test cases</strong>
67+
<strong>2. Run the test cases</strong>
6368
</p>
64-
<CodeBlock language="bash">
69+
<CodeBlock language="bash" className="my-code-block">
6570
{`keploy test -c "mvn spring-boot:run" --delay 10`}
6671
</CodeBlock>
6772
</TabItem>
6873

6974
<TabItem value="python" label="Python">
7075
<br />
7176
<p>
72-
<strong>Record the test cases</strong>
77+
<strong>1. Record the test cases</strong>
7378
</p>
74-
<CodeBlock language="bash">
79+
<CodeBlock language="bash" className="my-code-block">
7580
{`keploy record -c "python app.py"`}
7681
</CodeBlock>
7782
<p>
78-
<strong>Run the test cases</strong>
83+
<strong>2. Run the test cases</strong>
7984
</p>
80-
<CodeBlock language="bash">
85+
<CodeBlock language="bash" className="my-code-block">
8186
{`keploy test -c "python app.py" --delay 10`}
8287
</CodeBlock>
8388
</TabItem>

src/components/StartKeployDocker.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ export default function StartKeploy() {
2222
<TabItem value="docker" label="Docker">
2323
<br />
2424
<p>
25-
<strong>Record the test cases</strong>
25+
<strong>1. Record the test cases</strong>
2626
</p>
27-
<CodeBlock language="bash">
27+
<CodeBlock language="bash" className="my-code-block">
2828
{`keploy record -c "docker run -p <appPort>:<hostPort> --name <containerName> --network keploy-network --rm <applicationImage>" --containerName "<containerName>" --delay 10`}
2929
</CodeBlock>
3030

3131
<p>
32-
<strong>Run the test cases</strong>
32+
<strong>2. Run the test cases</strong>
3333
</p>
34-
<CodeBlock language="bash">
34+
<CodeBlock language="bash" className="my-code-block">
3535
{`keploy test -c "docker run -p <appPort>:<hostPort> --name <containerName> --network keploy-network --rm <applicationImage>" --containerName "<containerName>" --delay 20`}
3636
</CodeBlock>
3737
</TabItem>
@@ -40,16 +40,16 @@ export default function StartKeploy() {
4040
<TabItem value="docker-compose" label="Docker Compose">
4141
<br />
4242
<p>
43-
<strong>Record the test cases</strong>
43+
<strong>1. Record the test cases</strong>
4444
</p>
45-
<CodeBlock language="bash">
45+
<CodeBlock language="bash" className="my-code-block">
4646
{`keploy record -c "docker compose up" --container-name <containerName> --build-delay 100`}
4747
</CodeBlock>
4848

4949
<p>
50-
<strong>Run the test cases</strong>
50+
<strong>2. Run the test cases</strong>
5151
</p>
52-
<CodeBlock language="bash">
52+
<CodeBlock language="bash" className="my-code-block">
5353
{`keploy test -c "docker compose up" --container-name <containerName> --build-delay 50 --delay 20`}
5454
</CodeBlock>
5555
</TabItem>

src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,10 @@ a {
740740
text-decoration: inherit;
741741
}
742742

743+
.my-code-block {
744+
margin-left: 1rem;
745+
}
746+
743747
textarea {
744748
resize: vertical;
745749
}

0 commit comments

Comments
 (0)