chore: add comments to generated template

This commit is contained in:
Fuma Nama
2025-03-11 08:10:45 +08:00
parent aa2db5c51b
commit 91c8568fe5
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'create-fumadocs-app': patch
---
add comments to generated template
+1 -1
View File
@@ -105,7 +105,7 @@ npm run dev
In the project, you can see:
- `lib/source.ts`: Code for content source adapter, Fumadocs needs [`loader()`](/docs/headless/source-api) to interact with your content source.
- `lib/source.ts`: Code for content source adapter, Fumadocs uses [`loader()`](/docs/headless/source-api) to interact with your content source, it also assign an url to your pages.
- `app/layout.config.tsx`: Shared options for layouts, optional but preferred to keep.
- `app/(home)`: The route group for your landing page and other pages.
- `app/docs`: The documentation layout and pages.
@@ -2,6 +2,7 @@ import { docs } from '@/.source';
import { loader } from 'fumadocs-core/source';
export const source = loader({
// `loader()` also assign an url to your pages
baseUrl: '/docs',
source: docs.toFumadocsSource(),
});