-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a7e7b2
commit c3f1225
Showing
133 changed files
with
11,635 additions
and
11,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
postcss.config.js | ||
tailwind.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
.idea/ | ||
.next/ | ||
.open-next/ | ||
.sst/ | ||
node_modules | ||
# deps | ||
/node_modules | ||
|
||
# generated content | ||
.contentlayer | ||
.content-collections | ||
.source | ||
|
||
# test & build | ||
/coverage | ||
/.next/ | ||
/out/ | ||
/build | ||
*.tsbuildinfo | ||
|
||
# misc | ||
.DS_Store | ||
.env* | ||
.pnpm-debug.log* | ||
cdk.context.json | ||
*.pem | ||
/.pnp | ||
.pnp.js | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# others | ||
.env*.local | ||
.vercel | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
# ICSSC Projects Documentation | ||
# my-app | ||
|
||
## Powered by | ||
This is a Next.js application generated with | ||
[Create Fumadocs](https://github.com/fuma-nama/fumadocs). | ||
|
||
- Nextra | ||
- SST | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { HomeLayout } from "fumadocs-ui/home-layout"; | ||
import type { ReactNode } from "react"; | ||
|
||
import { baseOptions } from "../layout.config"; | ||
|
||
export default function Layout({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}): React.ReactElement { | ||
return <HomeLayout {...baseOptions}>{children}</HomeLayout>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Link from "next/link"; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<main className="flex h-screen flex-col justify-center text-center"> | ||
<h1 className="mb-4 text-2xl font-bold">Hello World</h1> | ||
<p className="text-fd-muted-foreground"> | ||
You can open{" "} | ||
<Link | ||
href="/docs" | ||
className="text-fd-foreground font-semibold underline" | ||
> | ||
/docs | ||
</Link>{" "} | ||
and see the documentation. | ||
</p> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { createSearchAPI } from "fumadocs-core/search/server"; | ||
|
||
import { source } from "@/app/source"; | ||
|
||
export const { GET } = createSearchAPI("advanced", { | ||
indexes: source.getPages().map((page) => ({ | ||
title: page.data.title, | ||
description: page.data.description, | ||
structuredData: page.data.structuredData, | ||
id: page.url, | ||
url: page.url, | ||
})), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import defaultMdxComponents from "fumadocs-ui/mdx"; | ||
import { | ||
DocsPage, | ||
DocsBody, | ||
DocsDescription, | ||
DocsTitle, | ||
} from "fumadocs-ui/page"; | ||
import type { Metadata } from "next"; | ||
import { notFound } from "next/navigation"; | ||
|
||
import { source } from "@/app/source"; | ||
|
||
export default async function Page({ | ||
params, | ||
}: { | ||
params: { slug?: string[] }; | ||
}) { | ||
const page = source.getPage(params.slug); | ||
|
||
if (!page) notFound(); | ||
|
||
const MDX = page.data.body; | ||
|
||
return ( | ||
<DocsPage toc={page.data.toc} full={page.data.full}> | ||
<DocsTitle>{page.data.title}</DocsTitle> | ||
<DocsDescription>{page.data.description}</DocsDescription> | ||
<DocsBody> | ||
<MDX components={{ ...defaultMdxComponents }} /> | ||
</DocsBody> | ||
</DocsPage> | ||
); | ||
} | ||
|
||
export async function generateStaticParams() { | ||
return source.generateParams(); | ||
} | ||
|
||
export function generateMetadata({ params }: { params: { slug?: string[] } }) { | ||
const page = source.getPage(params.slug); | ||
if (!page) notFound(); | ||
|
||
return { | ||
title: page.data.title, | ||
description: page.data.description, | ||
} satisfies Metadata; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { RootToggle } from "fumadocs-ui/components/layout/root-toggle"; | ||
import { DocsLayout } from "fumadocs-ui/layout"; | ||
import { BookOpenText, Brush, ScrollText } from "lucide-react"; | ||
import type { ReactNode } from "react"; | ||
|
||
import { baseOptions } from "../layout.config"; | ||
|
||
import { source } from "@/app/source"; | ||
|
||
export default function Layout({ children }: { children: ReactNode }) { | ||
return ( | ||
<DocsLayout | ||
sidebar={{ | ||
banner: ( | ||
<RootToggle | ||
options={[ | ||
{ | ||
icon: <Brush />, | ||
title: "Brand Guide", | ||
description: "Logos, colors, topography, guidelines", | ||
url: "/docs/brand", | ||
}, | ||
{ | ||
icon: <BookOpenText />, | ||
title: "Developer Docs", | ||
description: "Public facing developer projects", | ||
url: "/docs/developer", | ||
}, | ||
{ | ||
icon: <ScrollText />, | ||
title: "Contributor Docs", | ||
description: "Internal documentation and design reasoning", | ||
url: "/docs/contributor", | ||
}, | ||
]} | ||
/> | ||
), | ||
}} | ||
tree={source.pageTree} | ||
{...baseOptions} | ||
> | ||
{children} | ||
</DocsLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { type HomeLayoutProps } from "fumadocs-ui/home-layout"; | ||
|
||
import { ICSSC } from "@/components/logos/ICSSC"; | ||
|
||
/** | ||
* Shared layout configurations | ||
* | ||
* you can configure layouts individually from: | ||
* Home Layout: app/(home)/layout.tsx | ||
* Docs Layout: app/docs/layout.tsx | ||
*/ | ||
export const baseOptions: HomeLayoutProps = { | ||
nav: { | ||
title: ( | ||
<> | ||
<ICSSC /> | ||
<span className="font-medium [header_&]:text-[15px]"> | ||
ICS Student Council | ||
</span> | ||
</> | ||
), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import "./global.css"; | ||
import { RootProvider } from "fumadocs-ui/provider"; | ||
import { Inter } from "next/font/google"; | ||
import type { ReactNode } from "react"; | ||
|
||
const inter = Inter({ | ||
subsets: ["latin"], | ||
}); | ||
|
||
export default function Layout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en" className={inter.className} suppressHydrationWarning> | ||
<body> | ||
<RootProvider>{children}</RootProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { loader } from "fumadocs-core/source"; | ||
import { createMDXSource } from "fumadocs-mdx"; | ||
import { icons } from "lucide-react"; | ||
import { createElement } from "react"; | ||
|
||
import { docs, meta } from "@/.source"; | ||
import logos from "@/components/logos"; | ||
import { IconContainer } from "@/components/ui/IconContainer"; | ||
|
||
export const source = loader({ | ||
baseUrl: "/docs", | ||
source: createMDXSource(docs, meta), | ||
icon(icon) { | ||
if (!icon) { | ||
// You may set a default icon | ||
return; | ||
} | ||
|
||
if (icon in logos) { | ||
return createElement(IconContainer, { | ||
icon: logos[icon as keyof typeof logos], | ||
}); | ||
} | ||
if (icon in icons) { | ||
return createElement(IconContainer, { | ||
icon: icons[icon as keyof typeof icons], | ||
}); | ||
} | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
export { default as AntAlmanac } from "./AntAlmanac"; | ||
export { default as PeterPortal } from "./PeterPortal"; | ||
export { default as Zotistics } from "./Zotistics"; | ||
import { default as AntAlmanac } from "./AntAlmanac"; | ||
import { default as PeterPortal } from "./PeterPortal"; | ||
import { default as Zotistics } from "./Zotistics"; | ||
|
||
const logos = { AntAlmanac, PeterPortal, Zotistics }; | ||
|
||
export default logos; |
Oops, something went wrong.