11'use client' ;
22
3- import { Hero } from '@/components/Hero' ;
4- import { Logo } from '@/components/Logo' ;
5- import { MobileNavigation } from '@/components/MobileNavigation' ;
6- import { Navigation } from '@/components/Navigation' ;
7- import { ThemeSelector } from '@/components/ThemeSelector' ;
3+ import { Hero } from '@/components/Hero' ;
4+ import { Logo } from '@/components/Logo' ;
5+ import { MobileNavigation } from '@/components/MobileNavigation' ;
6+ import { Navigation } from '@/components/Navigation' ;
7+ import { ThemeSelector } from '@/components/ThemeSelector' ;
88import clsx from 'clsx' ;
99import Link from 'next/link' ;
10- import { usePathname } from 'next/navigation' ;
11- import { useEffect , useState } from 'react' ;
12- import { LogoMark } from './LogoMark' ;
10+ import { usePathname } from 'next/navigation' ;
11+ import { useEffect , useState } from 'react' ;
12+ import { LogoMark } from './LogoMark' ;
1313import VersionSelector from './VersionSelector' ;
14- import { Search } from './search/Search' ;
15- import { DemoLayout } from '@/components/DemoLayout' ;
16- import { TopBanner } from './TopBanner' ;
14+ import { Search } from './search/Search' ;
1715
1816function GitHubIcon ( props : React . ComponentPropsWithoutRef < 'svg' > ) {
1917 return (
@@ -31,7 +29,7 @@ function Header() {
3129 setIsScrolled ( window . scrollY > 0 ) ;
3230 }
3331 onScroll ( ) ;
34- window . addEventListener ( 'scroll' , onScroll , { passive : true } ) ;
32+ window . addEventListener ( 'scroll' , onScroll , { passive : true } ) ;
3533 return ( ) => {
3634 window . removeEventListener ( 'scroll' , onScroll ) ;
3735 } ;
@@ -101,7 +99,7 @@ function Header() {
10199 ) ;
102100}
103101
104- export function Layout ( { children } : { children : React . ReactNode } ) {
102+ export function Layout ( { children} : { children : React . ReactNode } ) {
105103 let pathname = usePathname ( ) ;
106104 let isHomePage = pathname === '/' ;
107105 let isCodyDocs = pathname . includes ( '/cody' ) ;
@@ -121,13 +119,13 @@ export function Layout({ children }: { children: React.ReactNode }) {
121119 />} */ }
122120
123121 { /* Openctx docs banner */ }
124- { isopenCtxDocs && < TopBanner
122+ { /* { isopenCtxDocs && <TopBanner
125123 text="NEW: MCP is the recommended method for adding external context in Cody due to its broad community adoption and extensive tool support."
126124 link="https://sourcegraph.com/docs/cody/capabilities/agentic-context-fetching#mcp-support"
127125 linkText="Read docs to learn more about configuring MCP."
128126 textColor="#ffffff"
129127 backgroundColor="#F34E3F"
130- /> }
128+ />} */ }
131129
132130 { isHomePage && < Hero /> }
133131 { /* {isHomePage && <DemoLayout />} */ }
0 commit comments