mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 06:31:49 +00:00
chore: add comments to generated template
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'create-fumadocs-app': patch
|
||||
---
|
||||
|
||||
add comments to generated template
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user