Skip to content

Commit 884dc9a

Browse files
authored
Rmv OpenCtx banner (#1192)
<!-- Explain the changes introduced in your PR --> ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent 82c7f0f commit 884dc9a

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

src/components/Layout.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
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';
88
import clsx from 'clsx';
99
import 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';
1313
import 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

1816
function 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

Comments
 (0)