create-fumadocs-app 15.7.7 → 15.7.9
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-4VGHG4L7.js → chunk-YD5ULJXR.js} +1 -1
- package/dist/create-app.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/template/react-router/app/docs/search.ts +1 -1
- package/template/react-router/app/lib/source.ts +1 -1
- 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 -2
- 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.9", "fumadocs-ui": "15.7.9", "fumadocs-mdx": "11.8.3", "@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 = {
|
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.9",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@types/node": "24.3.0",
|
|
32
32
|
"tinyglobby": "^0.2.14",
|
|
33
33
|
"typescript": "^5.9.2",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"eslint-config-custom": "0.0.0",
|
|
35
|
+
"tsconfig": "0.0.0"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=18.17.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Route } from './+types/search';
|
|
2
2
|
import { createFromSource } from 'fumadocs-core/search/server';
|
|
3
|
-
import { source } from '@/source';
|
|
3
|
+
import { source } from '@/lib/source';
|
|
4
4
|
|
|
5
5
|
const server = createFromSource(source, {
|
|
6
6
|
// https://docs.orama.com/docs/orama-js/supported-languages
|
|
@@ -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,10 +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
|
-
|
|
8
|
-
plugins: [mdx(MdxConfig) as any],
|
|
9
|
+
plugins: [tailwindcss(), mdx(MdxConfig), tsconfigPaths()],
|
|
9
10
|
},
|
|
10
11
|
});
|