Skip to content

Commit

Permalink
Revert "Migration: frontend changes to redirect to Grafana Docs" (#1655)
Browse files Browse the repository at this point in the history
This reverts commit 186ea8a.
  • Loading branch information
heitortsergent authored Jul 17, 2024
1 parent 416d1d7 commit d83df12
Show file tree
Hide file tree
Showing 678 changed files with 34,826 additions and 353 deletions.
24 changes: 14 additions & 10 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,19 @@ const getPageVersions = (
const topLevelLinks = [
{
label: 'guides',
to: 'https://grafana.com/docs/k6/latest/',
to: '/',
},
{
label: 'JAVASCRIPT API',
to: 'https://grafana.com/docs/k6/latest/javascript-api/',
to: '/javascript-api/',
submenu: [
{ label: 'k6 API', to: `/javascript-api/` },
{
label: 'xk6-disruptor',
to: `/javascript-api/xk6-disruptor/`,
},
{ label: 'jslib', to: `/javascript-api/jslib/` },
],
},
{
label: 'Cloud Docs',
Expand All @@ -195,15 +203,15 @@ const topLevelLinks = [
},
{
label: 'Extensions',
to: 'https://grafana.com/docs/k6/latest/extensions/',
to: '/extensions/',
},
{
label: 'Integrations',
to: 'https://grafana.com/docs/k6/latest/misc/integrations/',
to: '/integrations/',
},
{
label: 'examples',
to: 'https://grafana.com/docs/k6/latest/examples/',
to: '/examples/',
},
];

Expand Down Expand Up @@ -1171,10 +1179,7 @@ async function createDocPages({
reporter,
}),
)
.map((pageProps) =>
// console.log(pageProps.path);
actions.createPage(pageProps),
);
.map((pageProps) => actions.createPage(pageProps));
}

const createRedirects = ({ actions }) => {
Expand Down Expand Up @@ -2094,7 +2099,6 @@ exports.onCreateNode = ({ node, actions }) => {
// Adding default values for some fields and moving them under node.fields
// because that how createNodeField works
if (node.frontmatter) {
// console.log('node slug: ' , node.frontmatter.slug);
createNodeField({
node,
name: 'redirect',
Expand Down
Loading

0 comments on commit d83df12

Please sign in to comment.