Skip to content

Commit 4495fd2

Browse files
Merge branch 'main' of https://github.com/nebari-dev/nebari-docs into docs/nkp-architecture-explainer
2 parents 1796592 + 77a3aa0 commit 4495fd2

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from 'react';
2+
import Layout from '@theme-original/DocItem/Layout';
3+
import Admonition from '@theme/Admonition';
4+
import Link from '@docusaurus/Link';
5+
import { useDoc } from '@docusaurus/plugin-content-docs/client';
6+
import type LayoutType from '@theme/DocItem/Layout';
7+
import type { WrapperProps } from '@docusaurus/types';
8+
9+
type Props = WrapperProps<typeof LayoutType>;
10+
11+
export default function LayoutWrapper(props: Props): JSX.Element {
12+
const { metadata } = useDoc();
13+
const isClassic = metadata.permalink?.startsWith('/classic/');
14+
15+
return (
16+
<>
17+
{isClassic && (
18+
<Admonition type="danger" title="Deprecated">
19+
<p>
20+
<strong>Nebari Classic is deprecated.</strong> There is no migration
21+
path today. See the{' '}
22+
<Link to="/docs/introduction">current Nebari documentation</Link>{' '}
23+
for the supported platform.
24+
</p>
25+
</Admonition>
26+
)}
27+
<Layout {...props} />
28+
</>
29+
);
30+
}

0 commit comments

Comments
 (0)