File tree Expand file tree Collapse file tree 5 files changed +50
-26
lines changed Expand file tree Collapse file tree 5 files changed +50
-26
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Extensions can be used to extend the core k6 features to fit your performance-te
1818
1919## Official extensions
2020
21- {{< docs/shared source="k6" lookup="official-extensions.md " version="<K6_VERSION>" >}}
21+ {{< docs/shared source="k6" lookup="official-extensions.html " version="<K6_VERSION>" >}}
2222
2323## Community extensions
2424
@@ -28,7 +28,7 @@ We're working on a process for community folks to submit their extensions.
2828
2929{{< /admonition >}}
3030
31- {{< docs/shared source="k6" lookup="community-extensions.md " version="<K6_VERSION>" >}}
31+ {{< docs/shared source="k6" lookup="community-extensions.html " version="<K6_VERSION>" >}}
3232
3333## Use extensions
3434
Original file line number Diff line number Diff line change 1+ ---
2+ title: "k6 Community extensions"
3+ ---
4+
5+ {{ $data := dict }}
6+ {{ $url := "https://registry.k6.io/catalog.json" }}
7+ {{ $resource := resources.GetRemote $url }}
8+ {{ if $resource }}
9+ {{ if $resource.Err }}
10+ {{ errorf "Failed to get remote resource %q: %s" $url $resource.Err }}
11+ {{ else }}
12+ {{ $data = $resource | transform.Unmarshal }}
13+ {{ end }}
14+ {{ else }}
15+ {{ errorf "Unable to get remote resource %q" $url }}
16+ {{ end }}
17+
18+ | Extension | Description | Versions |
19+ | --------- | ----------- | -------- |
20+ {{- range $key, $extension := $data }}
21+ {{- if eq $extension.tier "community" }}
22+ | [{{ $extension.repo.name }}]({{ $extension.repo.url }}) | {{ $extension.description }} | {{ delimit $extension.versions ", " }} |
23+ {{- end }}
24+ {{- end }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ title: "k6 Official extensions"
3+ ---
4+
5+ {{ $data := dict }}
6+ {{ $url := "https://registry.k6.io/catalog.json" }}
7+ {{ $resource := resources.GetRemote $url }}
8+ {{ if $resource }}
9+ {{ if $resource.Err }}
10+ {{ errorf "Failed to get remote resource %q: %s" $url $resource.Err }}
11+ {{ else }}
12+ {{ $data = $resource | transform.Unmarshal }}
13+ {{ end }}
14+ {{ else }}
15+ {{ errorf "Unable to get remote resource %q" $url }}
16+ {{ end }}
17+
18+ | Extension | Description | Versions |
19+ | --------- | ----------- | -------- |
20+ {{- range $key, $extension := $data }}
21+ {{- if eq $extension.tier "official" }}
22+ | [{{ $extension.repo.name }}]({{ $extension.repo.url }}) | {{ $extension.description }} | {{ delimit $extension.versions ", " }} |
23+ {{- end }}
24+ {{- end }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments