Skip to content

Commit 815de41

Browse files
committed
feat: various updates and modifications
1 parent 1322749 commit 815de41

7 files changed

Lines changed: 59 additions & 54 deletions

File tree

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ helm-charts
1212
.env
1313
.editorconfig
1414
.idea
15-
coverage*
15+
coverage*
16+
.source
17+
.next

bun.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/source.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { docs } from '@/.source';
1+
import { docs } from 'fumadocs-mdx:collections/server';
22
import { loader } from 'fumadocs-core/source';
33

4-
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
54
export const source = loader({
6-
// it assigns a URL to your pages
75
baseUrl: '/docs',
86
source: docs.toFumadocsSource(),
9-
});
7+
});

next.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ const withMDX = createMDX();
66
const config = {
77
reactStrictMode: true,
88
images: {
9-
domains: ["img.shields.io", "cdn.discordapp.com", "cdn.undefinedcreations.com", "avatars.githubusercontent.com"],
9+
remotePatterns: [
10+
{ protocol: "https", hostname: "img.shields.io" },
11+
{ protocol: "https", hostname: "cdn.discordapp.com" },
12+
{ protocol: "https", hostname: "cdn.undefinedcreations.com" },
13+
{ protocol: "https", hostname: "avatars.githubusercontent.com" }
14+
],
1015
dangerouslyAllowSVG: true
11-
},
16+
}
1217
};
1318

1419
export default withMDX(config);

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"dependencies": {
1212
"@types/prismjs": "^1.26.5",
1313
"framer-motion": "^12.23.26",
14-
"fumadocs-core": "16.2.4",
15-
"fumadocs-mdx": "14.1.0",
14+
"fumadocs-core": "^16.2.4",
15+
"fumadocs-mdx": "^14.1.0",
1616
"fumadocs-ui": "16.2.4",
1717
"hls": "^0.0.1",
1818
"hls.js": "^1.6.15",
1919
"lucide-react": "^0.559.0",
20-
"next": "^16.0.8",
20+
"next": "^16.0.10",
2121
"prismjs": "^1.30.0",
22-
"react": "^19.2.1",
23-
"react-dom": "^19.2.1",
22+
"react": "^19.2.3",
23+
"react-dom": "^19.2.3",
2424
"react-icons": "^5.5.0",
2525
"react-syntax-highlighter": "^16.1.0"
2626
},

source.config.ts

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
1-
import {
2-
defineConfig,
3-
defineDocs,
4-
frontmatterSchema,
5-
metaSchema,
6-
} from 'fumadocs-mdx/config';
1+
import { defineDocs, defineConfig } from 'fumadocs-mdx/config';
72

8-
// You can customise Zod schemas for frontmatter and `meta.json` here
9-
// see https://fumadocs.vercel.app/docs/mdx/collections#define-docs
103
export const docs = defineDocs({
11-
docs: {
12-
schema: frontmatterSchema,
13-
},
14-
meta: {
15-
schema: metaSchema,
16-
},
4+
dir: 'content/docs',
175
});
186

19-
export default defineConfig({
20-
mdxOptions: {
21-
// MDX options
22-
},
23-
});
7+
export default defineConfig();

tsconfig.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"target": "ESNext",
5-
"lib": ["dom", "dom.iterable", "esnext"],
5+
"lib": [
6+
"dom",
7+
"dom.iterable",
8+
"esnext"
9+
],
610
"allowJs": true,
711
"skipLibCheck": true,
812
"strict": true,
@@ -13,18 +17,30 @@
1317
"moduleResolution": "bundler",
1418
"resolveJsonModule": true,
1519
"isolatedModules": true,
16-
"jsx": "preserve",
20+
"jsx": "react-jsx",
1721
"incremental": true,
1822
"paths": {
19-
"@/.source": ["./.source/index.ts"],
20-
"@/*": ["./*"]
23+
"fumadocs-mdx:collections/*": [
24+
".source/*"
25+
],
26+
"@/*": [
27+
"./*"
28+
]
2129
},
2230
"plugins": [
2331
{
2432
"name": "next"
2533
}
2634
]
2735
},
28-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
29-
"exclude": ["node_modules"]
36+
"include": [
37+
"next-env.d.ts",
38+
"**/*.ts",
39+
"**/*.tsx",
40+
".next/types/**/*.ts",
41+
".next/dev/types/**/*.ts"
42+
],
43+
"exclude": [
44+
"node_modules"
45+
]
3046
}

0 commit comments

Comments
 (0)