|
| 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'; |
| 5 | + |
| 6 | +const inter = Inter({ |
| 7 | + subsets: ['latin'], |
| 8 | +}); |
| 9 | + |
| 10 | +export const metadata = { |
| 11 | + title: { |
| 12 | + template: '%s - Andronix Docs', |
| 13 | + default: 'Andronix Documentation', |
| 14 | + }, |
| 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'), |
| 17 | + 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', |
| 23 | + }, |
| 24 | + 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', |
| 29 | + }, |
| 30 | +}; |
| 31 | + |
| 32 | +export default function Layout({ children }: { children: React.ReactNode }) { |
| 33 | + return ( |
| 34 | + <html lang="en" className={inter.className} suppressHydrationWarning> |
| 35 | + <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> |
| 61 | + </body> |
| 62 | + </html> |
| 63 | + ); |
| 64 | +} |
0 commit comments