Skip to content

Commit 31a730c

Browse files
committed
Added banner for Openctx doc
1 parent 6d86fb8 commit 31a730c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/components/Layout.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,28 @@ function Header() {
104104
export function Layout({ children }: { children: React.ReactNode }) {
105105
let pathname = usePathname();
106106
let isHomePage = pathname === '/';
107-
let isCody = pathname.includes('/cody');
107+
let isCodyDocs = pathname.includes('/cody');
108+
let isopenCtxDocs = pathname.includes('/cody/capabilities/openctx');
108109

109110
return (
110111
<div className="flex w-full flex-col">
111112
<Header />
112113

113-
{isCody && <TopBanner
114+
{/* Cody docs banner */}
115+
{/* {isCodyDocs && !isopenCtxDocs && <TopBanner
114116
text="NEW: Introducing chat and search in a single input with Sourcegraph 6.0."
115117
link="https://sourcegraph.com/blog/combining-chat-and-search"
116118
linkText="Read here"
117-
textColor="white"
119+
textColor="#ffffff"
120+
backgroundColor="#F34E3F"
121+
/>} */}
122+
123+
{/* Openctx docs banner */}
124+
{isopenCtxDocs && <TopBanner
125+
text="NEW: Introducing chat and search in a single input with Sourcegraph 6.0."
126+
link="https://sourcegraph.com/blog/combining-chat-and-search"
127+
linkText="Read here"
128+
textColor="#ffffff"
118129
backgroundColor="#F34E3F"
119130
/>}
120131

0 commit comments

Comments
 (0)