Skip to content

Commit 1cf062e

Browse files
Revert "Migration: frontend changes to redirect to Grafana Docs (v2)" (#1671)
This reverts commit e0d694d.
1 parent e0d694d commit 1cf062e

File tree

584 files changed

+432
-828
lines changed

Some content is hidden

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

584 files changed

+432
-828
lines changed

gatsby-node.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,19 @@ const getPageVersions = (
176176
const topLevelLinks = [
177177
{
178178
label: 'guides',
179-
to: 'https://grafana.com/docs/k6/latest/',
179+
to: '/',
180180
},
181181
{
182182
label: 'JAVASCRIPT API',
183-
to: 'https://grafana.com/docs/k6/latest/javascript-api/',
183+
to: '/javascript-api/',
184+
submenu: [
185+
{ label: 'k6 API', to: `/javascript-api/` },
186+
{
187+
label: 'xk6-disruptor',
188+
to: `/javascript-api/xk6-disruptor/`,
189+
},
190+
{ label: 'jslib', to: `/javascript-api/jslib/` },
191+
],
184192
},
185193
{
186194
label: 'Cloud Docs',
@@ -195,15 +203,15 @@ const topLevelLinks = [
195203
},
196204
{
197205
label: 'Extensions',
198-
to: 'https://grafana.com/docs/k6/latest/extensions/',
206+
to: '/extensions/',
199207
},
200208
{
201209
label: 'Integrations',
202-
to: 'https://grafana.com/docs/k6/latest/misc/integrations/',
210+
to: '/integrations/',
203211
},
204212
{
205213
label: 'examples',
206-
to: 'https://grafana.com/docs/k6/latest/examples/',
214+
to: '/examples/',
207215
},
208216
];
209217

0 commit comments

Comments
 (0)