diff --git a/src/components/shared/version-banner/version-banner.js b/src/components/shared/version-banner/version-banner.js index c2c8e670b9..acd58cfc2a 100644 --- a/src/components/shared/version-banner/version-banner.js +++ b/src/components/shared/version-banner/version-banner.js @@ -1,4 +1,3 @@ -import { Link } from 'gatsby'; import React from 'react'; import { LATEST_VERSION } from 'utils/versioning'; @@ -9,14 +8,19 @@ export const VersionBanner = ({ version, versions }) => (
- ⚠️ This is archived documentation for {version}. + ⚠️ This is the archived documentation for k6 {version}. {typeof versions[LATEST_VERSION] !== 'undefined' && ( {' '} Go to the{' '} - + latest version - + + . )} diff --git a/src/layouts/doc-layout/doc-layout.view.js b/src/layouts/doc-layout/doc-layout.view.js index 1ac6f309a2..06aeb08ee9 100644 --- a/src/layouts/doc-layout/doc-layout.view.js +++ b/src/layouts/doc-layout/doc-layout.view.js @@ -27,7 +27,6 @@ import { import { childrenToList, isInIFrame } from 'utils'; import AlgoliaQueries from 'utils/algolia'; import { main, app } from 'utils/urls'; -import { LATEST_VERSION } from 'utils/versioning'; import styles from './doc-layout.module.scss'; import ArrowLeft from './svg/arrow-left.inline.svg'; @@ -420,9 +419,7 @@ export const DocLayout = ({
- {version && version !== LATEST_VERSION && ( - - )} + {version && } {children}