From 9b6ef22262bacef467877706281ae25e89fdcb3a Mon Sep 17 00:00:00 2001 From: Bot DocuBook Date: Sun, 10 Aug 2025 06:41:17 +0000 Subject: [PATCH] chore: Sync package version v1.15.3 --- .vscode/image-link.code-snippets | 2 +- components/markdown/AccordionMdx.tsx | 16 ++++++++++------ contents/docs/api-reference/delete/index.mdx | 4 ++-- contents/docs/api-reference/fetch/index.mdx | 4 ++-- contents/docs/api-reference/get/index.mdx | 4 ++-- contents/docs/api-reference/post/index.mdx | 4 ++-- .../docs/getting-started/development/index.mdx | 4 ++-- .../docs/getting-started/introduction/index.mdx | 17 ++++++++++++++--- .../getting-started/quick-start-guide/index.mdx | 4 ++-- docu.json | 13 +++---------- package.json | 2 +- 11 files changed, 41 insertions(+), 33 deletions(-) diff --git a/.vscode/image-link.code-snippets b/.vscode/image-link.code-snippets index b4a86c5..18c1333 100644 --- a/.vscode/image-link.code-snippets +++ b/.vscode/image-link.code-snippets @@ -2,7 +2,7 @@ "DocuImage": { "prefix": "image", "body": [ - "![${1:Alt text for the image}](${2:https://via.placeholder.com/150})" + "![${1:Alt text for the image}](${2:/images/example-img.png})" ], "description": "Snippet untuk menampilkan image komponen." }, diff --git a/components/markdown/AccordionMdx.tsx b/components/markdown/AccordionMdx.tsx index 9ad830b..45e23c6 100644 --- a/components/markdown/AccordionMdx.tsx +++ b/components/markdown/AccordionMdx.tsx @@ -2,29 +2,32 @@ import { ReactNode, useState } from 'react'; import { ChevronRight } from 'lucide-react'; +import * as Icons from "lucide-react"; import { cn } from '@/lib/utils'; type AccordionProps = { title: string; children?: ReactNode; defaultOpen?: boolean; - className?: string; + icon?: keyof typeof Icons; }; -const Accordion = ({ +const Accordion: React.FC = ({ title, children, defaultOpen = false, - className, + icon, }: AccordionProps) => { const [isOpen, setIsOpen] = useState(defaultOpen); + const Icon = icon ? (Icons[icon] as React.FC<{ className?: string }>) : null; + return ( -
+
{isOpen && ( diff --git a/contents/docs/api-reference/delete/index.mdx b/contents/docs/api-reference/delete/index.mdx index bb0cd9c..9dcf641 100644 --- a/contents/docs/api-reference/delete/index.mdx +++ b/contents/docs/api-reference/delete/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. diff --git a/contents/docs/api-reference/fetch/index.mdx b/contents/docs/api-reference/fetch/index.mdx index ce0f5d0..1f8a06c 100644 --- a/contents/docs/api-reference/fetch/index.mdx +++ b/contents/docs/api-reference/fetch/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. diff --git a/contents/docs/api-reference/get/index.mdx b/contents/docs/api-reference/get/index.mdx index 916db15..a6b2dbe 100644 --- a/contents/docs/api-reference/get/index.mdx +++ b/contents/docs/api-reference/get/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. diff --git a/contents/docs/api-reference/post/index.mdx b/contents/docs/api-reference/post/index.mdx index fa780cd..52eabcc 100644 --- a/contents/docs/api-reference/post/index.mdx +++ b/contents/docs/api-reference/post/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. diff --git a/contents/docs/getting-started/development/index.mdx b/contents/docs/getting-started/development/index.mdx index a43ea12..f7e49f1 100644 --- a/contents/docs/getting-started/development/index.mdx +++ b/contents/docs/getting-started/development/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. diff --git a/contents/docs/getting-started/introduction/index.mdx b/contents/docs/getting-started/introduction/index.mdx index aef1f89..ec21c78 100644 --- a/contents/docs/getting-started/introduction/index.mdx +++ b/contents/docs/getting-started/introduction/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. @@ -60,4 +60,15 @@ date : 10-12-2024 image : example-img.png --- ``` - \ No newline at end of file + + + + ```javascript:main.js showLineNumbers {3-4} + function isRocketAboutToCrash() { + // Check if the rocket is stable + if (!isStable()) { + NoCrash(); // Prevent the crash + } + } + ``` + diff --git a/contents/docs/getting-started/quick-start-guide/index.mdx b/contents/docs/getting-started/quick-start-guide/index.mdx index ea98cff..4bee5b2 100644 --- a/contents/docs/getting-started/quick-start-guide/index.mdx +++ b/contents/docs/getting-started/quick-start-guide/index.mdx @@ -42,11 +42,11 @@ example note : displaying an image in markdown format : ```plaintext -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) ``` render as : -![Alt text for the image](https://via.placeholder.com/150) +![Alt text for the image](/images/example-img.png) For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. diff --git a/docu.json b/docu.json index 55c4b76..01c20bb 100644 --- a/docu.json +++ b/docu.json @@ -70,14 +70,7 @@ "items": [ { "title": "Introduction", "href": "/introduction" }, { "title": "Quick Start Guide", "href": "/quick-start-guide" }, - { "title": "Development", "href": "/development" }, - { - "title": "Config", - "href": "/config", - "items": [ - { "title": "Sub Config", "href": "/subconfig" } - ] - } + { "title": "Development", "href": "/development" } ] }, { @@ -98,10 +91,10 @@ }, { "title": "Changelog", - "href": "/Changelog", + "href": "/changelog", "noLink": true, "context": { - "icon": "Hystory", + "icon": "History", "description": "Update and Changes", "title": "Release" }, diff --git a/package.json b/package.json index 1f2760f..cd8c40a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docubook", - "version": "1.15.2", + "version": "1.15.3", "private": true, "scripts": { "dev": "next dev",