@@ -60,7 +60,10 @@ This will render the title in the MDX body.
6060Link to the original GitHub file with your component.
6161
6262``` tsx
63+ // docs layout:
6364import { DocsPage } from ' fumadocs-ui/layouts/docs/page' ;
65+ // notebook layout:
66+ import { DocsPage } from ' fumadocs-ui/layouts/notebook/page' ;
6467
6568<DocsPage >
6669 <a
@@ -79,7 +82,10 @@ import { DocsPage } from 'fumadocs-ui/layouts/docs/page';
7982Display last updated time of the page.
8083
8184``` tsx
85+ // docs layout:
8286import { DocsPage , PageLastUpdate } from ' fumadocs-ui/layouts/docs/page' ;
87+ // notebook layout:
88+ import { DocsPage , PageLastUpdate } from ' fumadocs-ui/layouts/notebook/page' ;
8389
8490const lastModifiedTime: Date | undefined ;
8591
@@ -134,7 +140,10 @@ To extend the page to fill up all available space, pass `full` to the page compo
134140This will force TOC to be shown as a popover.
135141
136142``` tsx
143+ // docs layout:
137144import { DocsPage } from ' fumadocs-ui/layouts/docs/page' ;
145+ // notebook layout:
146+ import { DocsPage } from ' fumadocs-ui/layouts/notebook/page' ;
138147
139148<DocsPage full >...</DocsPage >;
140149```
@@ -147,15 +156,21 @@ For Markdown and MDX documents, You can obtain it using the
147156[ TOC Utility] ( /docs/headless/utils/get-toc ) . Content sources like Fumadocs MDX offer this out-of-the-box.
148157
149158``` tsx
159+ // docs layout:
150160import { DocsPage } from ' fumadocs-ui/layouts/docs/page' ;
161+ // notebook layout:
162+ import { DocsPage } from ' fumadocs-ui/layouts/notebook/page' ;
151163
152164<DocsPage toc = { headings } >...</DocsPage >;
153165```
154166
155167You can customise or disable it with the ` tableOfContent ` option, or with ` tableOfContentPopover ` on smaller devices.
156168
157169``` tsx
170+ // docs layout:
158171import { DocsPage } from ' fumadocs-ui/layouts/docs/page' ;
172+ // notebook layout:
173+ import { DocsPage } from ' fumadocs-ui/layouts/notebook/page' ;
159174
160175<DocsPage tableOfContent = { options } tableOfContentPopover = { options } >
161176 ...
@@ -169,7 +184,10 @@ import { DocsPage } from 'fumadocs-ui/layouts/docs/page';
169184You can choose another style for TOC, like ` clerk ` inspired by https://clerk.com :
170185
171186``` tsx
187+ // docs layout:
172188import { DocsPage } from ' fumadocs-ui/layouts/docs/page' ;
189+ // notebook layout:
190+ import { DocsPage } from ' fumadocs-ui/layouts/notebook/page' ;
173191
174192<DocsPage
175193 tableOfContent = { {
@@ -189,11 +207,12 @@ Footer is a navigation element that has two buttons to jump to the next and prev
189207Customise the footer with the ` footer ` option.
190208
191209``` tsx
192- import { DocsPage , DocsBody } from ' fumadocs-ui/layouts/docs/page' ;
210+ // docs layout:
211+ import { DocsPage } from ' fumadocs-ui/layouts/docs/page' ;
212+ // notebook layout:
213+ import { DocsPage } from ' fumadocs-ui/layouts/notebook/page' ;
193214
194- <DocsPage footer = { options } >
195- <DocsBody >...</DocsBody >
196- </DocsPage >;
215+ <DocsPage footer = { options } >...</DocsPage >;
197216```
198217
199218<auto-type-table path = " ../../props.ts" name = " FooterProps" />
0 commit comments