File tree Expand file tree Collapse file tree
docs/src/theme/DocItem/Layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments