@docubook/create 1.15.1 → 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.
Files changed (40) hide show
  1. package/package.json +2 -3
  2. package/src/dist/app/page.tsx +1 -1
  3. package/src/dist/contents/docs/api-reference/delete/index.mdx +63 -0
  4. package/src/dist/contents/docs/api-reference/fetch/index.mdx +63 -0
  5. package/src/dist/contents/docs/api-reference/get/index.mdx +63 -0
  6. package/src/dist/contents/docs/api-reference/post/index.mdx +63 -0
  7. package/src/dist/contents/docs/changelog/version-1/index.mdx +22 -660
  8. package/src/dist/contents/docs/changelog/version-2/index.mdx +49 -0
  9. package/src/dist/contents/docs/changelog/version-3/index.mdx +49 -0
  10. package/src/dist/contents/docs/getting-started/development/index.mdx +63 -0
  11. package/src/dist/contents/docs/getting-started/introduction/index.mdx +49 -36
  12. package/src/dist/contents/docs/getting-started/quick-start-guide/index.mdx +44 -126
  13. package/src/dist/docu.json +90 -104
  14. package/src/dist/package.json +1 -1
  15. package/src/dist/contents/docs/components/accordion/index.mdx +0 -86
  16. package/src/dist/contents/docs/components/button/index.mdx +0 -40
  17. package/src/dist/contents/docs/components/card/index.mdx +0 -68
  18. package/src/dist/contents/docs/components/card-group/index.mdx +0 -47
  19. package/src/dist/contents/docs/components/code-block/index.mdx +0 -39
  20. package/src/dist/contents/docs/components/custom/index.mdx +0 -38
  21. package/src/dist/contents/docs/components/file-tree/index.mdx +0 -109
  22. package/src/dist/contents/docs/components/image/index.mdx +0 -37
  23. package/src/dist/contents/docs/components/index.mdx +0 -9
  24. package/src/dist/contents/docs/components/keyboard/index.mdx +0 -117
  25. package/src/dist/contents/docs/components/link/index.mdx +0 -34
  26. package/src/dist/contents/docs/components/note/index.mdx +0 -44
  27. package/src/dist/contents/docs/components/release-note/index.mdx +0 -130
  28. package/src/dist/contents/docs/components/stepper/index.mdx +0 -45
  29. package/src/dist/contents/docs/components/tabs/index.mdx +0 -70
  30. package/src/dist/contents/docs/components/tooltips/index.mdx +0 -22
  31. package/src/dist/contents/docs/components/youtube/index.mdx +0 -23
  32. package/src/dist/contents/docs/getting-started/customize/index.mdx +0 -92
  33. package/src/dist/contents/docs/getting-started/index.mdx +0 -9
  34. package/src/dist/contents/docs/getting-started/installation/index.mdx +0 -84
  35. package/src/dist/contents/docs/getting-started/project-structure/index.mdx +0 -87
  36. package/src/dist/contents/docs/getting-started/theme-colors/coffee/index.mdx +0 -165
  37. package/src/dist/contents/docs/getting-started/theme-colors/default/index.mdx +0 -160
  38. package/src/dist/contents/docs/getting-started/theme-colors/freshlime/index.mdx +0 -161
  39. package/src/dist/contents/docs/getting-started/theme-colors/index.mdx +0 -9
  40. package/src/dist/contents/docs/getting-started/theme-colors/llms/index.mdx +0 -77
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docubook",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -1,86 +0,0 @@
1
- ---
2
- title: Accordion
3
- description: A component used to create collapsible content that can be hidden and shown again.
4
- date: 22-12-2024
5
- ---
6
-
7
- ## Preview
8
-
9
- ### Basic Usage
10
-
11
- <Accordion title="Click to expand" defaultOpen={true}>
12
- This is a simple accordion component that can be toggled by clicking the header. The content can include any valid React nodes, including text, components, and markdown.
13
- </Accordion>
14
-
15
- ### With Code Block
16
-
17
- <Accordion title="Code Example" className="mt-4">
18
- ```javascript:utils.js showLineNumbers
19
- // Example of using the Accordion component
20
- import Accordion from '@/components/markdown/AccordionMdx';
21
-
22
- function Example() {
23
- return (
24
- <Accordion title="Click to see code">
25
- <pre>
26
- {`function greet() {\n console.log('Hello, world!');\n}`}
27
- </pre>
28
- </Accordion>
29
- );
30
- }
31
- ```
32
- </Accordion>
33
-
34
- ### With Markdown Content
35
-
36
- <Accordion title="Markdown Example" className="mt-4">
37
- ## This is a markdown heading
38
-
39
- - List item 1
40
- - List item 2
41
- - List item 3
42
-
43
- You can include **bold** and *italic* text, [links](#), and other markdown elements.
44
- </Accordion>
45
-
46
- ## Props
47
-
48
- | Prop | Type | Default | Description |
49
- |------|------|---------|-------------|
50
- | `title` | string | - | **Required**. The text displayed in the accordion header. |
51
- | `children` | ReactNode | null | The content to be displayed when the accordion is expanded. Can be plain text, markdown, or React components. |
52
- | `defaultOpen` | boolean | false | When true, the accordion will be expanded by default. |
53
- | `className` | string | undefined | Additional CSS classes to apply to the accordion container. |
54
-
55
- ## Output Markdown
56
-
57
- <Tabs defaultValue="markdown" className="pt-5 pb-1">
58
- <TabsList>
59
- <TabsTrigger value="markdown">Markdown</TabsTrigger>
60
- <TabsTrigger value="codeblock">Code Block</TabsTrigger>
61
- </TabsList>
62
- <TabsContent value="markdown">
63
- ```plaintext
64
- <Accordion title="Markdown">
65
- this is an example of plain text content from the accordion component and below is markdown ;
66
- 1. number one
67
- 2. number two
68
- 3. number three
69
- </Accordion>
70
- ```
71
- </TabsContent>
72
- <TabsContent value="codeblock">
73
- ````plaintext
74
- <Accordion title="Code Block" defaultOpen={true}>
75
- ```javascript:main.js showLineNumbers {3-4}
76
- function isRocketAboutToCrash() {
77
- // Check if the rocket is stable
78
- if (!isStable()) {
79
- NoCrash(); // Prevent the crash
80
- }
81
- }
82
- ```
83
- </Accordion>
84
- ````
85
- </TabsContent>
86
- </Tabs>
@@ -1,40 +0,0 @@
1
- ---
2
- title: Button
3
- description: A component used to create buttons that can be used to trigger actions or navigate to other pages.
4
- date: 14-12-2024
5
- ---
6
-
7
- ## Preview
8
-
9
- <Button
10
- text="Learn More"
11
- href="https://learn.example.com"
12
- icon="MoveUpRight"
13
- size="md"
14
- target="_blank"
15
- variation="primary"
16
- />
17
-
18
- ## Props
19
-
20
- | Prop | Type | Default | Description |
21
- | ----------- | -------- | ----------- | -------------------------------------------- |
22
- | `text` | string | undefined | The button text |
23
- | `href` | string | **required**| The URL to navigate to |
24
- | `icon` | string | undefined | Lucide icon name (e.g. "MoveUpRight") |
25
- | `size` | string | "md" | Button size: `"sm"`, `"md"`, or `"lg"` |
26
- | `target` | string | undefined | Link target (e.g. "_blank") |
27
- | `variation` | string | "primary" | Button style: `"primary"`, `"accent"`, or `"outline"` |
28
-
29
- ## Output Markdown
30
-
31
- ```markdown
32
- <Button
33
- text="Learn More"
34
- href="https://learn.example.com"
35
- icon="MoveUpRight"
36
- size="md"
37
- target="_blank"
38
- variation="primary"
39
- />
40
- ```
@@ -1,68 +0,0 @@
1
- ---
2
- title: Cards
3
- description: A component used to create cards that can be used to display content in a compact and organized way.
4
- date: 20-02-2025
5
- ---
6
-
7
- ## Example
8
-
9
- ### Card with Link and icon
10
-
11
- <Card title="Click on me" icon="Link" href="/docs/components/card-group">
12
- This is how you use a card with an icon and a link. Clicking on this card
13
- brings you to the Card Group page.
14
- </Card>
15
-
16
- ### Card Horizontal
17
-
18
- <Card title="Horizontal Card" icon="Layout" horizontal>
19
- This is a horizontal card layout.
20
- </Card>
21
-
22
- ### Card Simple
23
-
24
- <Card title="Simple Card">
25
- This is a simple card without an icon or link.
26
- </Card>
27
-
28
-
29
- ## Props
30
-
31
- | Prop | Type | Default | Description |
32
- | ------------- | -------- | ------- | ------------------------------------------------------- |
33
- | `title` | string | null | The value of card title. |
34
- | `icon` | string | null | The value of card icon render from lucide. |
35
- | `href` | string | null | The value of card link url. |
36
- | `horizontal` | boolean | undefined | horizontal layout for card. |
37
-
38
- ## Output Markdown
39
-
40
- <Tabs defaultValue="link" className="pt-5 pb-1">
41
- <TabsList>
42
- <TabsTrigger value="link">Link & Icon</TabsTrigger>
43
- <TabsTrigger value="horizontal">Horizontal</TabsTrigger>
44
- <TabsTrigger value="simple">Simple</TabsTrigger>
45
- </TabsList>
46
- <TabsContent value="link">
47
- ```markdown
48
- <Card title="Click on me" icon="Link" href="/docs/getting-started/components/button">
49
- This is how you use a card with an icon and a link. Clicking on this card
50
- brings you to the Card Group page.
51
- </Card>
52
- ```
53
- </TabsContent>
54
- <TabsContent value="horizontal">
55
- ```markdown
56
- <Card title="Horizontal Card" icon="Layout" horizontal>
57
- This is a horizontal card layout.
58
- </Card>
59
- ```
60
- </TabsContent>
61
- <TabsContent value="simple">
62
- ```markdown
63
- <Card title="Simple Card">
64
- This is a simple card without an icon or link.
65
- </Card>
66
- ```
67
- </TabsContent>
68
- </Tabs>
@@ -1,47 +0,0 @@
1
- ---
2
- title: Card Group
3
- description: A component used to create card groups that can be used to display multiple cards in a compact and organized way.
4
- date: 20-02-2025
5
- ---
6
-
7
- ## Preview
8
-
9
- <CardGroup cols={2}>
10
- <Card title="Heading 1" icon="Heading1">
11
- This is an example of card content with columns.
12
- </Card>
13
- <Card title="Heading 2" icon="Heading2">
14
- This is an example of card content with columns.
15
- </Card>
16
- <Card title="Grid Card" icon="Grid" horizontal>
17
- This is a horizontal card layout.
18
- </Card>
19
- <Card title="Horizontal Card" icon="Layout" horizontal>
20
- This is a horizontal card layout.
21
- </Card>
22
- </CardGroup>
23
-
24
- ## Props
25
-
26
- | Prop | Type | Default | Description |
27
- | ------------- | -------- | ------- | ------------------------------------------------------- |
28
- | `cols` | number | {2} | By default 2 The number of columns per row |
29
-
30
- ## Output Markdown
31
-
32
- ```markdown
33
- <CardGroup cols={2}>
34
- <Card title="Heading 1" icon="Heading1">
35
- This is an example of card content with columns.
36
- </Card>
37
- <Card title="Heading 2" icon="Heading2">
38
- This is an example of card content with columns.
39
- </Card>
40
- <Card title="Grid Card" icon="Grid" horizontal>
41
- This is a horizontal card layout.
42
- </Card>
43
- <Card title="Horizontal Card" icon="Layout" horizontal>
44
- This is a horizontal card layout.
45
- </Card>
46
- </CardGroup>
47
- ```
@@ -1,39 +0,0 @@
1
- ---
2
- title: Code Block
3
- description: A component used to display code snippets with optional line numbering and line highlighting.
4
- date: 14-12-2024
5
- ---
6
-
7
- ## Preview
8
-
9
- ```javascript:main.js showLineNumbers {3-4}
10
- function isRocketAboutToCrash() {
11
- // Check if the rocket is stable
12
- if (!isStable()) {
13
- NoCrash(); // Prevent the crash
14
- }
15
- }
16
- ```
17
-
18
- In this example, line numbers are displayed for lines 1 to 4. You can specify which lines to highlight using the format `{2,3-5}`.
19
-
20
- ## Output Markdown
21
-
22
- You can directly use the following syntax to create a code block with line numbers and highlight specific lines:
23
-
24
- ````plaintext
25
- ```javascript:main.js showLineNumbers {3-4}
26
- function isRocketAboutToCrash() {
27
- // Check if the rocket is stable
28
- if (!isStable()) {
29
- NoCrash(); // Prevent the crash
30
- }
31
- }
32
- ```
33
- ````
34
-
35
- ## Features
36
-
37
- - **Line Numbers**: Enable line numbers by adding `showLineNumbers` after the opening backticks.
38
- - **Highlight Lines**: Specify lines to highlight using curly braces (e.g., `{2,3-5}`).
39
- - **Syntax Highlighting**: Use the appropriate language for syntax highlighting.
@@ -1,38 +0,0 @@
1
- ---
2
- title: Custom Components
3
- description: How to create custom components for Markdown.
4
- date: 14-12-2024
5
- ---
6
-
7
- To add custom components in DocuBook, follow these steps:
8
-
9
- 1. **Create Your Component**: First, create your custom component in the `@components/markdown` folder. For example, you might create a file named `Outlet.tsx`.
10
-
11
- 2. **Import Your Component**: Next, open the `@lib/markdown.ts` file. This is where you'll register your custom component for use in Markdown.
12
-
13
- 3. **Add Your Component to the Components Object**: In the `@lib/markdown.ts` file, import your custom component and add it to the `components` object. Here’s how to do it:
14
-
15
- ```ts
16
- import Outlet from "@/components/markdown/outlet";
17
-
18
- // Add custom components
19
- const components = {
20
- Outlet,
21
- };
22
- ```
23
-
24
- 4. **Using Your Custom Component in Markdown**: After registering your component, you can now use it anywhere in your Markdown content. For instance, if your `Outlet` component is designed to display additional information, you can use it as follows:
25
-
26
- ### Markdown Example
27
-
28
- ```markdown
29
- <Outlet>
30
- This is some custom content rendered by the Outlet component!
31
- </Outlet>
32
- ```
33
-
34
- ### Rendered Output
35
-
36
- This will render the content inside the `Outlet` component, allowing you to create reusable and dynamic Markdown content.
37
-
38
- By following these steps, you can extend the capabilities of your Markdown documentation and create a more engaging user experience.
@@ -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
- ![Alt text for the image](https://via.placeholder.com/150)
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
- ```