-
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
Showing
24 changed files
with
710 additions
and
439 deletions.
There are no files selected for viewing
File renamed without changes.
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
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,16 +1,18 @@ | ||
--- | ||
title: Introduction | ||
description: Quickly generate pre-built templates with database integration and customizable styles. Start your projects faster and focus on building amazing applications! | ||
--- | ||
import { File, Folder, Files } from 'fumadocs-ui/components/files'; | ||
|
||
CodeGen is a universal create-app CLI designed to swiftly generate production-ready templates. It seamlessly integrates databases with various ORMs and allows full customization of project styles. With CodeGen, you can expedite your project setup, enabling you to concentrate on developing outstanding applications. Streamline your development process, minimize repetitive tasks, and implement best practices from the start. | ||
|
||
## Why CodeGen?. | ||
## Why CodeGen? | ||
|
||
As a developer, we have a lot to take care of, when starting a new project there are many things to configure and setup it's boring and time-consuming. many frameworks, languages, styling, databases, or other packages. Solution? | ||
|
||
**CodeGen** to automate and streamline all this setup and config 🚀. | ||
|
||
## Features | ||
CodeGen is a universal create-app CLI to quickly genrate production level TypeScript/JavaScript projects. Here are the some of the features: | ||
|
||
<Features/> | ||
|
||
|
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,5 +1,5 @@ | ||
{ | ||
"name": "Guid", | ||
"root": true, | ||
"pages": ["introduction", "--- Guide ---", "installation", "cli", "templates"] | ||
"pages": ["---Getting Started---","introduction", "--- Guide ---", "installation", "cli", "templates"] | ||
} |
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
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,15 +1,12 @@ | ||
import { remarkInstall } from 'fumadocs-docgen'; | ||
import { defineDocs, defineConfig } from 'fumadocs-mdx/config'; | ||
import { remarkInstall } from "fumadocs-docgen"; | ||
import { defineDocs, defineConfig } from "fumadocs-mdx/config"; | ||
|
||
export const { docs, meta } = defineDocs(); | ||
|
||
export default defineConfig({ | ||
generateManifest: true, | ||
lastModifiedTime: 'git', | ||
mdxOptions: { | ||
remarkPlugins: [ | ||
[remarkInstall, {persist: { id: 'package-manager'}}] | ||
] | ||
} | ||
|
||
}) | ||
generateManifest: true, | ||
lastModifiedTime: "git", | ||
mdxOptions: { | ||
remarkPlugins: [[remarkInstall, { persist: { id: "package-manager" } }]], | ||
}, | ||
}); |
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,56 +1,84 @@ | ||
import { source } from '@/src/app/source'; | ||
import type { Metadata } from 'next'; | ||
import { source } from "@/src/app/source"; | ||
import type { Metadata } from "next"; | ||
import { | ||
DocsPage, | ||
DocsBody, | ||
DocsTitle, | ||
DocsDescription, | ||
} from 'fumadocs-ui/page'; | ||
import { notFound } from 'next/navigation'; | ||
import defaultMdxComponents from 'fumadocs-ui/mdx'; | ||
import { Tab, Tabs } from 'fumadocs-ui/components/tabs'; | ||
|
||
} from "fumadocs-ui/page"; | ||
import { notFound } from "next/navigation"; | ||
import defaultMdxComponents from "fumadocs-ui/mdx"; | ||
import { Tab, Tabs } from "fumadocs-ui/components/tabs"; | ||
import { Features } from "@/src/components/block/features"; | ||
import { Step, Steps } from "fumadocs-ui/components/steps"; | ||
|
||
export default async function Page({ | ||
params, | ||
}: { | ||
params: { slug?: string[] }; | ||
}) { | ||
console.log(params.slug); | ||
|
||
const page = source.getPage(params.slug); | ||
|
||
console.log(page); | ||
|
||
if (!page) notFound(); | ||
|
||
const MDX = page.data.body; | ||
|
||
return ( | ||
<DocsPage | ||
toc={page.data.toc} | ||
tableOfContent={{style: 'clerk'}} | ||
tableOfContentPopover={{style: 'clerk'}} | ||
<DocsPage | ||
toc={page.data.toc} | ||
tableOfContent={{ | ||
style: "clerk", | ||
}} | ||
tableOfContentPopover={{ style: "clerk" }} | ||
full={page.data.full} | ||
editOnGithub={{ | ||
owner: "Leo5661", | ||
repo: "codegen", | ||
path: "apps/docs/content/docs", | ||
}} | ||
> | ||
<DocsTitle>{page.data.title}</DocsTitle> | ||
<DocsDescription>{page.data.description}</DocsDescription> | ||
<DocsBody> | ||
<MDX components={{Tab, Tabs, ...defaultMdxComponents }} /> | ||
<MDX | ||
components={{ | ||
...defaultMdxComponents, | ||
Step, | ||
Steps, | ||
Tab, | ||
Tabs, | ||
Features, | ||
}} | ||
/> | ||
</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(); | ||
|
||
|
||
const { title, description } = page.data; | ||
const pageSlug = page.file.path; | ||
|
||
return { | ||
title: page.data.title, | ||
title, | ||
description, | ||
openGraph: { | ||
title, | ||
description, | ||
type: "website", | ||
url: `https://codegen-beta.vercel.app/docs/${pageSlug}`, | ||
}, | ||
twitter: { | ||
card: "summary", | ||
title, | ||
description, | ||
}, | ||
} satisfies Metadata; | ||
} | ||
} |
Oops, something went wrong.