Skip to content

Commit 827d25e

Browse files
committed
fix base url
1 parent 2c2e202 commit 827d25e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ Open http://localhost:3000 with your browser to see the result.
1919

2020
In the project, you can see:
2121

22-
- `lib/source.ts`: Code for content source adapter, [`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your content.
22+
- `lib/source.ts`: Code for content source adapter,
23+
[`loader()`](https://fumadocs.dev/docs/headless/source-api) provides the interface to access your
24+
content.
2325
- `app/layout.config.tsx`: Shared options for layouts, optional but preferred to keep.
2426

25-
| Route | Description |
26-
| ------------------------- | ------------------------------------------------------ |
27-
| `app/(home)` | The route group for your landing page and other pages. |
28-
| `app/docs` | The documentation layout and pages. |
29-
| `app/api/search/route.ts` | The Route Handler for search. |
27+
| Route | Description |
28+
| ------------------------- | ----------------------------------- |
29+
| `app/docs` | The documentation layout and pages. |
30+
| `app/api/search/route.ts` | The Route Handler for search. |
3031

3132
### Fumadocs MDX
3233

33-
A `source.config.ts` config file has been included, you can customise different options like frontmatter schema.
34+
A `source.config.ts` config file has been included, you can customise different options like
35+
frontmatter schema.
3436

3537
Read the [Introduction](https://fumadocs.dev/docs/mdx) for further details.
3638

3739
## Learn More
3840

39-
To learn more about Next.js and Fumadocs, take a look at the following
40-
resources:
41+
To learn more about Next.js and Fumadocs, take a look at the following resources:
4142

42-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
43-
features and API.
43+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
4444
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
4545
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs

lib/source.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { loader } from "fumadocs-core/source";
33

44
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
55
export const source = loader({
6-
// it assigns a URL to your pages
7-
baseUrl: "/",
8-
source: docs.toFumadocsSource(),
6+
// it assigns a URL to your pages
7+
baseUrl: "/docs",
8+
source: docs.toFumadocsSource()
99
});

0 commit comments

Comments
 (0)