Skip to content

Commit f4ce093

Browse files
authored
Merge pull request #2689 from fuma-nama/dev
Sync
2 parents 39d3527 + 8940d39 commit f4ce093

File tree

19 files changed

+237
-153
lines changed

19 files changed

+237
-153
lines changed

apps/docs/content/docs/ui/(ui)/layouts/notebook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Notebook
2+
title: Notebook Layout
33
description: A more compact version of Docs Layout
44
---
55

apps/docs/content/docs/ui/(ui)/layouts/page.mdx

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ This will render the title in the MDX body.
6060
Link to the original GitHub file with your component.
6161

6262
```tsx
63+
// docs layout:
6364
import { 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';
7982
Display last updated time of the page.
8083

8184
```tsx
85+
// docs layout:
8286
import { DocsPage, PageLastUpdate } from 'fumadocs-ui/layouts/docs/page';
87+
// notebook layout:
88+
import { DocsPage, PageLastUpdate } from 'fumadocs-ui/layouts/notebook/page';
8389

8490
const lastModifiedTime: Date | undefined;
8591

@@ -134,7 +140,10 @@ To extend the page to fill up all available space, pass `full` to the page compo
134140
This will force TOC to be shown as a popover.
135141

136142
```tsx
143+
// docs layout:
137144
import { 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:
150160
import { 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

155167
You can customise or disable it with the `tableOfContent` option, or with `tableOfContentPopover` on smaller devices.
156168

157169
```tsx
170+
// docs layout:
158171
import { 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';
169184
You can choose another style for TOC, like `clerk` inspired by https://clerk.com:
170185

171186
```tsx
187+
// docs layout:
172188
import { 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
189207
Customise 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" />

packages/core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# next-docs-zeta
22

3+
## 16.2.1
4+
35
## 16.2.0
46

57
## 16.1.0

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fumadocs-core",
3-
"version": "16.2.0",
3+
"version": "16.2.1",
44
"description": "The React.js library for building a documentation website",
55
"keywords": [
66
"Fumadocs",

packages/create-app-versions/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# create-fumadocs-versions
22

3+
## 16.0.21
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [556cb6b]
8+
- Updated dependencies [c6120ff]
9+
10+
11+
312
## 16.0.20
413

514
### Patch Changes

packages/create-app-versions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-fumadocs-versions",
3-
"version": "16.0.20",
3+
"version": "16.0.21",
44
"private": true,
55
"description": "Used to track dependency versions in create-fumadocs-app",
66
"dependencies": {

packages/create-app/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# create-next-docs-app
22

3+
## 16.0.21
4+
35
## 16.0.20
46

57
## 16.0.19

packages/create-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-fumadocs-app",
3-
"version": "16.0.20",
3+
"version": "16.0.21",
44
"description": "Create a new documentation site with Fumadocs",
55
"keywords": [
66
"react",

packages/ui/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# next-docs-ui
22

3+
## 16.2.1
4+
5+
### Patch Changes
6+
7+
- 556cb6b: Fix missing default colors
8+
- c6120ff: Add sidebar animation back
9+
10+
311
## 16.2.0
412

513
### Minor Changes

packages/ui/css/shadcn.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import './colors/index.css';
2+
13
@theme {
24
--color-fd-background: var(--background);
35
--color-fd-foreground: var(--foreground);
@@ -27,3 +29,7 @@
2729
--color-fd-ring: var(--sidebar-ring);
2830
--color-fd-primary-foreground: var(--sidebar-primary-foreground);
2931
}
32+
33+
@theme static {
34+
--color-fd-error: var(--destructive);
35+
}

0 commit comments

Comments
 (0)