Skip to content

Commit 2a3a0c4

Browse files
feat andronix-docs-v3 (powered by fumadocs)
1 parent 5977c0e commit 2a3a0c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2974
-0
lines changed

.source/index.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// @ts-nocheck -- skip type checking
2+
import * as docs_29 from "../content/docs/window-managers/window-managers.mdx?collection=docs&hash=1760586794322"
3+
import * as docs_28 from "../content/docs/vnc/vnc-basics.mdx?collection=docs&hash=1760586794322"
4+
import * as docs_27 from "../content/docs/xsdl/xsdl-basics.mdx?collection=docs&hash=1760586794322"
5+
import * as docs_26 from "../content/docs/security/termux.mdx?collection=docs&hash=1760586794322"
6+
import * as docs_25 from "../content/docs/troubleshoot/sound.mdx?collection=docs&hash=1760586794322"
7+
import * as docs_24 from "../content/docs/troubleshoot/internal-storage.mdx?collection=docs&hash=1760586794322"
8+
import * as docs_23 from "../content/docs/unmodded-distros/unmodded-os-uninstallation.mdx?collection=docs&hash=1760586794322"
9+
import * as docs_22 from "../content/docs/unmodded-distros/unmodded-os-installation.mdx?collection=docs&hash=1760586794322"
10+
import * as docs_21 from "../content/docs/termux/migrating-to-f-droid.mdx?collection=docs&hash=1760586794322"
11+
import * as docs_20 from "../content/docs/termux/cannot-link-executable.mdx?collection=docs&hash=1760586794322"
12+
import * as docs_19 from "../content/docs/software/libre-office.mdx?collection=docs&hash=1760586794322"
13+
import * as docs_18 from "../content/docs/software/gimp.mdx?collection=docs&hash=1760586794322"
14+
import * as docs_17 from "../content/docs/software/browsers.mdx?collection=docs&hash=1760586794322"
15+
import * as docs_16 from "../content/docs/software/IDEs.mdx?collection=docs&hash=1760586794322"
16+
import * as docs_15 from "../content/docs/ssh/ssh-basics.mdx?collection=docs&hash=1760586794322"
17+
import * as docs_14 from "../content/docs/miscellaneous/open-source.mdx?collection=docs&hash=1760586794322"
18+
import * as docs_13 from "../content/docs/modded-os/modded-os.mdx?collection=docs&hash=1760586794322"
19+
import * as docs_12 from "../content/docs/modded-os/modded-os-installation.mdx?collection=docs&hash=1760586794322"
20+
import * as docs_11 from "../content/docs/get-started/limitations.mdx?collection=docs&hash=1760586794322"
21+
import * as docs_10 from "../content/docs/get-started/how-does-andronix-work.mdx?collection=docs&hash=1760586794322"
22+
import * as docs_9 from "../content/docs/faq/faq.mdx?collection=docs&hash=1760586794322"
23+
import * as docs_8 from "../content/docs/blog/v7-0.mdx?collection=docs&hash=1760586794322"
24+
import * as docs_7 from "../content/docs/blog/v6-0.mdx?collection=docs&hash=1760586794322"
25+
import * as docs_6 from "../content/docs/blog/andronix-termux-and-f-droid.mdx?collection=docs&hash=1760586794322"
26+
import * as docs_5 from "../content/docs/blog/andronix-maintainers.mdx?collection=docs&hash=1760586794322"
27+
import * as docs_4 from "../content/docs/android-12/andronix-on-android-12-and-beyond.mdx?collection=docs&hash=1760586794322"
28+
import * as docs_3 from "../content/docs/desktop-environments/desktop-environments.mdx?collection=docs&hash=1760586794322"
29+
import * as docs_2 from "../content/docs/account/deletion.mdx?collection=docs&hash=1760586794322"
30+
import * as docs_1 from "../content/docs/index.mdx?collection=docs&hash=1760586794322"
31+
import * as docs_0 from "../content/docs/blog.mdx?collection=docs&hash=1760586794322"
32+
import { _runtime } from "fumadocs-mdx/runtime/next"
33+
import * as _source from "../source.config"
34+
export const docs = _runtime.docs<typeof _source.docs>([{ info: {"path":"blog.mdx","fullPath":"content/docs/blog.mdx"}, data: docs_0 }, { info: {"path":"index.mdx","fullPath":"content/docs/index.mdx"}, data: docs_1 }, { info: {"path":"account/deletion.mdx","fullPath":"content/docs/account/deletion.mdx"}, data: docs_2 }, { info: {"path":"desktop-environments/desktop-environments.mdx","fullPath":"content/docs/desktop-environments/desktop-environments.mdx"}, data: docs_3 }, { info: {"path":"android-12/andronix-on-android-12-and-beyond.mdx","fullPath":"content/docs/android-12/andronix-on-android-12-and-beyond.mdx"}, data: docs_4 }, { info: {"path":"blog/andronix-maintainers.mdx","fullPath":"content/docs/blog/andronix-maintainers.mdx"}, data: docs_5 }, { info: {"path":"blog/andronix-termux-and-f-droid.mdx","fullPath":"content/docs/blog/andronix-termux-and-f-droid.mdx"}, data: docs_6 }, { info: {"path":"blog/v6-0.mdx","fullPath":"content/docs/blog/v6-0.mdx"}, data: docs_7 }, { info: {"path":"blog/v7-0.mdx","fullPath":"content/docs/blog/v7-0.mdx"}, data: docs_8 }, { info: {"path":"faq/faq.mdx","fullPath":"content/docs/faq/faq.mdx"}, data: docs_9 }, { info: {"path":"get-started/how-does-andronix-work.mdx","fullPath":"content/docs/get-started/how-does-andronix-work.mdx"}, data: docs_10 }, { info: {"path":"get-started/limitations.mdx","fullPath":"content/docs/get-started/limitations.mdx"}, data: docs_11 }, { info: {"path":"modded-os/modded-os-installation.mdx","fullPath":"content/docs/modded-os/modded-os-installation.mdx"}, data: docs_12 }, { info: {"path":"modded-os/modded-os.mdx","fullPath":"content/docs/modded-os/modded-os.mdx"}, data: docs_13 }, { info: {"path":"miscellaneous/open-source.mdx","fullPath":"content/docs/miscellaneous/open-source.mdx"}, data: docs_14 }, { info: {"path":"ssh/ssh-basics.mdx","fullPath":"content/docs/ssh/ssh-basics.mdx"}, data: docs_15 }, { info: {"path":"software/IDEs.mdx","fullPath":"content/docs/software/IDEs.mdx"}, data: docs_16 }, { info: {"path":"software/browsers.mdx","fullPath":"content/docs/software/browsers.mdx"}, data: docs_17 }, { info: {"path":"software/gimp.mdx","fullPath":"content/docs/software/gimp.mdx"}, data: docs_18 }, { info: {"path":"software/libre-office.mdx","fullPath":"content/docs/software/libre-office.mdx"}, data: docs_19 }, { info: {"path":"termux/cannot-link-executable.mdx","fullPath":"content/docs/termux/cannot-link-executable.mdx"}, data: docs_20 }, { info: {"path":"termux/migrating-to-f-droid.mdx","fullPath":"content/docs/termux/migrating-to-f-droid.mdx"}, data: docs_21 }, { info: {"path":"unmodded-distros/unmodded-os-installation.mdx","fullPath":"content/docs/unmodded-distros/unmodded-os-installation.mdx"}, data: docs_22 }, { info: {"path":"unmodded-distros/unmodded-os-uninstallation.mdx","fullPath":"content/docs/unmodded-distros/unmodded-os-uninstallation.mdx"}, data: docs_23 }, { info: {"path":"troubleshoot/internal-storage.mdx","fullPath":"content/docs/troubleshoot/internal-storage.mdx"}, data: docs_24 }, { info: {"path":"troubleshoot/sound.mdx","fullPath":"content/docs/troubleshoot/sound.mdx"}, data: docs_25 }, { info: {"path":"security/termux.mdx","fullPath":"content/docs/security/termux.mdx"}, data: docs_26 }, { info: {"path":"xsdl/xsdl-basics.mdx","fullPath":"content/docs/xsdl/xsdl-basics.mdx"}, data: docs_27 }, { info: {"path":"vnc/vnc-basics.mdx","fullPath":"content/docs/vnc/vnc-basics.mdx"}, data: docs_28 }, { info: {"path":"window-managers/window-managers.mdx","fullPath":"content/docs/window-managers/window-managers.mdx"}, data: docs_29 }], [{"info":{"path":"_meta.json","fullPath":"content/docs/_meta.json"},"data":{}}, {"info":{"path":"android-12/_meta.json","fullPath":"content/docs/android-12/_meta.json"},"data":{}}, {"info":{"path":"blog/_meta.json","fullPath":"content/docs/blog/_meta.json"},"data":{}}, {"info":{"path":"account/_meta.json","fullPath":"content/docs/account/_meta.json"},"data":{}}, {"info":{"path":"faq/_meta.json","fullPath":"content/docs/faq/_meta.json"},"data":{}}, {"info":{"path":"get-started/_meta.json","fullPath":"content/docs/get-started/_meta.json"},"data":{}}, {"info":{"path":"desktop-environments/_meta.json","fullPath":"content/docs/desktop-environments/_meta.json"},"data":{}}, {"info":{"path":"modded-os/_meta.json","fullPath":"content/docs/modded-os/_meta.json"},"data":{}}, {"info":{"path":"miscellaneous/_meta.json","fullPath":"content/docs/miscellaneous/_meta.json"},"data":{}}, {"info":{"path":"security/_meta.json","fullPath":"content/docs/security/_meta.json"},"data":{}}, {"info":{"path":"ssh/_meta.json","fullPath":"content/docs/ssh/_meta.json"},"data":{}}, {"info":{"path":"termux/_meta.json","fullPath":"content/docs/termux/_meta.json"},"data":{}}, {"info":{"path":"troubleshoot/_meta.json","fullPath":"content/docs/troubleshoot/_meta.json"},"data":{}}, {"info":{"path":"software/_meta.json","fullPath":"content/docs/software/_meta.json"},"data":{}}, {"info":{"path":"vnc/_meta.json","fullPath":"content/docs/vnc/_meta.json"},"data":{}}, {"info":{"path":"unmodded-distros/_meta.json","fullPath":"content/docs/unmodded-distros/_meta.json"},"data":{}}, {"info":{"path":"window-managers/_meta.json","fullPath":"content/docs/window-managers/_meta.json"},"data":{}}, {"info":{"path":"xsdl/_meta.json","fullPath":"content/docs/xsdl/_meta.json"},"data":{}}])

