Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New docs website #139

Merged
merged 21 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/little-donkeys-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nxjs-runtime": patch
---

Fix `toStringTag` on global scope after quickjs update
2 changes: 2 additions & 0 deletions .changeset/stupid-cycles-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
node_modules
.turbo
/packages/*/dist
/packages/*/public
/packages/*/docs.json
/lib/*/lib
/lib/*/debug
/lib/*/release
Expand Down
2 changes: 2 additions & 0 deletions apps/starwars/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"productName": "ASCII Star Wars",
"name": "starwars",
"version": "0.0.0",
"author": "Darth Vader",
"private": true,
"description": "nx.js app that renders the Star Wars ASCII text",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"ignore": [
"romfs",
"**/*/dist",
"docs/.next/**",
"packages/*/docs.json",
"packages/runtime/runtime.js",
"packages/runtime/public",
"packages/nsp/hacbrewpack.cjs"
Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ pnpm nro --filter "$APP"

if [ -n "${UPLOAD-}" ]; then
app_path="$(pnpm list -r --depth -1 --json | jq -r '.[] | select(.name=="'"${APP}"'") | .path')"
curl --netrc "ftp://192.168.86.115:5000/switch/${APP}.nro" --upload-file "${app_path}/${APP}.nro"
nro_name="$(jq -r '.productName // .name' "${app_path}/package.json")"
curl --netrc "ftp://192.168.86.115:5000/switch/" --upload-file "${app_path}/${nro_name}.nro"
fi
27 changes: 27 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# deps
/node_modules

# generated content
.map.ts
.contentlayer

# test & build
/coverage
/.next/
/out/
/build
*.tsbuildinfo

# misc
.DS_Store
*.pem
/.pnp
.pnp.js
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# others
.env*.local
.vercel
next-env.d.ts
26 changes: 26 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# docs

This is a Next.js application generated with
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).

Run development server:

```bash
npm run dev
# or
pnpm dev
# or
yarn dev
```

Open http://localhost:3000 with your browser to see the result.

## Learn More

To learn more about Next.js and Fumadocs, take a look at the following
resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs
11 changes: 11 additions & 0 deletions docs/app/api/search/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { getPages } from '@/app/source';
import { createSearchAPI } from 'fumadocs-core/search/server';

export const { GET } = createSearchAPI('advanced', {
indexes: getPages().map((page) => ({
title: page.data.title,
structuredData: page.data.exports.structuredData,
id: page.url,
url: page.url,
})),
});
14 changes: 14 additions & 0 deletions docs/app/discord.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { SVGProps } from 'react';
const Discord = (props: SVGProps<SVGSVGElement>) => (
<svg
xmlns='http://www.w3.org/2000/svg'
width='1em'
height='1em'
preserveAspectRatio='xMidYMid'
viewBox='0 -28.5 256 256'
{...props}
>
<path d='M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z' />
</svg>
);
export default Discord;
47 changes: 47 additions & 0 deletions docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { getPage, getPages } from '@/app/source';
import type { Metadata } from 'next';
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
import { notFound } from 'next/navigation';

export default async function Page({
params,
}: {
params: { slug?: string[] };
}) {
const page = getPage(params.slug);

if (page == null) {
notFound();
}

const MDX = page.data.exports.default;

return (
<DocsPage toc={page.data.exports.toc}>
<DocsBody>
<h1>{page.data.title}</h1>
<p className='mb-8 text-lg text-muted-foreground'>
{page.data.description}
</p>
<MDX />
</DocsBody>
</DocsPage>
);
}

export async function generateStaticParams() {
return getPages().map((page) => ({
slug: page.slugs,
}));
}

export function generateMetadata({ params }: { params: { slug?: string[] } }) {
const page = getPage(params.slug);

if (page == null) notFound();

return {
title: page.data.title,
description: page.data.description,
} satisfies Metadata;
}
24 changes: 24 additions & 0 deletions docs/app/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { pageTree } from '../source';
import { DocsLayout } from 'fumadocs-ui/layout';
import Logo from '@/app/logo';
import type { ReactNode } from 'react';

