Skip to content

Commit 55e844c

Browse files
committed
chore: update .gitignore to include new source directory and remove deprecated source files
1 parent 0ae0e60 commit 55e844c

File tree

4 files changed

+10
-30
lines changed

4 files changed

+10
-30
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ next-env.d.ts
3939
.cursor
4040

4141
# contentlayer
42-
.contentlayer
42+
.contentlayer
43+
44+
# source
45+
.source

.source/index.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

.source/source.config.mjs

Lines changed: 0 additions & 10 deletions
This file was deleted.

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { source } from '@/lib/source';
2-
import { DocsPage, DocsBody } from 'fumadocs-ui/page';
3-
import { notFound } from 'next/navigation';
4-
import type { Metadata } from 'next';
5-
import { getMDXComponents } from '@/mdx-components';
1+
import { source } from "@/lib/source";
2+
import { DocsPage, DocsBody } from "fumadocs-ui/page";
3+
import { notFound } from "next/navigation";
4+
import type { Metadata } from "next";
5+
import { getMDXComponents } from "@/mdx-components";
66

77
interface Param {
88
params: Promise<{
@@ -41,9 +41,8 @@ export async function generateMetadata({ params }: Param): Promise<Metadata> {
4141
const page = source.getPage(slug);
4242
if (page == null) {
4343
notFound();
44-
return;
4544
}
46-
45+
4746
return {
4847
title: page.data.title,
4948
description: page.data.description,

0 commit comments

Comments
 (0)