.source/source.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// source.config.ts
2+
import { defineConfig, defineDocs } from "fumadocs-mdx/config";
3+
var source_config_default = defineConfig({
4+
generateManifest: true,
5+
lastModifiedTime: "git"
6+
});
7+
var docs = defineDocs({
8+
dir: "content/docs"
9+
});
10+
export {
11+
source_config_default as default,
12+
docs
13+
};

app/(docs)/[[...slug]]/page.tsx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import { source } from '@/lib/source';
2+
import {
3+
DocsPage,
4+
DocsBody,
5+
DocsDescription,
6+
DocsTitle,
7+
} from 'fumadocs-ui/page';
8+
import { notFound } from 'next/navigation';
9+
import { useMDXComponents } from '@/mdx-components';
10+
11+
export default async function Page(props: {
12+
params: Promise<{ slug?: string[] }>;
13+
}) {
14+
const params = await props.params;
15+
const page = source.getPage(params.slug);
16+
17+
if (!page) notFound();
18+
19+
const MDX = page.data.body;
20+
21+
return (
22+
<DocsPage toc={page.data.toc} full={page.data.full}>
23+
<DocsTitle>{page.data.title}</DocsTitle>
24+
<DocsDescription>{page.data.description}</DocsDescription>
25+
<DocsBody>
26+
<MDX components={useMDXComponents()} />
27+
</DocsBody>
28+
</DocsPage>
29+
);
30+
}
31+
32+
export async function generateStaticParams() {
33+
return source.generateParams();
34+
}
35+
36+
export async function generateMetadata(props: {
37+
params: Promise<{ slug?: string[] }>;
38+
}) {
39+
const params = await props.params;
40+
const page = source.getPage(params.slug);
41+
42+
if (!page) notFound();
43+
44+
return {
45+
title: page.data.title,
46+
description: page.data.description,
47+
};
48+
}

