create-fumadocs-app 15.7.8 → 15.7.10
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-FLOSB7KX.js → chunk-G2RYUJKU.js} +9 -9
- package/dist/create-app.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/template/waku/package.json +3 -3
- package/template/waku/src/lib/layout.shared.tsx +9 -0
- package/template/waku/src/{source.ts → lib/source.ts} +1 -1
- package/template/waku/src/pages/(home)/_layout.tsx +13 -0
- package/template/waku/src/pages/{index.tsx → (home)/index.tsx} +2 -8
- package/template/waku/src/pages/_layout.tsx +3 -8
- package/template/waku/src/pages/api/search.ts +1 -1
- package/template/waku/src/pages/docs/[...slugs].tsx +5 -3
- package/template/waku/src/pages/docs/_layout.tsx +4 -13
- package/template/waku/tsconfig.json +4 -1
- package/template/waku/waku.config.ts +3 -1
- package/template/waku/postcss.config.js +0 -5
|
@@ -59,7 +59,7 @@ async function tryGitInit(cwd2) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// src/versions.js
|
|
62
|
-
var versions = { "fumadocs-core": "15.7.
|
|
62
|
+
var versions = { "fumadocs-core": "15.7.10", "fumadocs-ui": "15.7.10", "fumadocs-mdx": "11.9.0", "@fumadocs/mdx-remote": "1.4.0", "@fumadocs/content-collections": "1.2.2" };
|
|
63
63
|
|
|
64
64
|
// ../create-app-versions/package.json
|
|
65
65
|
var package_default = {
|
|
@@ -75,12 +75,12 @@ var package_default = {
|
|
|
75
75
|
"@react-router/dev": "^7.8.2",
|
|
76
76
|
"@react-router/node": "^7.8.2",
|
|
77
77
|
"@react-router/serve": "^7.8.2",
|
|
78
|
-
"@tailwindcss/postcss": "^4.1.
|
|
79
|
-
"@tailwindcss/vite": "^4.1.
|
|
80
|
-
"@tanstack/react-router": "^1.131.
|
|
81
|
-
"@tanstack/react-start": "^1.131.
|
|
78
|
+
"@tailwindcss/postcss": "^4.1.13",
|
|
79
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
80
|
+
"@tanstack/react-router": "^1.131.35",
|
|
81
|
+
"@tanstack/react-start": "^1.131.35",
|
|
82
82
|
"@types/mdx": "^2.0.13",
|
|
83
|
-
"@types/node": "24.3.
|
|
83
|
+
"@types/node": "24.3.1",
|
|
84
84
|
"@types/react": "^19.1.12",
|
|
85
85
|
"@types/react-dom": "^19.1.9",
|
|
86
86
|
"@vitejs/plugin-react": "^5.0.2",
|
|
@@ -92,12 +92,12 @@ var package_default = {
|
|
|
92
92
|
"react-dom": "^19.1.1",
|
|
93
93
|
"react-router": "^7.8.2",
|
|
94
94
|
"react-router-devtools": "^5.1.3",
|
|
95
|
-
shiki: "^3.12.
|
|
96
|
-
tailwindcss: "^4.1.
|
|
95
|
+
shiki: "^3.12.2",
|
|
96
|
+
tailwindcss: "^4.1.13",
|
|
97
97
|
tinyglobby: "^0.2.14",
|
|
98
98
|
typescript: "^5.9.2",
|
|
99
99
|
vinxi: "^0.5.8",
|
|
100
|
-
vite: "^7.1.
|
|
100
|
+
vite: "^7.1.4",
|
|
101
101
|
"vite-tsconfig-paths": "^5.1.4"
|
|
102
102
|
}
|
|
103
103
|
};
|
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": "15.7.
|
|
3
|
+
"version": "15.7.10",
|
|
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.3.
|
|
31
|
+
"@types/node": "24.3.1",
|
|
32
32
|
"tinyglobby": "^0.2.14",
|
|
33
33
|
"typescript": "^5.9.2",
|
|
34
34
|
"eslint-config-custom": "0.0.0",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"waku": "^0.26.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tailwindcss/
|
|
21
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
22
22
|
"@types/node": "^24.3.0",
|
|
23
23
|
"@types/react": "^19.1.12",
|
|
24
24
|
"@types/react-dom": "^19.1.9",
|
|
25
|
-
"postcss": "^8.5.6",
|
|
26
25
|
"tailwindcss": "^4.1.12",
|
|
27
26
|
"typescript": "^5.9.2",
|
|
28
|
-
"vite": "^7.1.3"
|
|
27
|
+
"vite": "^7.1.3",
|
|
28
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { baseOptions } from '@/lib/layout.shared';
|
|
3
|
+
import { HomeLayout } from 'fumadocs-ui/layouts/home';
|
|
4
|
+
|
|
5
|
+
export default function Layout({ children }: { children: ReactNode }) {
|
|
6
|
+
return <HomeLayout {...baseOptions()}>{children}</HomeLayout>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const getConfig = async () => {
|
|
10
|
+
return {
|
|
11
|
+
render: 'static',
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { HomeLayout } from 'fumadocs-ui/layouts/home';
|
|
2
1
|
import { Link } from 'waku';
|
|
3
2
|
|
|
4
3
|
export default function Home() {
|
|
5
4
|
return (
|
|
6
|
-
<
|
|
7
|
-
nav={{
|
|
8
|
-
title: 'Waku',
|
|
9
|
-
}}
|
|
10
|
-
className="text-center py-32 justify-center"
|
|
11
|
-
>
|
|
5
|
+
<div className="flex-1 flex flex-col items-center justify-center text-center">
|
|
12
6
|
<h1 className="font-medium text-xl mb-4">Fumadocs on Waku.</h1>
|
|
13
7
|
<Link
|
|
14
8
|
to="/docs"
|
|
@@ -16,7 +10,7 @@ export default function Home() {
|
|
|
16
10
|
>
|
|
17
11
|
Open Docs
|
|
18
12
|
</Link>
|
|
19
|
-
</
|
|
13
|
+
</div>
|
|
20
14
|
);
|
|
21
15
|
}
|
|
22
16
|
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '@/styles/globals.css';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import { Provider } from '
|
|
3
|
+
import { Provider } from '@/components/provider';
|
|
4
4
|
|
|
5
|
-
export default function RootLayout({
|
|
6
|
-
children,
|
|
7
|
-
}: {
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
path: string;
|
|
10
|
-
}) {
|
|
5
|
+
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
11
6
|
return <Provider>{children}</Provider>;
|
|
12
7
|
}
|
|
13
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { source } from '
|
|
1
|
+
import { source } from '@/lib/source';
|
|
2
2
|
import { PageProps } from 'waku/router';
|
|
3
3
|
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
4
4
|
import {
|
|
@@ -24,7 +24,7 @@ export default function DocPage({ slugs }: PageProps<'/docs/[...slugs]'>) {
|
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
const MDX = page.data.
|
|
27
|
+
const MDX = page.data.body;
|
|
28
28
|
return (
|
|
29
29
|
<DocsPage toc={page.data.toc}>
|
|
30
30
|
<DocsTitle>{page.data.title}</DocsTitle>
|
|
@@ -41,7 +41,9 @@ export default function DocPage({ slugs }: PageProps<'/docs/[...slugs]'>) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export async function getConfig() {
|
|
44
|
-
const pages = source
|
|
44
|
+
const pages = source
|
|
45
|
+
.generateParams()
|
|
46
|
+
.map((item) => (item.lang ? [item.lang, ...item.slug] : item.slug));
|
|
45
47
|
|
|
46
48
|
return {
|
|
47
49
|
render: 'static' as const,
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
|
|
3
|
-
import { source } from '
|
|
3
|
+
import { source } from '@/lib/source';
|
|
4
|
+
import { baseOptions } from '@/lib/layout.shared';
|
|
4
5
|
|
|
5
|
-
export default function Layout({
|
|
6
|
-
children,
|
|
7
|
-
}: {
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
path: string;
|
|
10
|
-
}) {
|
|
6
|
+
export default function Layout({ children }: { children: ReactNode }) {
|
|
11
7
|
return (
|
|
12
|
-
<DocsLayout
|
|
13
|
-
tree={source.pageTree}
|
|
14
|
-
nav={{
|
|
15
|
-
title: 'Waku',
|
|
16
|
-
}}
|
|
17
|
-
>
|
|
8
|
+
<DocsLayout {...baseOptions()} tree={source.pageTree}>
|
|
18
9
|
{children}
|
|
19
10
|
</DocsLayout>
|
|
20
11
|
);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { defineConfig } from 'waku/config';
|
|
2
2
|
import mdx from 'fumadocs-mdx/vite';
|
|
3
3
|
import * as MdxConfig from './source.config.js';
|
|
4
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
5
|
+
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
4
6
|
|
|
5
7
|
export default defineConfig({
|
|
6
8
|
vite: {
|
|
7
|
-
plugins: [mdx(MdxConfig)],
|
|
9
|
+
plugins: [tailwindcss(), mdx(MdxConfig), tsconfigPaths()],
|
|
8
10
|
},
|
|
9
11
|
});
|