From d31764b013d7015938575dc770c557d56df3aea3 Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Fri, 30 Aug 2024 13:13:32 -0500 Subject: [PATCH 1/4] Update empty example pages --- docs/sources/next/examples/bundling-and-transpilation.md | 6 +++--- docs/sources/next/examples/crawl-webpage.md | 7 +++++-- docs/sources/next/examples/data-generation.md | 5 +++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/sources/next/examples/bundling-and-transpilation.md b/docs/sources/next/examples/bundling-and-transpilation.md index dac710512..98407a933 100644 --- a/docs/sources/next/examples/bundling-and-transpilation.md +++ b/docs/sources/next/examples/bundling-and-transpilation.md @@ -1,10 +1,10 @@ --- title: 'Bundling and transpilation' -redirect: 'https://github.com/k6io/k6-es6/' description: | - Reference project demonstrating how to use webpack and babel to bundle - node modules or transpile code to ES5.1+ for usage in k6 tests. + Refer to the JavaScript and TypeScript compatibility mode page for more details on how to use TypeScript with k6 weight: 18 --- # Bundling and transpilation + +For more details about bundling and transpiling, refer to [JavaScript and TypeScript compatibility mode](https://grafana.com/docs/k6//using-k6/javascript-typescript-compatibility-mode/). diff --git a/docs/sources/next/examples/crawl-webpage.md b/docs/sources/next/examples/crawl-webpage.md index e1ac98849..13c744401 100644 --- a/docs/sources/next/examples/crawl-webpage.md +++ b/docs/sources/next/examples/crawl-webpage.md @@ -1,9 +1,12 @@ --- title: 'Crawl a web page' -redirect: 'https://stackoverflow.com/questions/60927653/downloading-whole-websites-with-k6/' description: | - Stack overflow answer demonstrating how to crawl a web page + An example of how to use k6 to crawl a web page weight: 17 --- # Crawl a web page + +Refer to this [Stack Overflow answer](https://stackoverflow.com/questions/60927653/downloading-whole-websites-with-k6/) for details on how you can use k6 to crawl a web page. + +You can also use the [Grafana k6 Browser Recorder](https://chromewebstore.google.com/detail/grafana-k6-browser-record/fbanjfonbcedhifbgikmjelkkckhhidl), or the [k6 DevTools Recorder](https://chromewebstore.google.com/detail/k6-devtools-recorder/fkajbajcclbdgaoanencnhpfnigfipgc) to record a browser session and export it as a k6 test script. diff --git a/docs/sources/next/examples/data-generation.md b/docs/sources/next/examples/data-generation.md index 411f6c140..89026ab76 100644 --- a/docs/sources/next/examples/data-generation.md +++ b/docs/sources/next/examples/data-generation.md @@ -1,9 +1,10 @@ --- title: 'Generating realistic data' -redirect: 'https://github.com/k6io/example-data-generation/' description: | - Reference project demonstrating how to generate data with realistic traits at runtime using faker.js + Reference project demonstrating how to generate data with realistic traits at runtime using Faker weight: 16 --- # Generating realistic data + +Refer to the [grafana/k6-example-data-generation](https://github.com/grafana/k6-example-data-generation) GitHub repository for an example of how to utilize k6 and Faker to generate realistic data for a load test. From 52fced40a2d20b2363700c4759ed99cca83e3b3c Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Fri, 30 Aug 2024 13:14:11 -0500 Subject: [PATCH 2/4] Apply to v0.53.x --- .../sources/v0.53.x/examples/bundling-and-transpilation.md | 6 +++--- docs/sources/v0.53.x/examples/crawl-webpage.md | 7 +++++-- docs/sources/v0.53.x/examples/data-generation.md | 5 +++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/sources/v0.53.x/examples/bundling-and-transpilation.md b/docs/sources/v0.53.x/examples/bundling-and-transpilation.md index dac710512..98407a933 100644 --- a/docs/sources/v0.53.x/examples/bundling-and-transpilation.md +++ b/docs/sources/v0.53.x/examples/bundling-and-transpilation.md @@ -1,10 +1,10 @@ --- title: 'Bundling and transpilation' -redirect: 'https://github.com/k6io/k6-es6/' description: | - Reference project demonstrating how to use webpack and babel to bundle - node modules or transpile code to ES5.1+ for usage in k6 tests. + Refer to the JavaScript and TypeScript compatibility mode page for more details on how to use TypeScript with k6 weight: 18 --- # Bundling and transpilation + +For more details about bundling and transpiling, refer to [JavaScript and TypeScript compatibility mode](https://grafana.com/docs/k6//using-k6/javascript-typescript-compatibility-mode/). diff --git a/docs/sources/v0.53.x/examples/crawl-webpage.md b/docs/sources/v0.53.x/examples/crawl-webpage.md index e1ac98849..13c744401 100644 --- a/docs/sources/v0.53.x/examples/crawl-webpage.md +++ b/docs/sources/v0.53.x/examples/crawl-webpage.md @@ -1,9 +1,12 @@ --- title: 'Crawl a web page' -redirect: 'https://stackoverflow.com/questions/60927653/downloading-whole-websites-with-k6/' description: | - Stack overflow answer demonstrating how to crawl a web page + An example of how to use k6 to crawl a web page weight: 17 --- # Crawl a web page + +Refer to this [Stack Overflow answer](https://stackoverflow.com/questions/60927653/downloading-whole-websites-with-k6/) for details on how you can use k6 to crawl a web page. + +You can also use the [Grafana k6 Browser Recorder](https://chromewebstore.google.com/detail/grafana-k6-browser-record/fbanjfonbcedhifbgikmjelkkckhhidl), or the [k6 DevTools Recorder](https://chromewebstore.google.com/detail/k6-devtools-recorder/fkajbajcclbdgaoanencnhpfnigfipgc) to record a browser session and export it as a k6 test script. diff --git a/docs/sources/v0.53.x/examples/data-generation.md b/docs/sources/v0.53.x/examples/data-generation.md index 411f6c140..89026ab76 100644 --- a/docs/sources/v0.53.x/examples/data-generation.md +++ b/docs/sources/v0.53.x/examples/data-generation.md @@ -1,9 +1,10 @@ --- title: 'Generating realistic data' -redirect: 'https://github.com/k6io/example-data-generation/' description: | - Reference project demonstrating how to generate data with realistic traits at runtime using faker.js + Reference project demonstrating how to generate data with realistic traits at runtime using Faker weight: 16 --- # Generating realistic data + +Refer to the [grafana/k6-example-data-generation](https://github.com/grafana/k6-example-data-generation) GitHub repository for an example of how to utilize k6 and Faker to generate realistic data for a load test. From e3bc54de042a019cc0a9e1cc96d41c4ad03955f7 Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Fri, 30 Aug 2024 13:17:40 -0500 Subject: [PATCH 3/4] Rename bundling and transpilation page --- ...ing-and-transpilation.md => bundling-and-transpiling.md} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename docs/sources/next/examples/{bundling-and-transpilation.md => bundling-and-transpiling.md} (68%) diff --git a/docs/sources/next/examples/bundling-and-transpilation.md b/docs/sources/next/examples/bundling-and-transpiling.md similarity index 68% rename from docs/sources/next/examples/bundling-and-transpilation.md rename to docs/sources/next/examples/bundling-and-transpiling.md index 98407a933..bc9f7ec01 100644 --- a/docs/sources/next/examples/bundling-and-transpilation.md +++ b/docs/sources/next/examples/bundling-and-transpiling.md @@ -1,10 +1,12 @@ --- -title: 'Bundling and transpilation' +aliases: + - ./bundling-and-transpilation # docs/k6//examples/bundling-and-transpilation +title: 'Bundling and transpiling' description: | Refer to the JavaScript and TypeScript compatibility mode page for more details on how to use TypeScript with k6 weight: 18 --- -# Bundling and transpilation +# Bundling and transpiling For more details about bundling and transpiling, refer to [JavaScript and TypeScript compatibility mode](https://grafana.com/docs/k6//using-k6/javascript-typescript-compatibility-mode/). From 4191c02b4e071a3b6210af96daf89d5567332df7 Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Fri, 30 Aug 2024 13:17:55 -0500 Subject: [PATCH 4/4] Apply to v0.53.x --- ...ing-and-transpilation.md => bundling-and-transpiling.md} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename docs/sources/v0.53.x/examples/{bundling-and-transpilation.md => bundling-and-transpiling.md} (68%) diff --git a/docs/sources/v0.53.x/examples/bundling-and-transpilation.md b/docs/sources/v0.53.x/examples/bundling-and-transpiling.md similarity index 68% rename from docs/sources/v0.53.x/examples/bundling-and-transpilation.md rename to docs/sources/v0.53.x/examples/bundling-and-transpiling.md index 98407a933..bc9f7ec01 100644 --- a/docs/sources/v0.53.x/examples/bundling-and-transpilation.md +++ b/docs/sources/v0.53.x/examples/bundling-and-transpiling.md @@ -1,10 +1,12 @@ --- -title: 'Bundling and transpilation' +aliases: + - ./bundling-and-transpilation # docs/k6//examples/bundling-and-transpilation +title: 'Bundling and transpiling' description: | Refer to the JavaScript and TypeScript compatibility mode page for more details on how to use TypeScript with k6 weight: 18 --- -# Bundling and transpilation +# Bundling and transpiling For more details about bundling and transpiling, refer to [JavaScript and TypeScript compatibility mode](https://grafana.com/docs/k6//using-k6/javascript-typescript-compatibility-mode/).