app/(docs)/layout.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { source } from '@/lib/source';
2+
import { baseOptions } from '@/lib/layout.shared';
3+
import type { ReactNode } from 'react';
4+
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
5+
import type { Metadata } from 'next';
6+
7+
export const metadata: Metadata = {
8+
title: {
9+
template: '%s - Andronix Docs',
10+
default: 'Andronix Documentation',
11+
},
12+
};
13+
14+
export default function RootDocsLayout({ children }: { children: ReactNode }) {
15+
return (
16+
<DocsLayout
17+
{...baseOptions()}
18+
tree={source.pageTree}
19+
sidebar={{
20+
defaultOpenLevel: 1,
21+
}}
22+
>
23+
{children}
24+
</DocsLayout>
25+
);
26+
}

app/api/search/route.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { source } from '@/lib/source';
2+
import { createSearchAPI } from 'fumadocs-core/search/server';
3+
4+
export const { GET } = createSearchAPI('advanced', {
5+
indexes: source.getPages().map((page) => ({
6+
title: page.data.title,
7+
structuredData: page.data.structuredData,
8+
id: page.url,
9+
url: page.url,
10+
})),
11+
});

app/global.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import 'tailwindcss';
2+
@import 'fumadocs-ui/css/neutral.css';
3+
@import 'fumadocs-ui/css/preset.css';
4+
5+
@theme {
6+
/* Orange primary color for light mode */
7+
--color-fd-primary: hsl(24.6, 95%, 53.1%); /* Orange-500 */
8+
--color-fd-primary-foreground: hsl(0, 0%, 100%); /* White text */
9+
}
10+
11+
.dark {
12+
/* Orange primary color for dark mode */
13+
--color-fd-primary: hsl(20.5, 90.2%, 48.2%); /* Orange-500 adjusted for dark */
14+
--color-fd-primary-foreground: hsl(0, 0%, 100%); /* White text */
15+
}

