@docubook/create 1.15.0 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dist/app/layout.tsx +0 -1
- package/src/dist/app/page.tsx +1 -1
- package/src/dist/components/DocSearch.tsx +0 -1
- package/src/dist/contents/docs/api-reference/delete/index.mdx +63 -0
- package/src/dist/contents/docs/api-reference/fetch/index.mdx +63 -0
- package/src/dist/contents/docs/api-reference/get/index.mdx +63 -0
- package/src/dist/contents/docs/api-reference/post/index.mdx +63 -0
- package/src/dist/contents/docs/changelog/version-1/index.mdx +22 -654
- package/src/dist/contents/docs/changelog/version-2/index.mdx +49 -0
- package/src/dist/contents/docs/changelog/version-3/index.mdx +49 -0
- package/src/dist/contents/docs/getting-started/development/index.mdx +63 -0
- package/src/dist/contents/docs/getting-started/introduction/index.mdx +49 -36
- package/src/dist/contents/docs/getting-started/quick-start-guide/index.mdx +44 -126
- package/src/dist/docu.json +90 -104
- package/src/dist/package.json +1 -1
- package/src/dist/styles/algolia.css +97 -91
- package/src/dist/styles/globals.css +5 -3
- package/src/dist/contents/docs/components/accordion/index.mdx +0 -86
- package/src/dist/contents/docs/components/button/index.mdx +0 -40
- package/src/dist/contents/docs/components/card/index.mdx +0 -68
- package/src/dist/contents/docs/components/card-group/index.mdx +0 -47
- package/src/dist/contents/docs/components/code-block/index.mdx +0 -39
- package/src/dist/contents/docs/components/custom/index.mdx +0 -38
- package/src/dist/contents/docs/components/file-tree/index.mdx +0 -109
- package/src/dist/contents/docs/components/image/index.mdx +0 -37
- package/src/dist/contents/docs/components/index.mdx +0 -9
- package/src/dist/contents/docs/components/keyboard/index.mdx +0 -117
- package/src/dist/contents/docs/components/link/index.mdx +0 -34
- package/src/dist/contents/docs/components/note/index.mdx +0 -44
- package/src/dist/contents/docs/components/release-note/index.mdx +0 -130
- package/src/dist/contents/docs/components/stepper/index.mdx +0 -45
- package/src/dist/contents/docs/components/tabs/index.mdx +0 -70
- package/src/dist/contents/docs/components/tooltips/index.mdx +0 -22
- package/src/dist/contents/docs/components/youtube/index.mdx +0 -23
- package/src/dist/contents/docs/getting-started/customize/index.mdx +0 -92
- package/src/dist/contents/docs/getting-started/index.mdx +0 -9
- package/src/dist/contents/docs/getting-started/installation/index.mdx +0 -84
- package/src/dist/contents/docs/getting-started/project-structure/index.mdx +0 -87
- package/src/dist/contents/docs/getting-started/theme-colors/coffee/index.mdx +0 -165
- package/src/dist/contents/docs/getting-started/theme-colors/default/index.mdx +0 -160
- package/src/dist/contents/docs/getting-started/theme-colors/freshlime/index.mdx +0 -161
- package/src/dist/contents/docs/getting-started/theme-colors/index.mdx +0 -9
- package/src/dist/contents/docs/getting-started/theme-colors/llms/index.mdx +0 -77
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: File Tree Component
|
|
3
|
-
description: A customizable file tree component for displaying hierarchical file structures in your documentation.
|
|
4
|
-
date: 28-05-2025
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The File Tree component allows you to display hierarchical file structures in your documentation with collapsible folders and files.
|
|
8
|
-
|
|
9
|
-
## Basic Usage
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
<Files>
|
|
13
|
-
<Folder name="src">
|
|
14
|
-
<File name="App.tsx" />
|
|
15
|
-
<File name="index.tsx" />
|
|
16
|
-
<Folder name="components">
|
|
17
|
-
<File name="Button.tsx" />
|
|
18
|
-
<File name="Card.tsx" />
|
|
19
|
-
</Folder>
|
|
20
|
-
<Folder name="pages">
|
|
21
|
-
<File name="Home.tsx" />
|
|
22
|
-
<File name="About.tsx" />
|
|
23
|
-
</Folder>
|
|
24
|
-
</Folder>
|
|
25
|
-
</Files>
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Render As:
|
|
29
|
-
<Files>
|
|
30
|
-
<Folder name="src">
|
|
31
|
-
<File name="App.tsx" />
|
|
32
|
-
<File name="index.tsx" />
|
|
33
|
-
<Folder name="components">
|
|
34
|
-
<File name="Button.tsx" />
|
|
35
|
-
<File name="Card.tsx" />
|
|
36
|
-
</Folder>
|
|
37
|
-
<Folder name="pages">
|
|
38
|
-
<File name="Home.tsx" />
|
|
39
|
-
<File name="About.tsx" />
|
|
40
|
-
</Folder>
|
|
41
|
-
</Folder>
|
|
42
|
-
</Files>
|
|
43
|
-
|
|
44
|
-
## Props
|
|
45
|
-
|
|
46
|
-
### Files
|
|
47
|
-
|
|
48
|
-
The root component that wraps the entire file tree.
|
|
49
|
-
|
|
50
|
-
### Folder
|
|
51
|
-
|
|
52
|
-
| Prop | Type | Required | Description |
|
|
53
|
-
|----------|----------|----------|---------------------------------------|
|
|
54
|
-
| `name` | string | Yes | The name of the folder |
|
|
55
|
-
| `children` | ReactNode | No | Child elements (File or Folder) |
|
|
56
|
-
|
|
57
|
-
### File
|
|
58
|
-
|
|
59
|
-
| Prop | Type | Required | Description |
|
|
60
|
-
|------|--------|----------|----------------------------|
|
|
61
|
-
| `name` | string | Yes | The name of the file |
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## Examples
|
|
65
|
-
|
|
66
|
-
### Nested Folder Structure
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
<Files>
|
|
70
|
-
<Folder name="project-root">
|
|
71
|
-
<File name="package.json" />
|
|
72
|
-
<File name="tsconfig.json" />
|
|
73
|
-
<Folder name="src">
|
|
74
|
-
<File name="index.ts" />
|
|
75
|
-
<Folder name="components">
|
|
76
|
-
<File name="Button.tsx" />
|
|
77
|
-
<File name="Card.tsx" />
|
|
78
|
-
</Folder>
|
|
79
|
-
</Folder>
|
|
80
|
-
</Folder>
|
|
81
|
-
</Files>
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### Minimal Example
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
<Files>
|
|
88
|
-
<Folder name="components">
|
|
89
|
-
<File name="Button.tsx" />
|
|
90
|
-
<File name="Input.tsx" />
|
|
91
|
-
</Folder>
|
|
92
|
-
</Files>
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Best Practices
|
|
96
|
-
|
|
97
|
-
1. Keep the nesting level reasonable (recommended max 3-4 levels deep)
|
|
98
|
-
2. Use clear and descriptive names for files and folders
|
|
99
|
-
3. Consider the user experience when displaying large file structures
|
|
100
|
-
4. Use consistent naming conventions throughout your file tree
|
|
101
|
-
|
|
102
|
-
## Accessibility
|
|
103
|
-
|
|
104
|
-
The File Tree component includes built-in accessibility features:
|
|
105
|
-
|
|
106
|
-
- Keyboard navigation support
|
|
107
|
-
- ARIA attributes for screen readers
|
|
108
|
-
- Focus management for interactive elements
|
|
109
|
-
- High contrast mode support
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Image
|
|
3
|
-
description: A component used to display images in Markdown.
|
|
4
|
-
date: 14-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
In DocuBook, all images written in Markdown are automatically converted to their respective Next.js components. This allows for better optimization and performance in your application.
|
|
8
|
-
|
|
9
|
-
## Images
|
|
10
|
-
|
|
11
|
-
Similarly, images in Markdown are transformed into the Next.js `Image` component. This allows for automatic image optimization, such as lazy loading and resizing, which enhances performance and user experience. Here’s an example:
|
|
12
|
-
|
|
13
|
-
### Markdown
|
|
14
|
-
|
|
15
|
-
```markdown
|
|
16
|
-

|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Rendered Output
|
|
20
|
-
|
|
21
|
-
The above Markdown is converted to:
|
|
22
|
-
|
|
23
|
-
```jsx
|
|
24
|
-
<Image
|
|
25
|
-
src="https://via.placeholder.com/150"
|
|
26
|
-
alt="Alt text for the image"
|
|
27
|
-
width={800}
|
|
28
|
-
height={350}
|
|
29
|
-
/>
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Benefits
|
|
33
|
-
|
|
34
|
-
- **Performance Optimization**: Automatic conversion to Next.js components ensures optimized loading of images.
|
|
35
|
-
- **Responsive Images**: Next.js `Image` component handles responsive images, providing the best quality for various device sizes.
|
|
36
|
-
|
|
37
|
-
By utilizing these features, you can ensure that your documentation is not only visually appealing but also performs efficiently.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Components
|
|
3
|
-
description: This section provides an overview of the custom components available in DocuBook.
|
|
4
|
-
date: 29-11-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Explore the custom components we've defined for easy integration and development within your projects. Each component is designed to enhance your workflow and streamline your development process.
|
|
8
|
-
|
|
9
|
-
<Outlet path="components" />
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Keyboard
|
|
3
|
-
description: Display keyboard keys with platform-specific styling for Windows and macOS.
|
|
4
|
-
date : 19-05-2025
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The `Keyboard` component automatically renders platform-appropriate key symbols for macOS and Windows. It's perfect for documenting keyboard shortcuts in your application.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
### Basic Usage
|
|
12
|
-
|
|
13
|
-
Simply use the `Kbd` component with a `show` prop:
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
<Kbd show="cmd" type="mac" /> + <Kbd show="c" />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Renders as:
|
|
20
|
-
<Kbd show="cmd" type="mac" /> + <Kbd show="c" />
|
|
21
|
-
|
|
22
|
-
### Automatic Symbol Rendering
|
|
23
|
-
|
|
24
|
-
The component automatically renders appropriate symbols based on the platform:
|
|
25
|
-
|
|
26
|
-
```tsx
|
|
27
|
-
{/* Windows style (default) */}
|
|
28
|
-
<Kbd show="ctrl" /> + <Kbd show="v" />
|
|
29
|
-
|
|
30
|
-
{/* Mac style */}
|
|
31
|
-
<Kbd show="cmd" type="mac" /> + <Kbd show="v" type="mac" />
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Renders as:
|
|
35
|
-
- Windows: <Kbd show="ctrl" type="window" /> + <Kbd show="v" type="window" />
|
|
36
|
-
- Mac: <Kbd show="cmd" type="mac" /> + <Kbd show="v" type="mac" />
|
|
37
|
-
|
|
38
|
-
### Custom Content
|
|
39
|
-
|
|
40
|
-
For custom key labels, provide children:
|
|
41
|
-
|
|
42
|
-
```tsx
|
|
43
|
-
<Kbd show="custom">Custom</Kbd>
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Renders as: <Kbd show="custom">Custom</Kbd>
|
|
47
|
-
|
|
48
|
-
## Props
|
|
49
|
-
|
|
50
|
-
| Prop | Type | Default | Description |
|
|
51
|
-
|-----------|---------------------|------------|-------------|
|
|
52
|
-
| `show` | string | (required) | The key identifier (e.g., 'cmd', 'ctrl', 'a') |
|
|
53
|
-
| `type` | string | `window` | for device type `mac` or `window` | Platform style or custom content |
|
|
54
|
-
| `children`| ReactNode | - | Custom content to display (overrides automatic rendering) |
|
|
55
|
-
|
|
56
|
-
## Supported Keys
|
|
57
|
-
|
|
58
|
-
The component includes special handling for common keys:
|
|
59
|
-
|
|
60
|
-
| Key Name | Windows | macOS |
|
|
61
|
-
|-------------|---------|-------|
|
|
62
|
-
| command/cmd | `Win` | `⌘` |
|
|
63
|
-
| option/alt | `Alt` | `⌥` |
|
|
64
|
-
| shift | `Shift` | `⇧` |
|
|
65
|
-
| ctrl/control| `Ctrl` | `⌃` |
|
|
66
|
-
| tab | `Tab` | `⇥` |
|
|
67
|
-
| enter/return| `Enter` | `⏎` |
|
|
68
|
-
| delete | `Del` | `⌫` |
|
|
69
|
-
| escape/esc | `Esc` | `⎋` |
|
|
70
|
-
| up/down/left/right | `↑` `↓` `←` `→` | `↑` `↓` `←` `→` |
|
|
71
|
-
| space | `Space` | `␣` |
|
|
72
|
-
|
|
73
|
-
## Examples
|
|
74
|
-
|
|
75
|
-
### Common Shortcuts
|
|
76
|
-
|
|
77
|
-
```tsx
|
|
78
|
-
{/* Copy shortcut */}
|
|
79
|
-
<Kbd show="ctrl" /> + <Kbd show="c" />
|
|
80
|
-
|
|
81
|
-
{/* Paste shortcut */}
|
|
82
|
-
<Kbd show="cmd" type="mac" /> + <Kbd show="v" type="mac" />
|
|
83
|
-
|
|
84
|
-
{/* Save shortcut */}
|
|
85
|
-
<Kbd show="ctrl" /> + <Kbd show="s" />
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Custom Key Combinations
|
|
89
|
-
|
|
90
|
-
```tsx
|
|
91
|
-
{/* Custom application shortcut */}
|
|
92
|
-
<Kbd show="cmd" type="mac" /> + <Kbd show="option" type="mac" /> + <Kbd show="a" type="mac"/>
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Render as: <Kbd show="cmd" type="mac" /> + <Kbd show="option" type="mac" /> + <Kbd show="a" type="mac"/>
|
|
96
|
-
|
|
97
|
-
### Arrow Key
|
|
98
|
-
|
|
99
|
-
```tsx
|
|
100
|
-
<Kbd show="up" /> <Kbd show="down" /> <Kbd show="left" /> <Kbd show="right" />
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Render as: <Kbd show="up" /> <Kbd show="down" /> <Kbd show="left" /> <Kbd show="right" />
|
|
104
|
-
|
|
105
|
-
## Best Practices
|
|
106
|
-
|
|
107
|
-
1. **Be Consistent**: Stick to one platform style within the same context
|
|
108
|
-
2. **Use Type Wisely**:
|
|
109
|
-
- Use `type="mac"` for Mac-specific documentation
|
|
110
|
-
- Use `type="window"` (default) for Windows/Linux
|
|
111
|
-
3. **Accessibility**: The component uses semantic `<kbd>` HTML for better accessibility
|
|
112
|
-
|
|
113
|
-
## Notes
|
|
114
|
-
|
|
115
|
-
- The component automatically capitalizes single letters (e.g., 'a' becomes 'A')
|
|
116
|
-
- Unrecognized keys are displayed as-is
|
|
117
|
-
- Dark mode is automatically supported through Tailwind's dark mode classes
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Link
|
|
3
|
-
description: A component used to create links that can be used to navigate to other pages.
|
|
4
|
-
date: 14-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
In DocuBook, all links written in Markdown are automatically converted to their respective Next.js components. This allows for better optimization and performance in your application.
|
|
8
|
-
|
|
9
|
-
## Links
|
|
10
|
-
|
|
11
|
-
When you create a link in your Markdown, it is converted to the Next.js `Link` component. This enables client-side navigation and improves loading times. Here’s an example of how a Markdown link is transformed:
|
|
12
|
-
|
|
13
|
-
### Markdown
|
|
14
|
-
|
|
15
|
-
```markdown
|
|
16
|
-
[Visit OpenAI](https://www.openai.com)
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Rendered Output
|
|
20
|
-
|
|
21
|
-
The above Markdown is converted to:
|
|
22
|
-
|
|
23
|
-
```jsx
|
|
24
|
-
<Link href="https://www.openai.com" target="_blank" rel="noopener noreferrer">
|
|
25
|
-
Visit OpenAI
|
|
26
|
-
</Link>
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Benefits
|
|
30
|
-
|
|
31
|
-
- **Performance Optimization**: Automatic conversion to Next.js components ensures optimized loading of links.
|
|
32
|
-
- **Improved User Experience**: Client-side navigation with Next.js `Link` improves the browsing experience.
|
|
33
|
-
|
|
34
|
-
By utilizing these features, you can ensure that your documentation is not only visually appealing but also performs efficiently.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Note
|
|
3
|
-
description: A component used to display different types of messages such as general notes, warnings, or success notifications.
|
|
4
|
-
date: 14-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Preview
|
|
8
|
-
|
|
9
|
-
<Note type="note" title="Note">
|
|
10
|
-
This is a general note to convey information to the user.
|
|
11
|
-
</Note>
|
|
12
|
-
<Note type="danger" title="Danger">
|
|
13
|
-
This is a danger alert to notify the user of a critical issue.
|
|
14
|
-
</Note>
|
|
15
|
-
<Note type="warning" title="Warning">
|
|
16
|
-
This is a warning alert for issues that require attention.
|
|
17
|
-
</Note>
|
|
18
|
-
<Note type="success" title="Success">
|
|
19
|
-
This is a success message to inform the user of successful actions.
|
|
20
|
-
</Note>
|
|
21
|
-
|
|
22
|
-
## Props
|
|
23
|
-
|
|
24
|
-
| Prop | Type | Default | Description |
|
|
25
|
-
| ------- | ---------------------------------------------- | ------- | ---------------------------------------- |
|
|
26
|
-
| `title` | string | "Note" | Sets the title of the note. |
|
|
27
|
-
| `type` | "note" "danger" "success" "warning" | undefined | Determines the visual style of the note. |
|
|
28
|
-
|
|
29
|
-
## Output Markdown
|
|
30
|
-
|
|
31
|
-
```markdown
|
|
32
|
-
<Note type="note" title="Note">
|
|
33
|
-
This is a general note to convey information to the user.
|
|
34
|
-
</Note>
|
|
35
|
-
<Note type="danger" title="Danger">
|
|
36
|
-
This is a danger alert to notify the user of a critical issue.
|
|
37
|
-
</Note>
|
|
38
|
-
<Note type="warning" title="Warning">
|
|
39
|
-
This is a warning alert for issues that require attention.
|
|
40
|
-
</Note>
|
|
41
|
-
<Note type="success" title="Success">
|
|
42
|
-
This is a success message to inform the user of successful actions.
|
|
43
|
-
</Note>
|
|
44
|
-
```
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Release Note
|
|
3
|
-
description: The Release Note component makes it easy for you to write updates for each version of your application.
|
|
4
|
-
date: 31-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The Release Note component makes it easy for you to write and display changelogs in a structured and organized way. This component consists of two main parts: `Release` and `Changes` which can be used to display version, date, release title, and a list of changes categorized by type.
|
|
8
|
-
|
|
9
|
-
## Basic Usage
|
|
10
|
-
|
|
11
|
-
Here is a basic example of using the Release Note component:
|
|
12
|
-
|
|
13
|
-
```markdown
|
|
14
|
-
<Release version="1.10.1" date="2025-05-24" title="Accessibility Improvements and Bug Fixes">
|
|
15
|
-
<Changes type="added">
|
|
16
|
-
- New feature to improve accessibility
|
|
17
|
-
- Keyboard navigation support for dialog components
|
|
18
|
-
</Changes>
|
|
19
|
-
<Changes type="fixed">
|
|
20
|
-
- Bug fix for mobile menu
|
|
21
|
-
- Fixed loading issues on documentation pages
|
|
22
|
-
</Changes>
|
|
23
|
-
</Release>
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
<Accordion title="Render As" defaultOpen={true}>
|
|
27
|
-
<Release version="1.10.1" date="2025-05-24" title="Accessibility Improvements and Bug Fixes">
|
|
28
|
-
<Changes type="added">
|
|
29
|
-
- New feature to improve accessibility
|
|
30
|
-
- Keyboard navigation support for dialog components
|
|
31
|
-
</Changes>
|
|
32
|
-
<Changes type="fixed">
|
|
33
|
-
- Bug fix for mobile menu
|
|
34
|
-
- Fixed loading issues on documentation pages
|
|
35
|
-
</Changes>
|
|
36
|
-
</Release>
|
|
37
|
-
</Accordion>
|
|
38
|
-
|
|
39
|
-
## Release Component
|
|
40
|
-
|
|
41
|
-
The `Release` component is used to display key information about a release version, such as version number, release date, and title.
|
|
42
|
-
|
|
43
|
-
### Release Props
|
|
44
|
-
|
|
45
|
-
| Prop | Type | Required | Description |
|
|
46
|
-
|------|------|----------|-------------|
|
|
47
|
-
| `version` | string | ✅ | Version number to display (without "v" prefix) |
|
|
48
|
-
| `title` | string | ✅ | Title or name of the release |
|
|
49
|
-
| `date` | string | ❌ | Release date in a valid format (example: "2025-05-24") |
|
|
50
|
-
| `children` | ReactNode | ✅ | Child content, typically `Changes` components |
|
|
51
|
-
|
|
52
|
-
```markdown
|
|
53
|
-
<Release
|
|
54
|
-
version="1.10.1"
|
|
55
|
-
date="2025-05-24"
|
|
56
|
-
title="Accessibility Improvements and Bug Fixes"
|
|
57
|
-
>
|
|
58
|
-
{/* Changes content here */}
|
|
59
|
-
</Release>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Changes Component
|
|
63
|
-
|
|
64
|
-
The `Changes` component is used to group changes by category with appropriate icons and colors.
|
|
65
|
-
|
|
66
|
-
### Changes Props
|
|
67
|
-
|
|
68
|
-
| Prop | Type | Required | Description |
|
|
69
|
-
|------|------|----------|-------------|
|
|
70
|
-
| `type` | string | ✅ | Type of change: 'added', 'fixed', 'improved', 'deprecated', or 'removed' |
|
|
71
|
-
| `children` | ReactNode | ✅ | List of changes, can be text with Markdown formatting |
|
|
72
|
-
|
|
73
|
-
### Changes Note
|
|
74
|
-
|
|
75
|
-
| Category | Description |
|
|
76
|
-
|----------|-------------|
|
|
77
|
-
| `added` | New features or functionality added |
|
|
78
|
-
| `fixed` | Bugs or issues that have been fixed |
|
|
79
|
-
| `improved` | Enhancements or optimizations to existing features |
|
|
80
|
-
| `deprecated` | Features that are not recommended and may be removed in future |
|
|
81
|
-
| `removed` | Features that have been completely removed |
|
|
82
|
-
|
|
83
|
-
### Changes Example
|
|
84
|
-
|
|
85
|
-
```jsx
|
|
86
|
-
<Changes type="added">
|
|
87
|
-
- New feature to improve accessibility
|
|
88
|
-
- Keyboard navigation support for dialog components
|
|
89
|
-
</Changes>
|
|
90
|
-
|
|
91
|
-
<Changes type="fixed">
|
|
92
|
-
- Bug fix for mobile menu
|
|
93
|
-
- Fixed loading issues on documentation pages
|
|
94
|
-
</Changes>
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Complete Implementation
|
|
98
|
-
|
|
99
|
-
Here is a complete example of using the Release Note component in an MDX file:
|
|
100
|
-
|
|
101
|
-
````plaintext
|
|
102
|
-
<!-- hidden heading for TOC -->
|
|
103
|
-
|
|
104
|
-
<Release version="1.10.1" date="2025-05-24" title="Accessibility Improvements and Bug Fixes">
|
|
105
|
-
<Changes type="added">
|
|
106
|
-
- Keyboard navigation for all interactive components
|
|
107
|
-
- Screen reader support for table components
|
|
108
|
-
- Dark mode feature with system preference detection
|
|
109
|
-
</Changes>
|
|
110
|
-
|
|
111
|
-
<Changes type="fixed">
|
|
112
|
-
- Fixed mobile menu bug that wouldn't close when navigating to another page
|
|
113
|
-
- Fixed loading issues on documentation pages
|
|
114
|
-
- Fixed display issues in Safari browser
|
|
115
|
-
</Changes>
|
|
116
|
-
|
|
117
|
-
<Changes type="improved">
|
|
118
|
-
- Improved page loading performance
|
|
119
|
-
- Optimized JavaScript bundle size
|
|
120
|
-
- Enhanced responsive design across all viewports
|
|
121
|
-
</Changes>
|
|
122
|
-
</Release>
|
|
123
|
-
````
|
|
124
|
-
|
|
125
|
-
## Usage Tips
|
|
126
|
-
|
|
127
|
-
1. **Date Format**: Use a consistent date format for all releases.
|
|
128
|
-
2. **Version Ordering**: Arrange versions in reverse chronological order (newest version at the top).
|
|
129
|
-
3. **List Items**: You can use standard Markdown list format (`-` or `*`) or write text directly, the component will handle the formatting.
|
|
130
|
-
4. **TOC**: Use hidden headings to ensure each version is detected in the Table of Contents. Use `<div className="sr-only">### v 1.10.1</div>`
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Stepper
|
|
3
|
-
description: A component used to display step-by-step instructions directly within the markdown render.
|
|
4
|
-
date: 14-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
In this guide, we utilize a custom `Stepper` component, specifically designed for DocuBook, which enables users to display step-by-step instructions directly within the markdown render.
|
|
8
|
-
|
|
9
|
-
## Preview
|
|
10
|
-
|
|
11
|
-
<Stepper>
|
|
12
|
-
<StepperItem title="Step 1: Clone the DocuBook Repository">
|
|
13
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum,
|
|
14
|
-
felis sed efficitur tincidunt, justo nulla viverra enim, et maximus nunc
|
|
15
|
-
dolor in lorem.
|
|
16
|
-
</StepperItem>
|
|
17
|
-
<StepperItem title="Step 2: Access the Project Directory">
|
|
18
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non neque ut
|
|
19
|
-
eros auctor accumsan. Mauris a nisl vitae magna ultricies aliquam.
|
|
20
|
-
</StepperItem>
|
|
21
|
-
<StepperItem title="Step 3: Install Required Dependencies">
|
|
22
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut
|
|
23
|
-
ipsum nec nulla ultricies porttitor et non justo.
|
|
24
|
-
</StepperItem>
|
|
25
|
-
</Stepper>
|
|
26
|
-
|
|
27
|
-
## Output Markdown
|
|
28
|
-
|
|
29
|
-
```markdown
|
|
30
|
-
<Stepper>
|
|
31
|
-
<StepperItem title="Step 1: Clone the DocuBook Repository">
|
|
32
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum,
|
|
33
|
-
felis sed efficitur tincidunt, justo nulla viverra enim, et maximus nunc
|
|
34
|
-
dolor in lorem.
|
|
35
|
-
</StepperItem>
|
|
36
|
-
<StepperItem title="Step 2: Access the Project Directory">
|
|
37
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non neque ut
|
|
38
|
-
eros auctor accumsan. Mauris a nisl vitae magna ultricies aliquam.
|
|
39
|
-
</StepperItem>
|
|
40
|
-
<StepperItem title="Step 3: Install Required Dependencies">
|
|
41
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ut
|
|
42
|
-
ipsum nec nulla ultricies porttitor et non justo.
|
|
43
|
-
</StepperItem>
|
|
44
|
-
</Stepper>
|
|
45
|
-
```
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tabs
|
|
3
|
-
description: Organize content into multiple sections with switchable tabs.
|
|
4
|
-
date: 14-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The `Tabs` component allows you to organize content into multiple sections, enabling users to switch between them easily. This is particularly useful for displaying related content in a compact manner.
|
|
8
|
-
|
|
9
|
-
## Preview
|
|
10
|
-
|
|
11
|
-
<Tabs defaultValue="java" className="pt-5 pb-1">
|
|
12
|
-
<TabsList>
|
|
13
|
-
<TabsTrigger value="java">Java</TabsTrigger>
|
|
14
|
-
<TabsTrigger value="typescript">TypeScript</TabsTrigger>
|
|
15
|
-
</TabsList>
|
|
16
|
-
<TabsContent value="java">
|
|
17
|
-
```java
|
|
18
|
-
// HelloWorld.java
|
|
19
|
-
public class HelloWorld {
|
|
20
|
-
public static void main(String[] args) {
|
|
21
|
-
System.out.println("Hello, World!");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
</TabsContent>
|
|
26
|
-
<TabsContent value="typescript">
|
|
27
|
-
```typescript
|
|
28
|
-
// helloWorld.ts
|
|
29
|
-
function helloWorld(): void {
|
|
30
|
-
console.log("Hello, World!");
|
|
31
|
-
}
|
|
32
|
-
helloWorld();
|
|
33
|
-
```
|
|
34
|
-
</TabsContent>
|
|
35
|
-
</Tabs>
|
|
36
|
-
|
|
37
|
-
## Props
|
|
38
|
-
|
|
39
|
-
| Prop | Type | Default | Description |
|
|
40
|
-
| -------------- | -------- | ------- | ------------------------------------------------------ |
|
|
41
|
-
| `defaultValue` | string | null | The value of the tab that is selected by default. |
|
|
42
|
-
| `className` | string | null | Additional CSS classes for styling the Tabs component. |
|
|
43
|
-
|
|
44
|
-
## Output Markdown
|
|
45
|
-
|
|
46
|
-
````plaintext
|
|
47
|
-
<Tabs defaultValue="java" className="pt-5 pb-1">
|
|
48
|
-
<TabsList>
|
|
49
|
-
<TabsTrigger value="java">Java</TabsTrigger>
|
|
50
|
-
<TabsTrigger value="typescript">TypeScript</TabsTrigger>
|
|
51
|
-
</TabsList>
|
|
52
|
-
<TabsContent value="java">
|
|
53
|
-
```java
|
|
54
|
-
// HelloWorld.java
|
|
55
|
-
public class HelloWorld {
|
|
56
|
-
public static void main(String[] args) {
|
|
57
|
-
System.out.println("Hello, World!");
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
```</TabsContent>
|
|
61
|
-
<TabsContent value="typescript">
|
|
62
|
-
```typescript
|
|
63
|
-
// helloWorld.ts
|
|
64
|
-
function helloWorld(): void {
|
|
65
|
-
console.log("Hello, World!");
|
|
66
|
-
}
|
|
67
|
-
helloWorld();
|
|
68
|
-
```</TabsContent>
|
|
69
|
-
</Tabs>
|
|
70
|
-
````
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tooltips
|
|
3
|
-
description: A component used to display additional information when hovering over a word or phrase.
|
|
4
|
-
date: 19-02-2025
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
I have implemented the `tooltips` component into markdown which allows you to add additional information to a word or phrase when hovering. This feature is useful for providing definitions, explanations, or any other additional information that can enhance the user experience.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
You can use tooltips in your Markdown content to provide additional information when hovering over a word or phrase.
|
|
11
|
-
|
|
12
|
-
### Preview
|
|
13
|
-
|
|
14
|
-
What do you know about <Tooltip text="DocuBook" tip="npx @docubook/create@latest" /> ? Create interactive nested documentations using MDX.
|
|
15
|
-
|
|
16
|
-
### Output Markdown
|
|
17
|
-
|
|
18
|
-
The above Markdown is converted to:
|
|
19
|
-
|
|
20
|
-
```markdown:index.mdx
|
|
21
|
-
What do you know about <Tooltip text="DocuBook" tip="npx @docubook/create@latest" /> ? Create interactive nested documentations using MDX.
|
|
22
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Youtube
|
|
3
|
-
description: A component used to embed YouTube videos directly into your documentation.
|
|
4
|
-
date: 14-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
I have implemented a `YouTube` component for your documentation. This component allows you to easily embed YouTube videos directly into your documentation by simply inputting the video's ID.
|
|
8
|
-
|
|
9
|
-
## Preview
|
|
10
|
-
|
|
11
|
-
<Youtube videoId="8sM0Di7Ew9Q" />
|
|
12
|
-
|
|
13
|
-
## Output Markdown
|
|
14
|
-
|
|
15
|
-
```markdown
|
|
16
|
-
<Youtube videoId="8sM0Di7Ew9Q" />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
<Note type="note" title="Usage">
|
|
22
|
-
for example the youtube URL show this https://www.youtube.com/watch?v=8sM0Di7Ew9Q the ID `8sM0Di7Ew9Q`
|
|
23
|
-
</Note>
|