Skip to content

Commit a65eaa2

Browse files
Update top nav links (#1675)
* Update top nav links * Add admonition to homepage
1 parent 4c48de4 commit a65eaa2

File tree

5 files changed

+69
-40
lines changed

5 files changed

+69
-40
lines changed

gatsby-node.js

Lines changed: 5 additions & 13 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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { OutdatedBlockquote } from './outdated-blockquote.view';
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import Blockquote from 'components/shared/blockquote';
2+
import React from 'react';
3+
4+
export const OutdatedBlockquote = () => (
5+
<div>
6+
<Blockquote mod="attention">
7+
<p>
8+
We&apos;ve migrated the k6 documentation to Grafana!{' '}
9+
<a
10+
className="link"
11+
href="https://k6.io/docs/javascript-api/k6-experimental/grpc/"
12+
>
13+
Click here
14+
</a>{' '}
15+
to view the latest version of the k6 documentation.
16+
<br />
17+
<br />
18+
This page is still available for users to be able to view the{' '}
19+
<a className="link" href="https://k6.io/docs/cloud/">
20+
k6 Cloud documentation
21+
</a>
22+
, and will be removed at a later date.
23+
</p>
24+
</Blockquote>
25+
<br />
26+
</div>
27+
);

src/components/pages/doc-welcome/use-cases/use-cases.view.js

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import { Heading } from 'components/shared/heading';
22
import { useI18n } from 'contexts/i18n-provider';
3-
import { useLocale } from 'contexts/locale-provider';
43
import { Link } from 'gatsby';
54
import React from 'react';
65

76
import styles from './use-cases.module.scss';
87

98
export const UseCases = () => {
109
const { t } = useI18n();
11-
const { urlLocale } = useLocale();
1210
return (
1311
<section className={`container ${styles.container}`}>
1412
<Heading tag={'h2'} size={'lg'} className={styles.title}>
@@ -26,9 +24,7 @@ export const UseCases = () => {
2624
<Link
2725
className={'link'}
2826
to={
29-
urlLocale === 'es'
30-
? '/test-types/spike-testing/'
31-
: '/test-types/spike-testing/'
27+
'https://grafana.com/docs/k6/latest/testing-guides/test-types/spike-testing/'
3228
}
3329
>
3430
spike
@@ -37,9 +33,7 @@ export const UseCases = () => {
3733
<Link
3834
className={'link'}
3935
to={
40-
urlLocale === 'es'
41-
? '/es/tipos-de-prueba/stress-testing/'
42-
: '/test-types/stress-testing/'
36+
'https://grafana.com/docs/k6/latest/testing-guides/test-types/stress-testing/'
4337
}
4438
>
4539
stress
@@ -48,9 +42,7 @@ export const UseCases = () => {
4842
<Link
4943
className={'link'}
5044
to={
51-
urlLocale === 'es'
52-
? '/es/tipos-de-prueba/soak-testing/'
53-
: '/test-types/soak-testing/'
45+
'https://grafana.com/docs/k6/latest/testing-guides/test-types/soak-testing/'
5446
}
5547
>
5648
soak tests
@@ -65,7 +57,10 @@ export const UseCases = () => {
6557
</Heading>
6658
<p>
6759
{t('welcome.use-cases.browser-testing.pre-description')}
68-
<Link className={'link'} to={'/using-k6-browser/overview/'}>
60+
<Link
61+
className={'link'}
62+
to={'https://grafana.com/docs/k6/latest/using-k6-browser/'}
63+
>
6964
k6 browser
7065
</Link>
7166
{t('welcome.use-cases.browser-testing.description')}
@@ -76,8 +71,15 @@ export const UseCases = () => {
7671
{t('welcome.use-cases.chaos-testing.title')}
7772
</Heading>
7873
<p>
79-
{t('welcome.use-cases.chaos-testing.description')}
80-
<Link className={'link'} to={'/javascript-api/xk6-disruptor/'}>
74+
You can use k6 to simulate traffic as part of your chaos
75+
experiments, trigger them from your k6 tests or inject different
76+
types of faults in Kubernetes with{' '}
77+
<Link
78+
className={'link'}
79+
to={
80+
'https://grafana.com/docs/k6/latest/testing-guides/injecting-faults-with-xk6-disruptor/'
81+
}
82+
>
8183
xk6-disruptor
8284
</Link>
8385
.
@@ -87,7 +89,22 @@ export const UseCases = () => {
8789
<Heading tag={'h3'} size={'md'} className={styles.title}>
8890
{t('welcome.use-cases.performance-monitoring.title')}
8991
</Heading>
90-
<p>{t('welcome.use-cases.performance-monitoring.description')}</p>
92+
<p>
93+
With k6, you can automate and schedule to trigger tests very
94+
frequently with a small load to continuously validate the
95+
performance and availability of your production environment. You can
96+
also use{' '}
97+
<Link
98+
className={'link'}
99+
to={
100+
'https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/create-checks/checks/k6/'
101+
}
102+
>
103+
Grafana Cloud Synthetic Monitoring
104+
</Link>{' '}
105+
for a managed solution built specifically for synthetic monitoring
106+
that supports k6 test scripts.
107+
</p>
91108
</li>
92109
</ul>
93110
</section>

src/templates/docs/guides.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
import classNames from 'classnames';
22
import { DocPageNavigation } from 'components/pages/doc-page/doc-page-navigation';
33
import TableOfContents from 'components/pages/doc-page/table-of-contents';
4-
import {
5-
Features,
6-
Manifesto,
7-
Quickstart,
8-
WhatIs,
9-
} from 'components/pages/doc-welcome';
10-
import { K6DoesNot } from 'components/pages/doc-welcome/k6-does-not';
4+
import { Features, WhatIs } from 'components/pages/doc-welcome';
5+
import { OutdatedBlockquote } from 'components/pages/doc-welcome/outdated-blockquote';
116
import { UseCases } from 'components/pages/doc-welcome/use-cases';
127
import { PageInfo } from 'components/shared/page-info';
138
import { SEO } from 'components/shared/seo';
@@ -23,8 +18,7 @@ import { flattenSidebarTree } from 'utils/utils';
2318
const pageInfo = {
2419
en: {
2520
title: 'Welcome to the k6 documentation',
26-
description:
27-
'This documentation will help you go from a total beginner to a seasoned k6 expert!',
21+
description: '',
2822
},
2923
es: {
3024
title: 'Bienvenido a la documentación de k6',
@@ -66,12 +60,10 @@ const GuidesContent = ({
6660
<PageInfo {...pageInfo[locale]} />
6761
<div className={classNames(docPageContent.inner)}>
6862
<div ref={contentContainerRef} className={stickyContainerClasses}>
69-
<Quickstart />
63+
<OutdatedBlockquote />
7064
<WhatIs />
7165
<Features />
7266
<UseCases />
73-
<Manifesto />
74-
<K6DoesNot />
7567
</div>
7668
<DocPageNavigation
7769
prev={null}

0 commit comments

Comments
 (0)