export default function RootDocsLayout({ children }: { children: ReactNode }) {
return (
<DocsLayout
tree={pageTree}
githubUrl={'https://github.com/TooTallNate/nx.js'}
nav={{
transparentMode: 'top',
title: (
<>
<Logo className='w-5 md:w-6 drop-shadow' /> nx.js
</>
),
//children: ['a'],
}}
>
{children}
</DocsLayout>
);
}
41 changes: 41 additions & 0 deletions docs/app/gbatemp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import type { SVGProps } from 'react';

const GbaTemp = (props: SVGProps<SVGSVGElement>) => (
<svg
xmlns='http://www.w3.org/2000/svg'
viewBox='0 0 118.06 113.06'
width='1em'
height='1em'
{...props}
>
<style>{'.st1{fill:#ff9600}.st2{fill:#fff}'}</style>
<g id='tempy_x5F_by_x5F_shaunj66'>
<path
id='head_1_'
fill='#f2f2f2'
d='M98.19 6c.57 0 13.87.03 13.87 2.42l-3.08 2.85-3.07 2.83a81.372 81.372 0 0 0-15.5 21.7c9.34-3.12 14.76-4.62 16.54-4.62.03 8.91-5.11 16.7-7.3 20.02-.61.92-1.04 1.58-.98 1.69l4.18-.23 3.86-.23c.03 2.52-2.68 8.8-5.77 13.46 1.17 2.3 1.79 5.02 1.79 7.83 0 7.83-4.8 14.2-10.71 14.2-.76 0-1.52-.11-2.26-.32C83.7 99.41 70 107.05 54.9 107.05c-15.28 0-29.04-7.76-35.05-19.78-.99.44-2.06.65-3.15.65-5.89 0-10.7-6.37-10.7-14.19 0-4.71 1.75-9.1 4.69-11.75C7.25 52.93 6 42.01 6 36.88l3.19 2.1 6.29 4.25c-.04-10.4 4.26-25.79 12.23-33.77l.52 1.9c.72 6.33 1.84 12.38 3.34 18.01C50.03 14.51 78.2 7.51 96.7 6.03c.23-.02.76-.03 1.49-.03m0-6c-1.32 0-1.8.04-1.96.05-16.97 1.36-41.76 7.2-60.77 19.21-.51-2.78-.93-5.64-1.26-8.57a5.7 5.7 0 0 0-.17-.9l-.52-1.9a6 6 0 0 0-5.79-4.42c-1.57 0-3.11.62-4.25 1.76-6.72 6.73-11.09 17.5-12.95 27.44l-1.21-.8a5.986 5.986 0 0 0-6.14-.27A5.966 5.966 0 0 0 0 36.88C0 41.17.85 51.1 3.9 60.7 1.42 64.3 0 68.92 0 73.73c0 11.14 7.5 20.2 16.71 20.2h.09c7.84 11.75 22.3 19.13 38.12 19.13 15.8 0 30.31-7.41 38.12-19.17 8.75-.63 15.71-9.43 15.71-20.16 0-2.51-.38-4.97-1.1-7.26 2.47-4.32 5.12-10.23 5.08-14.09a6.009 6.009 0 0 0-3.64-5.45c2.06-4.28 3.9-9.72 3.88-15.76a5.994 5.994 0 0 0-6-5.98c-.7 0-1.63.08-3.15.39 1.93-2.5 4.02-4.89 6.27-7.15l2.98-2.75 3.08-2.86a6.025 6.025 0 0 0 1.92-4.4c0-1.63-.64-5.59-6.52-7.18-1.47-.4-3.32-.69-5.66-.9-3.65-.33-7.3-.34-7.7-.34z'
/>
<g id='buttons'>
<path
d='M73.01 87.68c-2.81 0-5.1-2.28-5.1-5.09s2.29-5.09 5.1-5.09 5.1 2.29 5.1 5.09-2.28 5.09-5.1 5.09zm7.67-7.66c-2.81 0-5.1-2.29-5.1-5.09 0-2.81 2.29-5.09 5.1-5.09 2.81 0 5.1 2.29 5.1 5.09 0 2.81-2.29 5.09-5.1 5.09zm-15.33 0c-2.81 0-5.1-2.29-5.1-5.09 0-2.81 2.29-5.09 5.1-5.09s5.1 2.29 5.1 5.09c0 2.81-2.29 5.09-5.1 5.09zm7.77-7.76c-2.81 0-5.1-2.29-5.1-5.09 0-2.81 2.29-5.09 5.1-5.09s5.1 2.29 5.1 5.09c0 2.81-2.29 5.09-5.1 5.09z'
className='st1'
/>
<path
d='M73.12 63.57a3.596 3.596 0 1 1 0 7.19 3.596 3.596 0 1 1 0-7.19m7.56 7.76a3.596 3.596 0 1 1 0 7.19 3.596 3.596 0 1 1 0-7.19m-15.33 0a3.596 3.596 0 1 1 0 7.19 3.596 3.596 0 1 1 0-7.19m7.66 7.66a3.59 3.59 0 1 1 0 7.18c-1.99 0-3.6-1.61-3.6-3.59 0-1.98 1.62-3.59 3.6-3.59m.11-18.42c-3.64 0-6.6 2.96-6.6 6.59 0 .44.04.88.13 1.3-.42-.08-.86-.13-1.3-.13-3.64 0-6.6 2.96-6.6 6.59 0 3.64 2.96 6.6 6.6 6.6.4 0 .79-.04 1.17-.1-.07.38-.1.77-.1 1.17 0 3.64 2.96 6.59 6.6 6.59 3.64 0 6.6-2.96 6.6-6.59 0-.4-.04-.79-.1-1.17.38.07.77.1 1.17.1 3.64 0 6.6-2.96 6.6-6.6 0-3.64-2.96-6.59-6.6-6.59-.37 0-.73.03-1.09.09.08-.41.12-.83.12-1.26 0-3.63-2.96-6.59-6.6-6.59zM71.84 76.1c.07-.38.1-.77.1-1.17 0-.44-.04-.88-.13-1.29.42.08.86.13 1.3.13.37 0 .73-.03 1.08-.09-.08.41-.12.83-.12 1.25 0 .4.04.79.1 1.17-.38-.07-.77-.1-1.17-.1-.39-.01-.78.03-1.16.1z'
className='st2'
/>
</g>
<g id='dpad'>
<path
d='M36.83 87.69c-1.79 0-3.25-1.59-3.25-3.55v-4.07H29.3c-1.96 0-3.55-1.46-3.55-3.25v-3.33c0-1.79 1.59-3.25 3.55-3.25h4.28v-4.27c0-1.96 1.46-3.55 3.25-3.55h3.33c1.79 0 3.25 1.59 3.25 3.55v4.27h4.08c1.96 0 3.56 1.46 3.56 3.25v3.33c0 1.79-1.6 3.25-3.56 3.25h-4.08v4.07c0 1.96-1.46 3.55-3.25 3.55h-3.33z'
className='st1'
/>
<path
d='M40.16 63.92c.97 0 1.75.92 1.75 2.05v5.77h5.58c1.14 0 2.06.79 2.06 1.75v3.33c0 .97-.92 1.75-2.06 1.75h-5.58v5.57c0 1.13-.78 2.05-1.75 2.05h-3.33c-.97 0-1.75-.92-1.75-2.05v-5.57H29.3c-1.13 0-2.05-.78-2.05-1.75v-3.33c0-.96.92-1.75 2.05-1.75h5.78v-5.77c0-1.13.78-2.05 1.75-2.05h3.33m0-3h-3.33c-2.62 0-4.75 2.27-4.75 5.05v2.77H29.3c-2.78 0-5.05 2.13-5.05 4.75v3.33c0 2.62 2.27 4.75 5.05 4.75h2.78v2.57c0 2.78 2.13 5.05 4.75 5.05h3.33c2.62 0 4.75-2.27 4.75-5.05v-2.57h2.58c2.79 0 5.06-2.13 5.06-4.75v-3.33c0-2.62-2.27-4.75-5.06-4.75h-2.58v-2.77c0-2.79-2.13-5.05-4.75-5.05z'
className='st2'
/>
</g>
</g>
</svg>
);
export default GbaTemp;
19 changes: 19 additions & 0 deletions docs/app/github.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { SVGProps } from 'react';

