Skip to content

Commit 186ea8a

Browse files
Migration: frontend changes to redirect to Grafana Docs (#1642)
* Remove old versioned pages + logs to discover pages * Update footer * Update header menu * Update homepage * Guides: add redirect and removed child pages * Manage Extensions & Integrations * Examples * Remove Disruptor and JLib files * Remove Javascript API pages * Added AttentionBlockquote * Update outdated-blockquote.view.js --------- Co-authored-by: Heitor Tashiro Sergent <[email protected]>
1 parent 987fed3 commit 186ea8a

File tree

678 files changed

+353
-34826
lines changed

Some content is hidden

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

678 files changed

+353
-34826
lines changed

gatsby-node.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,11 @@ const getPageVersions = (
176176
const topLevelLinks = [
177177
{
178178
label: 'guides',
179-
to: '/',
179+
to: 'https://grafana.com/docs/k6/latest/',
180180
},
181181
{
182182
label: '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-
],
183+
to: 'https://grafana.com/docs/k6/latest/javascript-api/',
192184
},
193185
{
194186
label: 'Cloud Docs',
@@ -203,15 +195,15 @@ const topLevelLinks = [
203195
},
204196
{
205197
label: 'Extensions',
206-
to: '/extensions/',
198+
to: 'https://grafana.com/docs/k6/latest/extensions/',
207199
},
208200
{
209201
label: 'Integrations',
210-
to: '/integrations/',
202+
to: 'https://grafana.com/docs/k6/latest/misc/integrations/',
211203
},
212204
{
213205
label: 'examples',
214-
to: '/examples/',
206+
to: 'https://grafana.com/docs/k6/latest/examples/',
215207
},
216208
];
217209

@@ -1179,7 +1171,10 @@ async function createDocPages({
11791171
reporter,
11801172
}),
11811173
)
1182-
.map((pageProps) => actions.createPage(pageProps));
1174+
.map((pageProps) =>
1175+
// console.log(pageProps.path);
1176+
actions.createPage(pageProps),
1177+
);
11831178
}
11841179

11851180
const createRedirects = ({ actions }) => {
@@ -2099,6 +2094,7 @@ exports.onCreateNode = ({ node, actions }) => {
20992094
// Adding default values for some fields and moving them under node.fields
21002095
// because that how createNodeField works
21012096
if (node.frontmatter) {
2097+
// console.log('node slug: ' , node.frontmatter.slug);
21022098
createNodeField({
21032099
node,
21042100
name: 'redirect',

0 commit comments

Comments
 (0)