@docubook/create 1.15.1 → 1.15.3

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 (42) hide show
  1. package/package.json +2 -3
  2. package/src/dist/.vscode/image-link.code-snippets +1 -1
  3. package/src/dist/app/page.tsx +1 -1
  4. package/src/dist/components/markdown/AccordionMdx.tsx +10 -6
  5. package/src/dist/contents/docs/api-reference/delete/index.mdx +63 -0
  6. package/src/dist/contents/docs/api-reference/fetch/index.mdx +63 -0
  7. package/src/dist/contents/docs/api-reference/get/index.mdx +63 -0
  8. package/src/dist/contents/docs/api-reference/post/index.mdx +63 -0
  9. package/src/dist/contents/docs/changelog/version-1/index.mdx +22 -660
  10. package/src/dist/contents/docs/changelog/version-2/index.mdx +49 -0
  11. package/src/dist/contents/docs/changelog/version-3/index.mdx +49 -0
  12. package/src/dist/contents/docs/getting-started/development/index.mdx +63 -0
  13. package/src/dist/contents/docs/getting-started/introduction/index.mdx +60 -36
  14. package/src/dist/contents/docs/getting-started/quick-start-guide/index.mdx +44 -126
  15. package/src/dist/docu.json +82 -103
  16. package/src/dist/package.json +1 -1
  17. package/src/dist/contents/docs/components/accordion/index.mdx +0 -86
  18. package/src/dist/contents/docs/components/button/index.mdx +0 -40
  19. package/src/dist/contents/docs/components/card/index.mdx +0 -68
  20. package/src/dist/contents/docs/components/card-group/index.mdx +0 -47
  21. package/src/dist/contents/docs/components/code-block/index.mdx +0 -39
  22. package/src/dist/contents/docs/components/custom/index.mdx +0 -38
  23. package/src/dist/contents/docs/components/file-tree/index.mdx +0 -109
  24. package/src/dist/contents/docs/components/image/index.mdx +0 -37
  25. package/src/dist/contents/docs/components/index.mdx +0 -9
  26. package/src/dist/contents/docs/components/keyboard/index.mdx +0 -117
  27. package/src/dist/contents/docs/components/link/index.mdx +0 -34
  28. package/src/dist/contents/docs/components/note/index.mdx +0 -44
  29. package/src/dist/contents/docs/components/release-note/index.mdx +0 -130
  30. package/src/dist/contents/docs/components/stepper/index.mdx +0 -45
  31. package/src/dist/contents/docs/components/tabs/index.mdx +0 -70
  32. package/src/dist/contents/docs/components/tooltips/index.mdx +0 -22
  33. package/src/dist/contents/docs/components/youtube/index.mdx +0 -23
  34. package/src/dist/contents/docs/getting-started/customize/index.mdx +0 -92
  35. package/src/dist/contents/docs/getting-started/index.mdx +0 -9
  36. package/src/dist/contents/docs/getting-started/installation/index.mdx +0 -84
  37. package/src/dist/contents/docs/getting-started/project-structure/index.mdx +0 -87
  38. package/src/dist/contents/docs/getting-started/theme-colors/coffee/index.mdx +0 -165
  39. package/src/dist/contents/docs/getting-started/theme-colors/default/index.mdx +0 -160
  40. package/src/dist/contents/docs/getting-started/theme-colors/freshlime/index.mdx +0 -161
  41. package/src/dist/contents/docs/getting-started/theme-colors/index.mdx +0 -9
  42. package/src/dist/contents/docs/getting-started/theme-colors/llms/index.mdx +0 -77
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/create",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "description": "CLI to create DocuBook projects",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -26,6 +26,5 @@
26
26
  "figlet": "^1.8.0",
27
27
  "ora": "^8.1.0",
28
28
  "prompts": "^2.4.2"
29
- },
30
- "packageManager": "yarn@4.9.2+sha512.1fc009bc09d13cfd0e19efa44cbfc2b9cf6ca61482725eb35bbc5e257e093ebf4130db6dfe15d604ff4b79efd8e1e8e99b25fa7d0a6197c9f9826358d4d65c3c"
29
+ }
31
30
  }