const GitHub = (props: SVGProps<SVGSVGElement>) => (
<svg
xmlns='http://www.w3.org/2000/svg'
width='1em'
height='1em'
viewBox='0 0 100 100'
{...props}
>
<path
fillRule='evenodd'
d='M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z'
clipRule='evenodd'
/>
</svg>
);

export default GitHub;
3 changes: 3 additions & 0 deletions docs/app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
17 changes: 17 additions & 0 deletions docs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import './global.css';
import { RootProvider } from 'fumadocs-ui/provider';
import { GeistSans } from 'geist/font/sans';
import { GeistMono } from 'geist/font/mono';
import { Analytics } from '@vercel/analytics/react';
import type { ReactNode } from 'react';

export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang='en' className={`${GeistSans.className}`}>
<body>
<RootProvider>{children}</RootProvider>
<Analytics />
</body>
</html>
);
}
26 changes: 26 additions & 0 deletions docs/app/logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default function Logo(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
viewBox='0 0 223 223'
fill='none'
xmlns='http://www.w3.org/2000/svg'
{...props}
>
<path
d='M47.5542 0.735948C25.4282 4.69195 7.62623 21.068 2.01423 42.596C-0.00976612 50.37 -0.147766 54.924 0.0822339 115.23C0.220234 170.614 0.266234 171.902 1.18623 176.18C6.29223 199.226 22.6682 215.648 45.9442 221.076C48.9802 221.766 52.8442 221.904 77.7302 222.042C103.49 222.226 106.158 222.18 106.848 221.49C107.538 220.8 107.584 211.922 107.584 111.274C107.584 36.662 107.446 1.51795 107.124 0.873948C106.664 0.0459479 105.882 -5.21126e-05 78.9262 0.0459479C57.0302 0.0919479 50.4522 0.229948 47.5542 0.735948ZM89.1842 111.136V204.332L70.4622 204.102C53.2122 203.918 51.3722 203.826 47.9222 202.952C33.1102 199.134 22.1162 187.726 19.0342 172.868C18.0222 168.222 18.0222 53.774 18.9882 49.22C21.7482 36.294 30.7182 25.576 42.8162 20.7459C48.8882 18.3079 51.6942 18.0319 71.3822 17.9859L89.1842 17.9399V111.136Z'
fill='#D4B830'
/>
<path
d='M51.5102 46.046C48.6122 46.598 44.1962 48.806 41.8502 50.876C37.0202 55.062 34.6282 60.996 34.9962 67.988C35.1802 71.622 35.4102 72.588 36.8822 75.532C39.0442 79.994 42.3102 83.26 46.7722 85.468C49.8542 86.986 50.6362 87.17 54.6382 87.308C58.2722 87.446 59.5602 87.308 61.9982 86.48C71.9802 83.122 78.0062 73.416 76.3042 63.48C74.3262 51.658 63.1022 43.746 51.5102 46.046Z'
fill='#D4B830'
/>
<rect x='140' y='157' width='61' height='47.3' fill='#2e2f2c' />
<path
fillRule='evenodd'
clipRule='evenodd'
d='M129.664 111.136C129.664 50.324 129.802 0.460001 129.986 0.322001C130.124 0.138001 139.324 0 150.364 0C166.372 0 171.34 0.138001 174.56 0.690001C198.572 4.83 216.834 22.908 221.388 46.874C222.032 50.232 222.124 58.098 222.124 110.86C222.124 167.226 222.191 173.856 220.414 179.948C220.107 181 219.745 182.036 219.318 183.31C218.536 185.564 217.018 189.198 215.868 191.36C206.898 208.242 190.43 219.604 171.754 221.72C167.338 222.18 131.642 222.364 130.4 221.904C129.71 221.628 129.664 211.462 129.664 111.136ZM194.57 114.862C192.178 107.87 186.29 102.396 179.114 100.51C167.614 97.52 155.654 104.144 152.204 115.414C151.054 119.002 151.008 124.89 152.02 128.386C155.378 139.794 167.614 146.74 179.114 143.75C186.198 141.864 191.718 136.758 194.524 129.49C196.042 125.534 196.088 119.186 194.57 114.862ZM186.057 180.072C193.021 182.9 195.372 185.932 195.95 189.543C196.506 192.649 195.815 194.666 195.71 194.967C193.141 203.768 178.816 204.054 173.092 198.239C172.918 198.042 172.754 197.859 172.597 197.684C171.665 196.646 171.02 195.928 170.403 194.575C171.944 193.688 172.704 193.249 173.464 192.81C174.204 192.383 174.944 191.954 176.405 191.107C178.012 193.582 179.5 194.944 182.174 195.501C185.802 195.944 189.453 194.696 188.634 190.837C188.146 189.009 185.727 187.983 182.906 186.787C180.861 185.92 178.605 184.964 176.72 183.547C172.168 180.486 171.101 173.046 174.842 168.796C176.089 167.223 178.215 166.05 180.446 165.486C180.83 165.437 181.217 165.387 181.603 165.336C181.994 165.285 182.385 165.234 182.775 165.185C187.244 165.095 190.039 166.276 192.089 168.57C192.66 169.149 193.126 169.774 193.997 171.128C193.506 171.441 193.117 171.689 192.778 171.905C191.474 172.736 190.92 173.088 188.213 174.844C187.485 173.272 186.275 172.286 184.998 171.857C183.015 171.255 180.514 171.91 179.995 174.009C179.815 174.656 179.853 175.257 180.138 176.326C180.789 177.811 182.679 178.617 184.659 179.46C185.125 179.659 185.596 179.86 186.057 180.072ZM158.962 165.651H166.354C166.354 167.922 166.358 170.191 166.362 172.457C166.371 176.986 166.379 181.508 166.354 186.03C166.356 186.644 166.366 187.249 166.376 187.845C166.431 191.286 166.481 194.409 165.047 197.058C163.883 199.427 161.659 200.984 159.083 201.737C155.124 202.647 151.338 202.128 148.521 200.435C146.636 199.277 145.163 197.494 144.164 195.44C145.166 194.828 146.167 194.213 147.167 193.598C148.169 192.983 149.17 192.368 150.174 191.754C150.221 191.774 150.351 192.003 150.527 192.313C150.549 192.352 150.571 192.391 150.594 192.431C151.361 193.718 152.022 194.628 153.321 195.267C154.598 195.704 157.4 195.982 158.482 193.733C159.009 192.821 158.982 190.262 158.949 187.197C158.941 186.421 158.932 185.612 158.932 184.788C158.932 181.591 158.94 178.406 158.947 175.22C158.955 172.034 158.962 168.848 158.962 165.651Z'
fill='#F0DB4F'
/>
</svg>
);
}
49 changes: 49 additions & 0 deletions docs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import Link from 'next/link';
import Logo from './logo';
import Discord from './discord';
import GitHub from './github';
import GbaTemp from './gbatemp';

