create-fumadocs-app 15.8.4 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-LOBB3VPH.js → chunk-KVKS2K3W.js} +18 -18
- package/dist/create-app.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/template/+next+fuma-docs-mdx/tsconfig.json +1 -1
- package/template/react-router/app/docs/page.tsx +2 -2
- package/template/react-router/app/lib/source.ts +1 -1
- package/template/react-router/app/routes.ts +1 -1
- package/template/react-router/example.gitignore +2 -0
- package/template/react-router/package.json +10 -10
- package/template/react-router/tsconfig.json +2 -1
- package/template/tanstack-start/example.gitignore +2 -1
- package/template/tanstack-start/package.json +9 -9
- package/template/tanstack-start/source.config.ts +1 -1
- package/template/tanstack-start/src/lib/source.ts +1 -2
- package/template/tanstack-start/src/router.tsx +1 -7
- package/template/tanstack-start/src/routes/api/search.ts +7 -3
- package/template/tanstack-start/src/routes/docs/$.tsx +4 -3
- package/template/tanstack-start/tsconfig.json +2 -1
- package/template/waku/example.gitignore +1 -1
- package/template/waku/package.json +4 -4
- package/template/waku/src/lib/source.ts +1 -1
- package/template/waku/tsconfig.json +2 -1
- /package/template/tanstack-start/content/{index.mdx → docs/index.mdx} +0 -0
- /package/template/tanstack-start/content/{test.mdx → docs/test.mdx} +0 -0
|
@@ -59,7 +59,7 @@ async function tryGitInit(cwd2) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// src/versions.js
|
|
62
|
-
var versions = { "fumadocs-core": "
|
|
62
|
+
var versions = { "fumadocs-core": "16.0.0", "fumadocs-ui": "16.0.0", "fumadocs-mdx": "13.0.0", "@fumadocs/mdx-remote": "1.4.3", "@fumadocs/content-collections": "1.2.4" };
|
|
63
63
|
|
|
64
64
|
// ../create-app-versions/package.json
|
|
65
65
|
var package_default = {
|
|
@@ -68,37 +68,37 @@ var package_default = {
|
|
|
68
68
|
private: true,
|
|
69
69
|
description: "Used to track dependency versions in create-fumadocs-app",
|
|
70
70
|
dependencies: {
|
|
71
|
-
"@biomejs/biome": "^2.2.
|
|
71
|
+
"@biomejs/biome": "^2.2.6",
|
|
72
72
|
"@content-collections/core": "^0.11.1",
|
|
73
73
|
"@content-collections/mdx": "^0.2.2",
|
|
74
|
-
"@content-collections/next": "^0.2.
|
|
75
|
-
"@react-router/dev": "^7.9.
|
|
76
|
-
"@react-router/node": "^7.9.
|
|
77
|
-
"@react-router/serve": "^7.9.
|
|
78
|
-
"@tailwindcss/postcss": "^4.1.
|
|
79
|
-
"@tailwindcss/vite": "^4.1.
|
|
80
|
-
"@tanstack/react-router": "^1.
|
|
81
|
-
"@tanstack/react-start": "^1.
|
|
74
|
+
"@content-collections/next": "^0.2.8",
|
|
75
|
+
"@react-router/dev": "^7.9.4",
|
|
76
|
+
"@react-router/node": "^7.9.4",
|
|
77
|
+
"@react-router/serve": "^7.9.4",
|
|
78
|
+
"@tailwindcss/postcss": "^4.1.15",
|
|
79
|
+
"@tailwindcss/vite": "^4.1.15",
|
|
80
|
+
"@tanstack/react-router": "^1.133.21",
|
|
81
|
+
"@tanstack/react-start": "^1.133.21",
|
|
82
82
|
"@types/mdx": "^2.0.13",
|
|
83
|
-
"@types/node": "24.
|
|
84
|
-
"@types/react": "^19.2.
|
|
85
|
-
"@types/react-dom": "^19.2.
|
|
83
|
+
"@types/node": "24.9.1",
|
|
84
|
+
"@types/react": "^19.2.2",
|
|
85
|
+
"@types/react-dom": "^19.2.2",
|
|
86
86
|
"@vitejs/plugin-react": "^5.0.4",
|
|
87
87
|
"gray-matter": "^4.0.3",
|
|
88
88
|
isbot: "^5.1.31",
|
|
89
|
-
"lucide-react": "^0.
|
|
90
|
-
next: "
|
|
89
|
+
"lucide-react": "^0.546.0",
|
|
90
|
+
next: "16.0.0",
|
|
91
91
|
postcss: "^8.5.6",
|
|
92
92
|
react: "^19.2.0",
|
|
93
93
|
"react-dom": "^19.2.0",
|
|
94
|
-
"react-router": "^7.9.
|
|
94
|
+
"react-router": "^7.9.4",
|
|
95
95
|
"react-router-devtools": "^5.1.3",
|
|
96
96
|
shiki: "^3.13.0",
|
|
97
|
-
tailwindcss: "^4.1.
|
|
97
|
+
tailwindcss: "^4.1.15",
|
|
98
98
|
tinyglobby: "^0.2.15",
|
|
99
99
|
typescript: "^5.9.3",
|
|
100
100
|
vinxi: "^0.5.8",
|
|
101
|
-
vite: "^7.1.
|
|
101
|
+
vite: "^7.1.11",
|
|
102
102
|
"vite-tsconfig-paths": "^5.1.4"
|
|
103
103
|
}
|
|
104
104
|
};
|
package/dist/create-app.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fumadocs-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/cross-spawn": "^6.0.6",
|
|
31
|
-
"@types/node": "24.
|
|
31
|
+
"@types/node": "24.9.1",
|
|
32
32
|
"tinyglobby": "^0.2.15",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
34
|
"eslint-config-custom": "0.0.0",
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from 'fumadocs-ui/page';
|
|
9
9
|
import { source } from '@/lib/source';
|
|
10
10
|
import { baseOptions } from '@/lib/layout.shared';
|
|
11
|
-
import
|
|
11
|
+
import type * as PageTree from 'fumadocs-core/page-tree';
|
|
12
12
|
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
13
|
-
import { docs } from '
|
|
13
|
+
import { docs } from '@/.source';
|
|
14
14
|
import { toClientRenderer } from 'fumadocs-mdx/runtime/vite';
|
|
15
15
|
|
|
16
16
|
export async function loader({ params }: Route.LoaderArgs) {
|
|
@@ -9,27 +9,27 @@
|
|
|
9
9
|
"typecheck": "react-router typegen && tsc"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-router/node": "^7.9.
|
|
13
|
-
"@react-router/serve": "^7.9.
|
|
12
|
+
"@react-router/node": "^7.9.4",
|
|
13
|
+
"@react-router/serve": "^7.9.4",
|
|
14
14
|
"fumadocs-core": "workspace:*",
|
|
15
15
|
"fumadocs-mdx": "workspace:*",
|
|
16
16
|
"fumadocs-ui": "workspace:*",
|
|
17
17
|
"isbot": "^5.1.31",
|
|
18
18
|
"react": "^19.2.0",
|
|
19
19
|
"react-dom": "^19.2.0",
|
|
20
|
-
"react-router": "^7.9.
|
|
20
|
+
"react-router": "^7.9.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@react-router/dev": "^7.9.
|
|
24
|
-
"@tailwindcss/vite": "^4.1.
|
|
23
|
+
"@react-router/dev": "^7.9.4",
|
|
24
|
+
"@tailwindcss/vite": "^4.1.15",
|
|
25
25
|
"@types/mdx": "^2.0.13",
|
|
26
|
-
"@types/node": "^24.
|
|
27
|
-
"@types/react": "^19.2.
|
|
28
|
-
"@types/react-dom": "^19.2.
|
|
26
|
+
"@types/node": "^24.9.1",
|
|
27
|
+
"@types/react": "^19.2.2",
|
|
28
|
+
"@types/react-dom": "^19.2.2",
|
|
29
29
|
"react-router-devtools": "^5.1.3",
|
|
30
|
-
"tailwindcss": "^4.1.
|
|
30
|
+
"tailwindcss": "^4.1.15",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"vite": "^7.1.
|
|
32
|
+
"vite": "^7.1.11",
|
|
33
33
|
"vite-tsconfig-paths": "^5.1.4"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -5,28 +5,28 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite dev",
|
|
8
|
-
"build": "vite build
|
|
8
|
+
"build": "vite build",
|
|
9
9
|
"start": "node .output/server/index.mjs"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@tanstack/react-router": "^1.
|
|
13
|
-
"@tanstack/react-router-devtools": "^1.
|
|
14
|
-
"@tanstack/react-start": "^1.
|
|
12
|
+
"@tanstack/react-router": "^1.133.15",
|
|
13
|
+
"@tanstack/react-router-devtools": "^1.133.15",
|
|
14
|
+
"@tanstack/react-start": "^1.133.15",
|
|
15
15
|
"fumadocs-core": "workspace:*",
|
|
16
16
|
"fumadocs-mdx": "workspace:*",
|
|
17
17
|
"fumadocs-ui": "workspace:*",
|
|
18
|
-
"lucide-static": "^0.
|
|
18
|
+
"lucide-static": "^0.546.0",
|
|
19
19
|
"react": "^19.2.0",
|
|
20
20
|
"react-dom": "^19.2.0",
|
|
21
21
|
"tailwind-merge": "^3.3.1",
|
|
22
|
-
"vite": "^7.1.
|
|
22
|
+
"vite": "^7.1.11"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@tailwindcss/vite": "^4.1.14",
|
|
26
26
|
"@types/mdx": "^2.0.13",
|
|
27
|
-
"@types/node": "^24.
|
|
28
|
-
"@types/react": "^19.2.
|
|
29
|
-
"@types/react-dom": "^19.2.
|
|
27
|
+
"@types/node": "^24.8.1",
|
|
28
|
+
"@types/react": "^19.2.2",
|
|
29
|
+
"@types/react-dom": "^19.2.2",
|
|
30
30
|
"@vitejs/plugin-react": "^5.0.4",
|
|
31
31
|
"tailwindcss": "^4.1.14",
|
|
32
32
|
"typescript": "^5.9.3",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { loader } from 'fumadocs-core/source';
|
|
2
2
|
import * as icons from 'lucide-static';
|
|
3
|
-
import { create, docs } from '
|
|
3
|
+
import { create, docs } from '@/.source';
|
|
4
4
|
|
|
5
5
|
export const source = loader({
|
|
6
6
|
source: await create.sourceAsync(docs.doc, docs.meta),
|
|
7
7
|
baseUrl: '/docs',
|
|
8
|
-
// @ts-expect-error -- string
|
|
9
8
|
icon(icon) {
|
|
10
9
|
if (!icon) {
|
|
11
10
|
return;
|
|
@@ -2,7 +2,7 @@ import { createRouter as createTanStackRouter } from '@tanstack/react-router';
|
|
|
2
2
|
import { routeTree } from './routeTree.gen';
|
|
3
3
|
import { NotFound } from '@/components/not-found';
|
|
4
4
|
|
|
5
|
-
export function
|
|
5
|
+
export function getRouter() {
|
|
6
6
|
return createTanStackRouter({
|
|
7
7
|
routeTree,
|
|
8
8
|
defaultPreload: 'intent',
|
|
@@ -10,9 +10,3 @@ export function createRouter() {
|
|
|
10
10
|
defaultNotFoundComponent: NotFound,
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
declare module '@tanstack/react-router' {
|
|
15
|
-
interface Register {
|
|
16
|
-
router: ReturnType<typeof createRouter>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createFileRoute } from '@tanstack/react-router';
|
|
2
2
|
import { source } from '@/lib/source';
|
|
3
3
|
import { createFromSource } from 'fumadocs-core/search/server';
|
|
4
4
|
|
|
@@ -7,6 +7,10 @@ const server = createFromSource(source, {
|
|
|
7
7
|
language: 'english',
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
export const
|
|
11
|
-
|
|
10
|
+
export const Route = createFileRoute('/api/search')({
|
|
11
|
+
server: {
|
|
12
|
+
handlers: {
|
|
13
|
+
GET: async ({ request }) => server.GET(request),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
12
16
|
});
|
|
@@ -2,9 +2,9 @@ import { createFileRoute, notFound } from '@tanstack/react-router';
|
|
|
2
2
|
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
|
|
3
3
|
import { createServerFn } from '@tanstack/react-start';
|
|
4
4
|
import { source } from '@/lib/source';
|
|
5
|
-
import type
|
|
5
|
+
import type * as PageTree from 'fumadocs-core/page-tree';
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
|
-
import { docs } from '
|
|
7
|
+
import { docs } from '@/.source';
|
|
8
8
|
import {
|
|
9
9
|
DocsBody,
|
|
10
10
|
DocsDescription,
|
|
@@ -18,7 +18,8 @@ import { baseOptions } from '@/lib/layout.shared';
|
|
|
18
18
|
export const Route = createFileRoute('/docs/$')({
|
|
19
19
|
component: Page,
|
|
20
20
|
loader: async ({ params }) => {
|
|
21
|
-
const
|
|
21
|
+
const slugs = params._splat?.split('/') ?? [];
|
|
22
|
+
const data = await loader({ data: slugs });
|
|
22
23
|
await clientLoader.preload(data.path);
|
|
23
24
|
return data;
|
|
24
25
|
},
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@tailwindcss/vite": "^4.1.14",
|
|
22
22
|
"@types/mdx": "^2.0.13",
|
|
23
|
-
"@types/node": "^24.
|
|
24
|
-
"@types/react": "^19.2.
|
|
25
|
-
"@types/react-dom": "^19.2.
|
|
23
|
+
"@types/node": "^24.8.1",
|
|
24
|
+
"@types/react": "^19.2.2",
|
|
25
|
+
"@types/react-dom": "^19.2.2",
|
|
26
26
|
"tailwindcss": "^4.1.14",
|
|
27
27
|
"typescript": "^5.9.3",
|
|
28
|
-
"vite": "^7.1.
|
|
28
|
+
"vite": "^7.1.11",
|
|
29
29
|
"vite-tsconfig-paths": "^5.1.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
File without changes
|
|
File without changes
|