Skip to content

Commit 6fae94e

Browse files
chore: split Get started into Set up and Get started sections (#1537)
1 parent fec2f99 commit 6fae94e

File tree

44 files changed

+144
-76
lines changed

Some content is hidden

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

44 files changed

+144
-76
lines changed

docs/sources/next/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This documentation will help you go from a total beginner to a seasoned k6 exper
1414
## Get started
1515

1616
<div class="nav-cards">
17-
<a href={{< relref "./get-started/installation" >}} class="nav-cards__item nav-cards__item--guide">
17+
<a href={{< relref "./set-up/install-k6" >}} class="nav-cards__item nav-cards__item--guide">
1818
<h4>🚀 Installation</h4>
1919
<p>Get up and running in no-time, using either a package manager, standalone installer or the official Docker image.</p>
2020
</a>

docs/sources/next/examples/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Examples
3-
weight: 11
3+
weight: 800
44
---
55

66
# Examples

docs/sources/next/examples/get-started-with-k6/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Finally, after you test the API and web application, break your scripts down int
3131
We encourage you to open your terminal and actively experiment with these examples.
3232
The tutorial requires the following:
3333

34-
- [ ][k6 installed](https://grafana.com/docs/k6/<K6_VERSION>/get-started/installation)
34+
- [ ][k6 installed](https://grafana.com/docs/k6/<K6_VERSION>/set-up/install-k6)
3535
- [ ] A clean directory to experiment in.
3636
- [ ] Something to do during the minute or two when k6 runs the longest example tests
3737
- [ ] Optional: [`jq`](https://stedolan.github.io/jq/) to filter some results

docs/sources/next/extensions/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Extensions
33
description: 'The k6 extension ecosystem enables developers and testers to extend k6 to cover use cases not supported natively in the core. Explore the endless possibilities of k6 and xk6.'
4-
weight: 09
4+
weight: 700
55
---
66

77
# Extensions

docs/sources/next/get-started/running-k6.md

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Follow along to learn how to:
1616
With these example snippets, you'll run the test with your machine's resources.
1717
But, if you have a k6 Cloud account, you can also use the `k6 cloud` command to outsource the test to k6 servers.
1818

19+
## Before you begin
20+
21+
- [Install k6](https://grafana.com/docs/k6/<K6_VERSION>/set-up/install-k6/) on your machine.
22+
1923
## Run local tests
2024

2125
To run a simple local script:

docs/sources/next/javascript-api/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
weight: 08
32
title: JavaScript API
3+
weight: 600
44
---
55

66
# JavaScript API

docs/sources/next/misc/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
weight: 12
2+
weight: 900
33
title: Misc
44
---
55

docs/sources/next/misc/integrations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Code k6 scripts in your IDE of choice. Empower your development workflow with ID
1818

1919
- [Visual Studio Code Extension](https://marketplace.visualstudio.com/items?itemName=k6.k6) - Run k6 tests from VS Code.
2020
- [IntelliJ IDEA](https://plugins.jetbrains.com/plugin/16141-k6) - Run k6 tests from IntelliJ IDEs.
21-
- [IntelliSense](https://grafana.com/docs/k6/<K6_VERSION>/misc/intellisense) - Get code autocompletion and in-context documentation.
21+
- [IntelliSense](https://grafana.com/docs/k6/<K6_VERSION>/set-up/configure-k6-intellisense) - Get code autocompletion and in-context documentation.
2222

2323
## Converters
2424

docs/sources/next/results-output/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
weight: 04
2+
weight: 400
33
title: Results output
44
descriptiontion: All the ways you can look at k6 results. While the test runs, after the test runs, on an external platform, as summary statistics.
55
---

docs/sources/next/set-up/_index.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
weight: 100
3+
title: Set up
4+
---
5+
6+
# Set up
7+
8+
<!-- TODO: Add content -->
9+
10+
{{< section depth=2 >}}

docs/sources/v0.50.x/misc/intellisense.md renamed to docs/sources/next/set-up/configure-k6-intellisense.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
---
2-
title: 'IntelliSense'
2+
aliases:
3+
- ./intellisense
4+
- ../misc/intellisense # docs/k6/<K6_VERSION>/misc/intellisense
5+
title: 'Configure k6 IntelliSense'
36
description: 'k6 has its TypeScript Type Definition that you can configure with your editor to unlock code editing features.'
4-
weight: 03
7+
weight: 100
58
---
69

7-
# IntelliSense
10+
# Configure k6 IntelliSense
811

912
[IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) refers to code editing features like **intelligent code completion** and **quick access to documentation**. These features can significantly improve the developer experience and productivity when working on k6 scripts in your editor of choice. Notable features are:
1013

docs/sources/v0.50.x/misc/fine-tuning-os.md renamed to docs/sources/next/set-up/fine-tune-os.md

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
---
2-
title: 'Fine-tuning OS'
3-
description: 'In this article we will show you how to inspect the OS imposed limits of your system, tweak them and scale for larger tests.'
4-
weight: 04
2+
aliases:
3+
- ../misc/fine-tuning-os # docs/k6/<K6_VERSION>/misc/fine-tuning-os
4+
- ./fine-tuning-os
5+
title: 'Fine-tune OS'
6+
description: 'Learn how to inspect the OS imposed limits of your system, and tweak them to be able to run larger tests.'
7+
weight: 200
58
---
69

7-
# Fine-tuning OS
10+
# Fine-tune OS
11+
12+
{{< admonition type="note" >}}
13+
14+
This page focuses on helping users run large test scripts locally. If you're just getting started with k6, and haven't run into a `Too Many Open Files` error, you can skip these instructions.
15+
16+
{{< /admonition >}}
817

918
When running large test scripts locally, users sometimes run into limits within their OS that prevent them from making the necessary number of requests to complete the test.
1019
This limit usually manifests itself in a `Too Many Open Files` error.
@@ -17,12 +26,9 @@ As with any changes to your OS, we discourage blindly changing your system setti
1726
E.g. before changing MSL / TIME_WAIT period, confirm that you’re experiencing the issue (error messages, netstat, ss, etc.), change settings conservatively, re-run the test, and note any improvement.
1827
This way you can gauge the effect of the optimization, find any negative side-effects, and come up with a range of recommended values.
1928

20-
{{% admonition type="note" %}}
29+
## Before you begin
2130

22-
The following modifications have been tested for macOS Sierra 10.12 and above.
23-
If you're on an older version, the process for changing these settings might differ.
24-
25-
{{% /admonition %}}
31+
- The following modifications have been tested for Linux, and macOS Sierra 10.12 and above. If you're using an older macOS version, the process for changing these settings might differ.
2632

2733
## Network resource limit
2834

docs/sources/next/get-started/installation/_index.md renamed to docs/sources/next/set-up/install-k6/_index.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---
2-
title: 'Installation'
2+
aliases:
3+
- ../get-started/installation # docs/k6/<K6_VERSION>/get-started/installation
4+
- ./installation
5+
title: 'Install k6'
36
description: 'k6 has packages for Linux, Mac, and Windows. As alternatives, you can also using a Docker container or a standalone binary.'
4-
weight: 02
5-
weight: 02
7+
weight: 01
68
---
79

8-
# Installation
10+
# Install k6
911

1012
k6 has packages for Linux, Mac, and Windows. Alternatively, you can use a Docker container or a standalone binary.
1113

@@ -77,5 +79,12 @@ Head to [Explore extension](https://grafana.com/docs/k6/<K6_VERSION>/extensions/
7779

7880
## Troubleshooting
7981

80-
If installation fails, check the [list of common installation issues](https://grafana.com/docs/k6/<K6_VERSION>/get-started/installation/troubleshooting).
82+
If installation fails, check the [list of common installation issues](https://grafana.com/docs/k6/<K6_VERSION>/set-up/install-k6/troubleshooting).
8183
If your problem is not listed and persists, reach out via the channel `#community-discussion` on our [official Slack](https://k6io.slack.com/), or report it on our [community forum](https://community.grafana.com/).
84+
85+
## Next steps
86+
87+
Now that you have k6 installed in your machine, you can:
88+
89+
- Head over to [Running k6](https://grafana.com/docs/k6/<K6_VERSION>/get-started/running-k6/) to learn how to create and run your first test.
90+
- Refer to [Configure k6 Intellisense](https://grafana.com/docs/k6/<K6_VERSION>/set-up/configure-k6-intellisense/) to set up code editing features to your code editor, such as auto-completion of k6 functions.

docs/sources/next/get-started/installation/troubleshooting.md renamed to docs/sources/next/set-up/install-k6/troubleshooting.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
2+
aliases:
3+
- ../get-started/troubleshooting # docs/k6/<K6_VERSION>/get-started/troubleshooting
24
title: 'Troubleshooting'
35
description: 'Instructions to fix the most common installation issues.'
4-
weight: 01
6+
weight: 200
57
---
68

79
# Troubleshooting

docs/sources/v0.50.x/misc/usage-collection.md renamed to docs/sources/next/set-up/usage-collection.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
2+
aliases:
3+
- ../misc/usage-collection # docs/k6/<K6_VERSION>/misc/usage-collection
24
title: 'Usage collection'
35
description: 'By default, k6 sends a usage report each time it is run, so that we can track how often people use it. This report can be turned off by setting an environment variable or option.'
4-
weight: 02
6+
weight: 300
57
---
68

79
# Usage collection

docs/sources/next/testing-guides/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Testing guides'
33
description: 'A series of guides to help you defining your load testing strategies.'
4-
weight: 07
4+
weight: 500
55
---
66

77
# Testing guides

docs/sources/next/testing-guides/running-large-tests.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ These commands enable reusing network connections, increase the limit of network
3838

3939
The `sysctl` commands apply immediately for the entire system, and will reset to their default values if you restart the network service or reboot the machine. The `ulimit` command applies only for the current shell session, and you'll need to run it again for it to be set in another shell instance.
4040

41-
For detailed information about these settings, how to make them permanent, and instructions for macOS, check out our ["Fine tuning OS" article](https://grafana.com/docs/k6/<K6_VERSION>/misc/fine-tuning-os).
41+
For detailed information about these settings, how to make them permanent, and instructions for macOS, check out our ["Fine tuning OS" article](https://grafana.com/docs/k6/<K6_VERSION>/set-up/fine-tune-os).
4242

4343
## Hardware considerations
4444

@@ -287,7 +287,7 @@ WARN[0057] Request Failed error="Get http://test.k6.io/: dial tcp 52.18.24.2
287287

288288
This error means that the load generator can't open TCP sockets because it reached the limit of open file descriptors.
289289
Make sure that your limit is set sufficiently high.
290-
Refer to the ["Fine tuning OS" article](https://grafana.com/docs/k6/<K6_VERSION>/misc/fine-tuning-os#viewing-limits-configuration).
290+
Refer to the ["Fine tuning OS" article](https://grafana.com/docs/k6/<K6_VERSION>/set-up/fine-tune-os#viewing-limits-configuration).
291291

292292
```bash
293293
WARN[0034] Request Failed error="Get http://test.k6.io/: dial tcp 99.81.83.131:80: socket: too many open files"
@@ -362,7 +362,7 @@ If you aren't sure whether OSS or Cloud is a better fit for your project, we rec
362362

363363
## Read more
364364

365-
- [Fine tuning OS](https://grafana.com/docs/k6/<K6_VERSION>/misc/fine-tuning-os)
365+
- [Fine tuning OS](https://grafana.com/docs/k6/<K6_VERSION>/set-up/fine-tune-os)
366366
- [JavaScript Compatibility Mode](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/javascript-compatibility-mode)
367367

368368
- [A biased comparison of the best open source load testing tools](https://k6.io/blog/comparing-best-open-source-load-testing-tools)

docs/sources/next/using-k6-browser/_index.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
title: Using k6 browser
3-
heading: 'Browser Module Documentation'
4-
head_title: 'Browser Module Documentation'
53
description: 'The browser module brings browser automation and end-to-end testing to k6 while supporting core k6 features. Interact with real browsers and collect frontend metrics as part of your k6 tests.'
6-
weight: 03
4+
weight: 300
75
---
86

97
# Using k6 browser

docs/sources/next/using-k6-browser/running-browser-tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ To run a simple local script:
140140

141141
{{% admonition type="note" %}}
142142

143-
When using Docker to run k6 browser tests, make sure you have pulled the correct image with Chromium built-in. See [k6 Installation via Docker](https://grafana.com/docs/k6/<K6_VERSION>/get-started/installation#docker) for more information.
143+
When using Docker to run k6 browser tests, make sure you have pulled the correct image with Chromium built-in. See [k6 Installation via Docker](https://grafana.com/docs/k6/<K6_VERSION>/set-up/install-k6#docker) for more information.
144144

145145
{{% /admonition %}}
146146

docs/sources/next/using-k6/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
weight: 02
2+
weight: 200
33
title: Using k6
44
---
55

docs/sources/next/using-k6/k6-options/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ $ k6 run --no-thresholds ~/script.js
851851

852852
A boolean, true or false. By default, k6 sends a usage report each time it is run, so that we can
853853
track how often people use it. If this option is set to true, no usage report will be made. To
854-
learn more, have a look at the [Usage reports](https://grafana.com/docs/k6/<K6_VERSION>/misc/usage-collection) documentation. Available in
854+
learn more, have a look at the [Usage reports](https://grafana.com/docs/k6/<K6_VERSION>/set-up/usage-collection) documentation. Available in
855855
`k6 run` commands.
856856

857857
| Env | CLI | Config file | Default |

docs/sources/next/using-k6/test-authoring/create-tests-from-recordings/using-the-har-converter.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ For example, tokens expire quickly, and they are one of the most common things t
152152

153153
## 4. Run the test
154154

155-
Now, you can run your load test with k6. If you have not installed k6 yet, please, follow the [k6 installation instructions](https://grafana.com/docs/k6/<K6_VERSION>/get-started/installation).
155+
Now, you can run your load test with k6. If you have not installed k6 yet, please, follow the [k6 installation instructions](https://grafana.com/docs/k6/<K6_VERSION>/set-up/installation).
156156

157157
Execute the `k6 run` command to run your k6 script:
158158

docs/sources/v0.50.x/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This documentation will help you go from a total beginner to a seasoned k6 exper
1414
## Get started
1515

1616
<div class="nav-cards">
17-
<a href={{< relref "./get-started/installation" >}} class="nav-cards__item nav-cards__item--guide">
17+
<a href={{< relref "./set-up/install-k6" >}} class="nav-cards__item nav-cards__item--guide">
1818
<h4>🚀 Installation</h4>
1919
<p>Get up and running in no-time, using either a package manager, standalone installer or the official Docker image.</p>
2020
</a>

docs/sources/v0.50.x/examples/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Examples
3-
weight: 11
3+
weight: 800
44
---
55

66
# Examples

docs/sources/v0.50.x/examples/get-started-with-k6/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Finally, after you test the API and web application, break your scripts down int
3131
We encourage you to open your terminal and actively experiment with these examples.
3232
The tutorial requires the following:
3333

34-
- [ ][k6 installed](https://grafana.com/docs/k6/<K6_VERSION>/get-started/installation)
34+
- [ ][k6 installed](https://grafana.com/docs/k6/<K6_VERSION>/set-up/install-k6)
3535
- [ ] A clean directory to experiment in.
3636
- [ ] Something to do during the minute or two when k6 runs the longest example tests
3737
- [ ] Optional: [`jq`](https://stedolan.github.io/jq/) to filter some results

docs/sources/v0.50.x/extensions/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Extensions
33
description: 'The k6 extension ecosystem enables developers and testers to extend k6 to cover use cases not supported natively in the core. Explore the endless possibilities of k6 and xk6.'
4-
weight: 09
4+
weight: 700
55
---
66

77
# Extensions

docs/sources/v0.50.x/get-started/running-k6.md

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Follow along to learn how to:
1616
With these example snippets, you'll run the test with your machine's resources.
1717
But, if you have a k6 Cloud account, you can also use the `k6 cloud` command to outsource the test to k6 servers.
1818

19+
## Before you begin
20+
21+
- [Install k6](https://grafana.com/docs/k6/<K6_VERSION>/set-up/install-k6/) on your machine.
22+
1923
## Run local tests
2024

2125
To run a simple local script:

docs/sources/v0.50.x/javascript-api/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
weight: 08
32
title: JavaScript API
3+
weight: 600
44
---
55

66
# JavaScript API

docs/sources/v0.50.x/misc/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
weight: 12
2+
weight: 900
33
title: Misc
44
---
55

docs/sources/v0.50.x/misc/integrations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Code k6 scripts in your IDE of choice. Empower your development workflow with ID
1818

1919
- [Visual Studio Code Extension](https://marketplace.visualstudio.com/items?itemName=k6.k6) - Run k6 tests from VS Code.
2020
- [IntelliJ IDEA](https://plugins.jetbrains.com/plugin/16141-k6) - Run k6 tests from IntelliJ IDEs.
21-
- [IntelliSense](https://grafana.com/docs/k6/<K6_VERSION>/misc/intellisense) - Get code autocompletion and in-context documentation.
21+
- [IntelliSense](https://grafana.com/docs/k6/<K6_VERSION>/set-up/configure-k6-intellisense) - Get code autocompletion and in-context documentation.
2222

2323
## Converters
2424

docs/sources/v0.50.x/results-output/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
weight: 04
2+
weight: 400
33
title: Results output
44
descriptiontion: All the ways you can look at k6 results. While the test runs, after the test runs, on an external platform, as summary statistics.
55
---

docs/sources/v0.50.x/set-up/_index.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
weight: 100
3+
title: Set up
4+
---
5+
6+
# Set up
7+
8+
<!-- TODO: Add content -->
9+
10+
{{< section depth=2 >}}

docs/sources/next/misc/intellisense.md renamed to docs/sources/v0.50.x/set-up/configure-k6-intellisense.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
---
2-
title: 'IntelliSense'
2+
aliases:
3+
- ./intellisense
4+
- ../misc/intellisense # docs/k6/<K6_VERSION>/misc/intellisense
5+
title: 'Configure k6 IntelliSense'
36
description: 'k6 has its TypeScript Type Definition that you can configure with your editor to unlock code editing features.'
4-
weight: 03
7+
weight: 100
58
---
69

7-
# IntelliSense
10+
# Configure k6 IntelliSense
811

912
[IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) refers to code editing features like **intelligent code completion** and **quick access to documentation**. These features can significantly improve the developer experience and productivity when working on k6 scripts in your editor of choice. Notable features are:
1013

0 commit comments

Comments
 (0)