create-fumadocs-app 15.2.14 → 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.
@@ -60,7 +60,7 @@ function tryGitInit(root) {
60
60
  }
61
61
 
62
62
  // src/versions.js
63
- var versions = { "fumadocs-core": "15.2.14", "fumadocs-ui": "15.2.14", "fumadocs-mdx": "11.6.2", "@fumadocs/mdx-remote": "1.3.0", "@fumadocs/content-collections": "1.1.8" };
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.3",
85
- "@types/react": "^19.1.2",
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.0",
97
- shiki: "^3.3.0",
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.4",
101
+ vite: "^6.3.5",
102
102
  "vite-tsconfig-paths": "^5.1.4"
103
103
  }
104
104
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  create
3
- } from "./chunk-5ZDSWE2C.js";
3
+ } from "./chunk-KMN2TEEQ.js";
4
4
  export {
5
5
  create
6
6
  };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  create,
4
4
  cwd,
5
5
  getPackageManager
6
- } from "./chunk-5ZDSWE2C.js";
6
+ } from "./chunk-KMN2TEEQ.js";
7
7
 
8
8
  // src/index.ts
9
9
  import fs from "node:fs/promises";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fumadocs-app",
3
- "version": "15.2.14",
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.3",
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"
@@ -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 <HomeLayout {...baseOptions}>{children}</HomeLayout>;
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
  }
@@ -23,11 +23,4 @@ export const baseOptions: BaseLayoutProps = {
23
23
  </>
24
24
  ),
25
25
  },
26
- links: [
27
- {
28
- text: 'Documentation',
29
- url: '/docs',
30
- active: 'nested-url',
31
- },
32
- ],
33
26
  };
@@ -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
@@ -1,8 +1,19 @@
1
- import { defineDocs, defineConfig } from 'fumadocs-mdx/config';
1
+ import {
2
+ defineConfig,
3
+ defineDocs,
4
+ frontmatterSchema,
5
+ metaSchema,
6
+ } from 'fumadocs-mdx/config';
2
7
 
3
- // Options: https://fumadocs.vercel.app/docs/mdx/collections#define-docs
8
+ // You can customise Zod schemas for frontmatter and `meta.json` here
9
+ // see https://fumadocs.vercel.app/docs/mdx/collections#define-docs
4
10
  export const docs = defineDocs({
5
- dir: 'content/docs',
11
+ docs: {
12
+ schema: frontmatterSchema,
13
+ },
14
+ meta: {
15
+ schema: metaSchema,
16
+ },
6
17
  });
7
18
 
8
19
  export default defineConfig({