@@ -2,7 +2,7 @@
2
2
  "DocuImage": {
3
3
  "prefix": "image",
4
4
  "body": [
5
- "![${1:Alt text for the image}](${2:https://via.placeholder.com/150})"
5
+ "![${1:Alt text for the image}](${2:/images/example-img.png})"
6
6
  ],
7
7
  "description": "Snippet untuk menampilkan image komponen."
8
8
  },
@@ -25,7 +25,7 @@ export default function Home() {
25
25
  )}
26
26
  >
27
27
  <AnimatedShinyText className="inline-flex items-center justify-center px-4 py-1 transition ease-out hover:text-neutral-100 hover:duration-300 hover:dark:text-neutral-200">
28
- <span>🚀 New Version - Release v1.15.1</span>
28
+ <span>🚀 New Version - Release v1.15.2</span>
29
29
  <ArrowRightIcon className="ml-1 size-3 transition-transform duration-300 ease-in-out group-hover:translate-x-0.5" />
30
30
  </AnimatedShinyText>
31
31
  </div>
@@ -2,29 +2,32 @@
2
2
 
3
3
  import { ReactNode, useState } from 'react';
4
4
  import { ChevronRight } from 'lucide-react';
5
+ import * as Icons from "lucide-react";
5
6
  import { cn } from '@/lib/utils';
6
7
 
7
8
  type AccordionProps = {
8
9
  title: string;
9
10
  children?: ReactNode;
10
11
  defaultOpen?: boolean;
11
- className?: string;
12
+ icon?: keyof typeof Icons;
12
13
  };
13
14
 