export default function HomePage() {
return (
<main className='flex h-screen flex-col justify-center items-center text-center gap-6'>
<Logo className='w-64' />
<div className='flex flex-col gap-2'>
<h1 className='text-3xl font-bold'>nx.js</h1>
<h2 className='text-lg'>
JavaScript runtime for Nintendo Switch homebrew applications
</h2>
</div>
<p className='text-muted-foreground'>
Go to{' '}
<Link href='/docs' className='text-foreground font-semibold underline'>
/docs
</Link>{' '}
to read the documentation.
</p>
<div className='flex text-5xl gap-8'>
<a
href='https://github.com/TooTallNate/nx.js'
target='_blank'
title='GitHub Repository'
>
<GitHub className='fill-white hover:drop-shadow-[0_0_8px_rgba(255,255,255,0.5)] transition-all' />
</a>
<a
href='https://discord.gg/MMmn73nsGz'
target='_blank'
title='Discord Server'
>
<Discord className='fill-white hover:drop-shadow-[0_0_8px_rgba(255,255,255,0.4)] transition-all' />
</a>
<a
href='https://gbatemp.net/threads/nx-js-javascript-runtime-for-nintendo-switch-homebrew-applications.639171/'
target='_blank'
title='GBATemp Thread'
>
<GbaTemp className='hover:drop-shadow-[0_0_8px_rgba(255,255,255,0.6)] transition-all' />
</a>
</div>
</main>
);
}
9 changes: 9 additions & 0 deletions docs/app/source.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { map } from '@/.map';
import { createMDXSource } from 'fumadocs-mdx';
import { loader } from 'fumadocs-core/source';

export const { getPage, getPages, pageTree } = loader({
baseUrl: '/docs',
rootDir: 'docs',
source: createMDXSource(map),
});
Loading