Skip to content

Commit d090773

Browse files
remove banner to prevent localstorage access.
1 parent 3777f28 commit d090773

File tree

2 files changed

+36
-43
lines changed

2 files changed

+36
-43
lines changed

app/(docs)/layout.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ export default function RootDocsLayout({ children }: { children: React.ReactNode
1717
tree={source.pageTree}
1818
sidebar={{
1919
defaultOpenLevel: 1,
20+
banner: (
21+
<div className="bg-orange-500/10 border border-orange-500/20 rounded-lg p-3 mb-4">
22+
<div className="flex flex-col gap-1">
23+
<span className="font-medium text-sm text-orange-600 dark:text-orange-400">
24+
🚨 Process completed (signal 9) error?
25+
</span>
26+
<a
27+
href="/android-12/andronix-on-android-12-and-beyond"
28+
className="text-xs text-orange-700 dark:text-orange-300 underline hover:text-orange-900 dark:hover:text-orange-100"
29+
>
30+
Read the fix →
31+
</a>
32+
</div>
33+
</div>
34+
),
2035
}}
2136
>
2237
{children}

app/layout.tsx

Lines changed: 21 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,41 @@
1-
import './global.css';
2-
import { RootProvider } from 'fumadocs-ui/provider';
3-
import { Banner } from 'fumadocs-ui/components/banner';
4-
import { Inter } from 'next/font/google';
1+
import "./global.css";
2+
import { RootProvider } from "fumadocs-ui/provider";
3+
import { Inter } from "next/font/google";
54

65
const inter = Inter({
7-
subsets: ['latin'],
6+
subsets: ["latin"],
87
});
98

109
export const metadata = {
1110
title: {
12-
template: '%s - Andronix Docs',
13-
default: 'Andronix Documentation',
11+
template: "%s - Andronix Docs",
12+
default: "Andronix Documentation",
1413
},
15-
description: 'Andronix lets you install Linux distributions like Ubuntu, Debian, and Manjaro on non-rooted Android devices. Read our documentation for step-by-step instructions.',
16-
metadataBase: new URL('https://docs.andronix.app'),
14+
description:
15+
"Andronix lets you install Linux distributions like Ubuntu, Debian, and Manjaro on non-rooted Android devices. Read our documentation for step-by-step instructions.",
16+
metadataBase: new URL("https://docs.andronix.app"),
1717
openGraph: {
18-
title: 'Andronix Documentation',
19-
description: 'Andronix lets you install Ubuntu, Debian, and Manjaro on non-rooted Android devices. Our documentation provides step-by-step instructions and troubleshooting tips to help you set up your Linux environment quickly and easily. Experience the power of Linux on your mobile device with Andronix.',
20-
url: 'https://docs.andronix.app/',
21-
images: '/og.png',
22-
type: 'website',
18+
title: "Andronix Documentation",
19+
description:
20+
"Andronix lets you install Ubuntu, Debian, and Manjaro on non-rooted Android devices. Our documentation provides step-by-step instructions and troubleshooting tips to help you set up your Linux environment quickly and easily. Experience the power of Linux on your mobile device with Andronix.",
21+
url: "https://docs.andronix.app/",
22+
images: "/og.png",
23+
type: "website",
2324
},
2425
twitter: {
25-
card: 'summary_large_image',
26-
title: 'Andronix Documentation',
27-
description: 'Andronix lets you install Ubuntu, Debian, and Manjaro on non-rooted Android devices. Our documentation provides step-by-step instructions and troubleshooting tips to help you set up your Linux environment quickly and easily. Experience the power of Linux on your mobile device with Andronix.',
28-
images: '/og.png',
26+
card: "summary_large_image",
27+
title: "Andronix Documentation",
28+
description:
29+
"Andronix lets you install Ubuntu, Debian, and Manjaro on non-rooted Android devices. Our documentation provides step-by-step instructions and troubleshooting tips to help you set up your Linux environment quickly and easily. Experience the power of Linux on your mobile device with Andronix.",
30+
images: "/og.png",
2931
},
3032
};
3133

3234
export default function Layout({ children }: { children: React.ReactNode }) {
3335
return (
3436
<html lang="en" className={inter.className} suppressHydrationWarning>
3537
<body>
36-
<Banner
37-
id="android-12-fix"
38-
variant="rainbow"
39-
rainbowColors={[
40-
'rgba(255,100,0, 0.5)',
41-
'rgba(255,100,0, 0.5)',
42-
'transparent',
43-
'rgba(255,100,0, 0.5)',
44-
'transparent',
45-
'rgba(255,100,0, 0.5)',
46-
'transparent',
47-
]}
48-
>
49-
<div className="flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2 text-center sm:text-left">
50-
<span className="font-medium">🚨 Resolve <strong>Process completed (signal 9)</strong> error</span>
51-
<span className="hidden sm:inline"></span>
52-
<a
53-
href="/android-12/andronix-on-android-12-and-beyond"
54-
className="underline hover:text-white transition-colors"
55-
>
56-
Read the fix
57-
</a>
58-
</div>
59-
</Banner>
60-
<RootProvider>{children}</RootProvider>
38+
<RootProvider theme={{ defaultTheme: "Darl" }}>{children}</RootProvider>
6139
</body>
6240
</html>
6341
);

0 commit comments

Comments
 (0)