Skip to content

Commit 378922d

Browse files
authored
docs: add legacy docs banner pointing to new docs.cube.dev (cube-js#10752)
Notify visitors of the old Nextra docs site that documentation has moved to the new Mintlify-based docs.cube.dev so they can switch over. Made-with: Cursor
1 parent 7428769 commit 378922d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

docs/app/layout.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Layout, Navbar } from 'nextra-theme-docs'
2-
import { Head } from 'nextra/components'
2+
import { Banner, Head } from 'nextra/components'
33
import { getPageMap } from 'nextra/page-map'
44
import localFont from 'next/font/local'
55
import 'nextra-theme-docs/style.css'
@@ -79,6 +79,14 @@ const navbar = (
7979

8080
const footer = <Footer />
8181

82+
const banner = (
83+
<Banner storageKey="legacy-docs-2026">
84+
<a href="https://docs.cube.dev" target="_blank" rel="noreferrer">
85+
You're looking at the old Cube documentation. Visit the new docs →
86+
</a>
87+
</Banner>
88+
)
89+
8290
export default async function RootLayout({ children }) {
8391
return (
8492
<html
@@ -114,6 +122,7 @@ export default async function RootLayout({ children }) {
114122
<PurpleBannerWrapper />
115123
<AnalyticsProvider>
116124
<Layout
125+
banner={banner}
117126
navbar={navbar}
118127
pageMap={await getPageMap()}
119128
docsRepositoryBase="https://github.com/cube-js/cube/tree/master/docs"

0 commit comments

Comments
 (0)