diff --git a/docs/cody/index.mdx b/docs/cody/index.mdx index 0177e2ec0..e6b662293 100644 --- a/docs/cody/index.mdx +++ b/docs/cody/index.mdx @@ -1,7 +1,7 @@ # Cody - Supported on all [Sourcegraph plans](https://about.sourcegraph.com/pricing). + Supported on [Sourcegraph Enterprise](https://about.sourcegraph.com/pricing). Available on VS Code, JetBrains, Visual Studio, and the Web. diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 69c7847e9..052ada025 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -24,6 +24,11 @@ function GitHubIcon(props: React.ComponentPropsWithoutRef<'svg'>) { function Header() { let [isScrolled, setIsScrolled] = useState(false); + const pathname = usePathname(); + const isCodyDocs = pathname.includes('/cody'); + const isPricingDocs = pathname.includes('/pricing/plans'); + const isopenCtxDocs = pathname.includes('/cody/capabilities/openctx'); + useEffect(() => { function onScroll() { setIsScrolled(window.scrollY > 0); @@ -37,87 +42,27 @@ function Header() { return (
-
-
- -
-
- - - - {/* - Documentation - - - Help - */} - - - -
-
- -
-
- - - - - - - -
-
-
- ); -} - -export function Layout({ children }: { children: React.ReactNode }) { - let pathname = usePathname(); - let isHomePage = pathname === '/'; - let isCodyDocs = pathname.includes('/cody'); - let isopenCtxDocs = pathname.includes('/cody/capabilities/openctx'); - - return ( -
-
- {/* Cody docs banner */} {/*isCodyDocs && !isopenCtxDocs && */} + + {/* Pricing docs banner */} + {/*isPricingDocs && !isopenCtxDocs && /*} + />*/} {/* Openctx docs banner */} {/* {isopenCtxDocs && } */} + />} */} + +
+
+
+ +
+
+ + + + + + +
+
+ +
+
+ + + + + + + +
+
+
+
+ ); +} + +export function Layout({ children }: { children: React.ReactNode }) { + let pathname = usePathname(); + let isHomePage = pathname === '/'; + return ( +
+
{isHomePage && } {/* {isHomePage && } */} diff --git a/src/components/TopBanner.tsx b/src/components/TopBanner.tsx index 803a2580b..5ffd14ef4 100644 --- a/src/components/TopBanner.tsx +++ b/src/components/TopBanner.tsx @@ -36,7 +36,7 @@ export function TopBanner({ return (
{text}