app/layout.tsx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
import type { ReactNode } from 'react';
6+
7+
const inter = Inter({
8+
subsets: ['latin'],
9+
});
10+
11+
export const metadata = {
12+
title: {
13+
template: '%s - Andronix Docs',
14+
default: 'Andronix Documentation',
15+
},
16+
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.',
17+
metadataBase: new URL('https://docs.andronix.app'),
18+
openGraph: {
19+
title: 'Andronix Documentation',
20+
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.',
21+
url: 'https://docs.andronix.app/',
22+
images: '/og.png',
23+
type: 'website',
24+
},
25+
twitter: {
26+
card: 'summary_large_image',
27+
title: 'Andronix Documentation',
28+
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.',
29+
images: '/og.png',
30+
},
31+
};
32+
33+
export default function Layout({ children }: { children: ReactNode }) {
34+
return (
35+
<html lang="en" className={inter.className} suppressHydrationWarning>
36+
<body>
37+
<Banner
38+
id="android-12-fix"
39+
variant="rainbow"
40+
rainbowColors={[
41+
'rgba(255,100,0, 0.5)',
42+
'rgba(255,100,0, 0.5)',
43+
'transparent',
44+
'rgba(255,100,0, 0.5)',
45+
'transparent',
46+
'rgba(255,100,0, 0.5)',
47+
'transparent',
48+
]}
49+
>
50+
<div className="flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2 text-center sm:text-left">
51+
<span className="font-medium">🚨 Resolve <strong>Process completed (signal 9)</strong> error</span>
52+
<span className="hidden sm:inline"></span>
53+
<a
54+
href="/android-12/andronix-on-android-12-and-beyond"
55+
className="underline hover:text-white transition-colors"
56+
>
57+
Read the fix
58+
</a>
59+
</div>
60+
</Banner>
61+
<RootProvider>{children}</RootProvider>
62+
</body>
63+
</html>
64+
);
65+
}

content/docs/_app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import 'tailwindcss/tailwind.css'
2+
3+
function MyApp({ Component, pageProps }) {
4+
return <Component {...pageProps} />
5+
}
6+
7+
export default MyApp

content/docs/_meta.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"index": "Get Started",
3+
"get-started": "Introduction",
4+
"android-12": "Android Compatibility",
5+
"unmodded-distros": "Installation",
6+
"modded-os": "Modded OS",
7+
"window-managers": "Window Managers",
8+
"desktop-environments": "Desktop Environments",
9+
"software": "Software",
10+
11+
"ssh": "SSH Basics",
12+
"termux": "Termux",
13+
"vnc": "VNC",
14+
"xsdl": "XSDL",
15+
"security": "Security",
16+
"faq": "FAQ",
17+
"troubleshoot": "Troubleshoot",
18+
"miscellaneous": "Miscellaneous",
19+
"contact": {
20+
"title": "Discord ↗",
21+
"type": "page",
22+
"href": "https://chat.andronix.app",
23+
"newWindow": true
24+
},
25+
"github": {
26+
"title": "GitHub ↗",
27+
"type": "page",
28+
"href": "https://git.andronix.app",
29+
"newWindow": true
30+
},
31+
"help": {
32+
"title": "Need Help? ↗",
33+
"type": "page",
34+
"href": "https://chat.andronix.app",
35+
"newWindow": true
36+
},
37+
"account": {
38+
"title": "Account",
39+
"type": "page"
40+
},
41+
42+
"blog": {
43+
"title": "Blog",
44+
"type": "page",
45+
"theme": {
46+
"sidebar": false
47+
}
48+
}
49+
}

content/docs/account/_meta.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"deletion ": "Account Deletion"
3+
}

0 commit comments

Comments
 (0)