Skip to content

Commit 245298e

Browse files
authored
docs: add attention to new AI features (#1709)
1 parent b96d6eb commit 245298e

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

docs/components/Navigation.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@
33
/* eslint-disable @typescript-eslint/no-unsafe-assignment -- Lots of Nextra magic. */
44

55
import { Navbar } from "nextra-theme-docs";
6+
import "./navigation.css";
67

78
export function Navigation(props: any) {
89
// items last to override the default
910
// return <div>hello</div>;
10-
return <Navbar {...props} />;
11+
return (
12+
<>
13+
<div className="top-banner">
14+
🚀 BlockNote AI is here!{" "}
15+
<a href="/docs/ai">Access the early preview.</a>
16+
</div>
17+
<Navbar {...props} />
18+
</>
19+
);
1120
}

docs/components/navigation.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.top-banner {
2+
background-color: #fef6d5;
3+
color: #000;
4+
text-align: center;
5+
padding: 0.2em 0;
6+
font-size: 0.8em;
7+
font-style: italic;
8+
border-bottom: 1px solid #e5e7eb;
9+
}
10+
11+
.top-banner a {
12+
text-decoration: underline;
13+
}

docs/pages/_meta.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"title": "Docs",
1717
"display": "children"
1818
},
19+
"ai": {
20+
"title": "AI",
21+
"href": "/docs/ai",
22+
"route": "/needs-fake-route-otherwise-menu-shows-bold"
23+
},
1924
"examples": {
2025
"title": "Examples",
2126
"display": "children"

0 commit comments

Comments
 (0)