14
- const Accordion = ({
15
+ const Accordion: React.FC<AccordionProps> = ({
15
16
  title,
16
17
  children,
17
18
  defaultOpen = false,
18
- className,
19
+ icon,
19
20
  }: AccordionProps) => {
20
21
  const [isOpen, setIsOpen] = useState(defaultOpen);
21
22
 
23
+ const Icon = icon ? (Icons[icon] as React.FC<{ className?: string }>) : null;
24
+
22
25
  return (
23
- <div className={cn("border rounded-lg overflow-hidden", className)}>
26
+ <div className={cn("border rounded-lg overflow-hidden")}>
24
27
  <button
25
28
  type="button"
26
29
  onClick={() => setIsOpen(!isOpen)}
27
- className="flex items-center my-auto space-x-2 space-y-2 w-full px-4 h-12 transition-colors bg-background dark:hover:bg-muted/50 hover:bg-muted/15"
30
+ className="flex items-center space-x-2 w-full px-4 h-12 transition-colors bg-background dark:hover:bg-muted/50 hover:bg-muted/15"
28
31
  >
29
32
  <ChevronRight
30
33
  className={cn(
@@ -32,7 +35,8 @@ const Accordion = ({
32
35
  isOpen && "rotate-90"
33
36
  )}
34
37
  />
35
- <h3 className="font-medium text-base text-foreground pb-2">{title}</h3>
38
+ {Icon && <Icon className="text-foreground w-4 h-4"/> }
39
+ <h3 className="font-medium text-base text-foreground m-0">{title}</h3>
36
40
  </button>
37
41
 
38
42
  {isOpen && (
@@ -0,0 +1,63 @@
1
+ ---
2
+ title : Delete
3
+ description : example api DELETE
4
+ date : 10-12-2024
5
+ ---
6
+
7
+ ## Heading 2
8
+
9
+ this is regular text written in markdown format with `inline code`, **bold**, and *italic*
10
+
11
+ ### Heading 3
12
+
13
+ example of ordered list format :
14
+
15
+ - list one
16
+ - sub list
17
+ - list two
18
+ - list three
19
+
20
+ #### Heading 4
21
+
22
+ Below is an example of how to write a code block :
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
+ example note :
36
+ ```plaintext
37
+ <Note type="note" title="Note">
38
+ This is a general note to convey information to the user.
39
+ </Note>
40
+ ```
41
+
42
+ displaying an image in markdown format :
43
+
44
+ ```plaintext
45
+ ![Alt text for the image](/images/example-img.png)
46
+ ```
47
+
48
+ render as :
49
+ ![Alt text for the image](/images/example-img.png)
50
+
51
+ For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page.
52
+
53
+ <Note type="warning" title="Warning">
54
+ every page that is indexed in a folder will have an `index.mdx` file with metadata :
55
+ ```plaintext
56
+ ---
57
+ title : Introduction
58
+ description : overview or synopsis of a project
59
+ date : 10-12-2024
60
+ image : example-img.png
61
+ ---
62
+ ```
63
+ </Note>
@@ -0,0 +1,63 @@
1
+ ---
2
+ title : Fetch
3
+ description : example api FETCH
4
+ date : 10-12-2024
5
+ ---
6
+
7
+ ## Heading 2
8
+
9
+ this is regular text written in markdown format with `inline code`, **bold**, and *italic*
10
+
11
+ ### Heading 3
12
+
13
+ example of ordered list format :
14
+
15
+ - list one
16
+ - sub list
17
+ - list two
18
+ - list three
19
+
20
+ #### Heading 4
21
+
22
+ Below is an example of how to write a code block :
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
+ example note :
36
+ ```plaintext
37
+ <Note type="note" title="Note">
38
+ This is a general note to convey information to the user.
39
+ </Note>
40
+ ```
41
+
42
+ displaying an image in markdown format :
43
+
44
+ ```plaintext
45
+ ![Alt text for the image](/images/example-img.png)
46
+ ```
47
+
48
+ render as :
49
+ ![Alt text for the image](/images/example-img.png)
50
+
51
+ For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page.
52
+
53
+ <Note type="warning" title="Warning">
54
+ every page that is indexed in a folder will have an `index.mdx` file with metadata :
55
+ ```plaintext
56
+ ---
57
+ title : Introduction
58
+ description : overview or synopsis of a project
59
+ date : 10-12-2024
60
+ image : example-img.png
61
+ ---
62
+ ```
63
+ </Note>
@@ -0,0 +1,63 @@
1
+ ---
2
+ title : Get
3
+ description : example api GET
4
+ date : 10-12-2024
5
+ ---
6
+
7
+ ## Heading 2
8
+
9
+ this is regular text written in markdown format with `inline code`, **bold**, and *italic*
10
+
11
+ ### Heading 3
12
+
13
+ example of ordered list format :
14
+
15
+ - list one
16
+ - sub list
17
+ - list two
18
+ - list three
19
+
20
+ #### Heading 4
21
+
22
+ Below is an example of how to write a code block :
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
+ example note :
36
+ ```plaintext
37
+ <Note type="note" title="Note">
38
+ This is a general note to convey information to the user.
39
+ </Note>
40
+ ```
41
+
42
+ displaying an image in markdown format :
43
+
44
+ ```plaintext
45
+ ![Alt text for the image](/images/example-img.png)
46
+ ```
47
+
48
+ render as :
49
+ ![Alt text for the image](/images/example-img.png)
50
+
51
+ For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page.
52
+
53
+ <Note type="warning" title="Warning">
54
+ every page that is indexed in a folder will have an `index.mdx` file with metadata :
55
+ ```plaintext
56
+ ---
57
+ title : Introduction
58
+ description : overview or synopsis of a project
59
+ date : 10-12-2024
60
+ image : example-img.png
61
+ ---
62
+ ```
63
+ </Note>
@@ -0,0 +1,63 @@
1
+ ---
2
+ title : Post
3
+ description : example api POST
4
+ date : 10-12-2024
5
+ ---
6
+
7
+ ## Heading 2
8
+
9
+ this is regular text written in markdown format with `inline code`, **bold**, and *italic*
10
+
11
+ ### Heading 3
12
+
13
+ example of ordered list format :
14
+
15
+ - list one
16
+ - sub list
17
+ - list two
18
+ - list three
19
+
20
+ #### Heading 4
21
+
22
+ Below is an example of how to write a code block :
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
+ example note :
36
+ ```plaintext
37
+ <Note type="note" title="Note">
38
+ This is a general note to convey information to the user.
39
+ </Note>
40
+ ```
41
+
42
+ displaying an image in markdown format :
43
+
44
+ ```plaintext
45
+ ![Alt text for the image](/images/example-img.png)
46
+ ```
47
+
48
+ render as :
49
+ ![Alt text for the image](/images/example-img.png)
50
+
51
+ For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page.
52
+
53
+ <Note type="warning" title="Warning">
54
+ every page that is indexed in a folder will have an `index.mdx` file with metadata :
55
+ ```plaintext
56
+ ---
57
+ title : Introduction
58
+ description : overview or synopsis of a project
59
+ date : 10-12-2024
60
+ image : example-img.png
61
+ ---
62
+ ```
63
+ </Note>