- Hello World
-
- You can open{" "}
-
- /docs
- {" "}
- and see the documentation.
-
-
- );
-}
diff --git a/src/lib/source.ts b/src/lib/source.ts
index 5d7dac1..5396227 100644
--- a/src/lib/source.ts
+++ b/src/lib/source.ts
@@ -1,7 +1,21 @@
-import { docs } from "@/.source";
import { loader } from "fumadocs-core/source";
import { icons } from "lucide-react";
+import { defineDocs } from 'fumadocs-mdx/macro';
import { createElement } from "react";
+import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
+
+const docs = defineDocs({
+ dir: 'content/docs',
+ docs: {
+ schema: pageSchema,
+ postprocess: {
+ includeProcessedMarkdown: true,
+ },
+ },
+ meta: {
+ schema: metaSchema,
+ },
+});
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
export const source = loader({
diff --git a/tsconfig.json b/tsconfig.json
index 504b291..c912a5d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,5 @@
{
"compilerOptions": {
- "baseUrl": ".",
"target": "ESNext",
"lib": [
"dom",
@@ -17,7 +16,7 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
- "jsx": "preserve",
+ "jsx": "react-jsx",
"incremental": true,
"paths": {
"@/.source": [
@@ -37,9 +36,10 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
- ".next/types/**/*.ts"
+ ".next/types/**/*.ts",
+ ".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
-}
\ No newline at end of file
+}