Skip to content

Commit 6e3447b

Browse files
committed
Set heightTogglers
1 parent 2b78f5b commit 6e3447b

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

CONTRIBUTING_FILE_FORMAT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ You can provide large code blocks (>400px, ~20 LoC) with expand/collapse toggler
350350

351351
Prop `heightTogglers` passed to `CodeGroup` component makes it possible, which works very similar to `labels` and `lineNumbers` props:
352352

353-
<CodeGroup labels={["Nice code!", "This one is better", "Oh my.."]} lineNumbers={[true, true, true]} heightTogglers=[true, false, false]>
353+
<CodeGroup labels={["Nice code!", "This one is better", "Oh my.."]} lineNumbers={[true, true, true]} heightTogglers={[true, false, false]}>
354354

355355
```javascript
356356
// a lot of lines of code,

src/data/markdown/docs/01 guides/03 Results visualization/06 JSON.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ $ k6 run --summary-export=export.json --out datadog script.js
121121

122122
The format of the summary is like:
123123

124-
<CodeGroup labels={[ "export.json" ]}>
124+
<CodeGroup labels={[ "export.json" ]} heightTogglers={[true]}>
125125

126126
```json
127127
{

src/data/markdown/docs/01 guides/04 Test Types/01 Smoke Testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You want to run a smoke test to:
1818
Here's a relatively simple smoke test script to get you started. You can copy it, change a few URLs and start testing in no time.
1919
If you would like to see more comprehensive script, check out our [example section](/examples).
2020

21-
<CodeGroup labels={["sample-smoke-test.js"]} lineNumbers={[true]}>
21+
<CodeGroup labels={["sample-smoke-test.js"]} lineNumbers={[true]} heightTogglers={[true]}>
2222

2323
```javascript
2424
import http from 'k6/http';

src/data/markdown/docs/01 guides/04 Test Types/02 Load Testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ therefore it's recommended to configure the load test with the high load in mind
3636
Note, this test has one simple threshold. The response time for 99% requests must be below 1.5 seconds.
3737
Thresholds are a way of ensuring that your system is meeting the performance goals you set for it.
3838

39-
<CodeGroup labels={["sample-load-test.js"]} lineNumbers={[true]}>
39+
<CodeGroup labels={["sample-load-test.js"]} lineNumbers={[true]} heightTogglers={[true]}>
4040

4141
```javascript
4242
import http from 'k6/http';

src/data/markdown/docs/01 guides/04 Test Types/03 Stress testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can easily create a stress test in k6 by properly configuring the `options`
4949
Remember, the point of this test is to gradually push your APIs beyond its breaking point.
5050
It's probably the easiest to start with an example.
5151

52-
<CodeGroup labels={["API stress test k6 example"]} lineNumbers={[true]}>
52+
<CodeGroup labels={["API stress test k6 example"]} lineNumbers={[true]} heightTogglers={[true]}>
5353

5454
```javascript
5555
import http from 'k6/http';
@@ -162,7 +162,7 @@ Success or failure of a spike test depends on your expectations. Systems general
162162

163163
Here's an example script configuration for a spike test.
164164

165-
<CodeGroup labels={["Spike test k6 example"]} lineNumbers={[true]}>
165+
<CodeGroup labels={["Spike test k6 example"]} lineNumbers={[true]} heightTogglers={[true]}>
166166

167167
```javascript
168168
import http from 'k6/http';

src/data/markdown/docs/01 guides/04 Test Types/05 Soak Testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Some errors are related to time, and not to the total number of requests execute
4242

4343
Here's a sample test configuration.
4444

45-
<CodeGroup labels={["sample-soak-test.js"]} lineNumbers={[true]}>
45+
<CodeGroup labels={["sample-soak-test.js"]} lineNumbers={[true]} heightTogglers={[true]}>
4646

4747
```javascript
4848
import http from 'k6/http';

src/data/markdown/docs/01 guides/06 Misc/05 Archive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Breaking down the file structure we get:
164164

165165
**_scripts_** contains the full original directory tree of all `import`'ed JS dependencies.
166166

167-
<CodeGroup labels={["metadata.json"]} lineNumbers={[true]}>
167+
<CodeGroup labels={["metadata.json"]} lineNumbers={[true]} heightTogglers={[true]}>
168168

169169
```json
170170
{

0 commit comments

Comments
 (0)