create-fumadocs-app 15.2.15 → 15.3.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-DCMWAKAA.js → chunk-KMN2TEEQ.js} +6 -6
- package/dist/create-app.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/template/+next/README.md +13 -0
- package/template/+next/app/(home)/layout.tsx +13 -1
- package/template/+next/app/layout.config.tsx +0 -7
- package/template/+next+fuma-docs-mdx/README.md +43 -0
|
@@ -60,7 +60,7 @@ function tryGitInit(root) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// src/versions.js
|
|
63
|
-
var versions = { "fumadocs-core": "15.
|
|
63
|
+
var versions = { "fumadocs-core": "15.3.0", "fumadocs-ui": "15.3.0", "fumadocs-mdx": "11.6.3", "@fumadocs/mdx-remote": "1.3.0", "@fumadocs/content-collections": "1.1.8" };
|
|
64
64
|
|
|
65
65
|
// ../create-app-versions/package.json
|
|
66
66
|
var package_default = {
|
|
@@ -81,8 +81,8 @@ var package_default = {
|
|
|
81
81
|
"@tanstack/react-router": "^1.119.0",
|
|
82
82
|
"@tanstack/react-start": "^1.119.2",
|
|
83
83
|
"@types/mdx": "^2.0.13",
|
|
84
|
-
"@types/node": "22.15.
|
|
85
|
-
"@types/react": "^19.1.
|
|
84
|
+
"@types/node": "22.15.12",
|
|
85
|
+
"@types/react": "^19.1.3",
|
|
86
86
|
"@types/react-dom": "^19.1.3",
|
|
87
87
|
"@vitejs/plugin-react": "^4.4.1",
|
|
88
88
|
"fast-glob": "^3.3.3",
|
|
@@ -93,12 +93,12 @@ var package_default = {
|
|
|
93
93
|
react: "^19.1.0",
|
|
94
94
|
"react-dom": "^19.1.0",
|
|
95
95
|
"react-router": "^7.5.3",
|
|
96
|
-
"react-router-devtools": "^5.0.
|
|
97
|
-
shiki: "^3.
|
|
96
|
+
"react-router-devtools": "^5.0.1",
|
|
97
|
+
shiki: "^3.4.0",
|
|
98
98
|
tailwindcss: "^4.1.5",
|
|
99
99
|
typescript: "^5.8.3",
|
|
100
100
|
vinxi: "^0.5.6",
|
|
101
|
-
vite: "^6.3.
|
|
101
|
+
vite: "^6.3.5",
|
|
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": "15.
|
|
3
|
+
"version": "15.3.0",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/cross-spawn": "^6.0.6",
|
|
30
|
-
"@types/node": "22.15.
|
|
30
|
+
"@types/node": "22.15.12",
|
|
31
31
|
"fast-glob": "^3.3.3",
|
|
32
32
|
"eslint-config-custom": "0.0.0",
|
|
33
33
|
"tsconfig": "0.0.0"
|
package/template/+next/README.md
CHANGED
|
@@ -13,6 +13,19 @@ yarn dev
|
|
|
13
13
|
|
|
14
14
|
Open http://localhost:3000 with your browser to see the result.
|
|
15
15
|
|
|
16
|
+
## Explore
|
|
17
|
+
|
|
18
|
+
In the project, you can see:
|
|
19
|
+
|
|
20
|
+
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
|
|
21
|
+
- `app/layout.config.tsx`: Shared options for layouts, optional but preferred to keep.
|
|
22
|
+
|
|
23
|
+
| Route | Description |
|
|
24
|
+
| ------------------------- | ------------------------------------------------------ |
|
|
25
|
+
| `app/(home)` | The route group for your landing page and other pages. |
|
|
26
|
+
| `app/docs` | The documentation layout and pages. |
|
|
27
|
+
| `app/api/search/route.ts` | The Route Handler for search. |
|
|
28
|
+
|
|
16
29
|
## Learn More
|
|
17
30
|
|
|
18
31
|
To learn more about Next.js and Fumadocs, take a look at the following
|
|
@@ -3,5 +3,17 @@ import { HomeLayout } from 'fumadocs-ui/layouts/home';
|
|
|
3
3
|
import { baseOptions } from '@/app/layout.config';
|
|
4
4
|
|
|
5
5
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
6
|
-
return
|
|
6
|
+
return (
|
|
7
|
+
<HomeLayout
|
|
8
|
+
{...baseOptions}
|
|
9
|
+
links={[
|
|
10
|
+
{
|
|
11
|
+
text: 'Documentation',
|
|
12
|
+
url: '/docs',
|
|
13
|
+
},
|
|
14
|
+
]}
|
|
15
|
+
>
|
|
16
|
+
{children}
|
|
17
|
+
</HomeLayout>
|
|
18
|
+
);
|
|
7
19
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
This is a Next.js application generated with
|
|
2
|
+
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
|
|
3
|
+
|
|
4
|
+
Run development server:
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm run dev
|
|
8
|
+
# or
|
|
9
|
+
pnpm dev
|
|
10
|
+
# or
|
|
11
|
+
yarn dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Open http://localhost:3000 with your browser to see the result.
|
|
15
|
+
|
|
16
|
+
## Explore
|
|
17
|
+
|
|
18
|
+
In the project, you can see:
|
|
19
|
+
|
|
20
|
+
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
|
|
21
|
+
- `app/layout.config.tsx`: Shared options for layouts, optional but preferred to keep.
|
|
22
|
+
|
|
23
|
+
| Route | Description |
|
|
24
|
+
| ------------------------- | ------------------------------------------------------ |
|
|
25
|
+
| `app/(home)` | The route group for your landing page and other pages. |
|
|
26
|
+
| `app/docs` | The documentation layout and pages. |
|
|
27
|
+
| `app/api/search/route.ts` | The Route Handler for search. |
|
|
28
|
+
|
|
29
|
+
### Fumadocs MDX
|
|
30
|
+
|
|
31
|
+
A `source.config.ts` config file has been included, you can customise different options like frontmatter schema.
|
|
32
|
+
|
|
33
|
+
Read the [Introduction](https://fumadocs.dev/docs/mdx) for further details.
|
|
34
|
+
|
|
35
|
+
## Learn More
|
|
36
|
+
|
|
37
|
+
To learn more about Next.js and Fumadocs, take a look at the following
|
|
38
|
+
resources:
|
|
39
|
+
|
|
40
|
+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
|
|
41
|
+
features and API.
|
|
42
|
+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
43
|
+
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs
|