@docubook/create 1.11.3 → 1.13.0

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 (54) hide show
  1. package/bun.lock +102 -0
  2. package/package.json +1 -1
  3. package/src/dist/.vscode/accordion.code-snippets +14 -0
  4. package/src/dist/.vscode/button.code-snippets +16 -0
  5. package/src/dist/.vscode/card.code-snippets +54 -0
  6. package/src/dist/.vscode/codeblock.code-snippets +16 -0
  7. package/src/dist/.vscode/file-tree.code-snippets +53 -0
  8. package/src/dist/.vscode/image-link.code-snippets +16 -0
  9. package/src/dist/.vscode/keyboard.code-snippets +23 -0
  10. package/src/dist/.vscode/metadata.code-snippets +13 -0
  11. package/src/dist/.vscode/note.code-snippets +38 -0
  12. package/src/dist/.vscode/release.code-snippets +49 -0
  13. package/src/dist/.vscode/stepper.code-snippets +24 -0
  14. package/src/dist/.vscode/table.code-snippets +12 -0
  15. package/src/dist/.vscode/tabs.code-snippets +33 -0
  16. package/src/dist/.vscode/tooltips.code-snippets +9 -0
  17. package/src/dist/.vscode/typography.code-snippets +33 -0
  18. package/src/dist/.vscode/youtube.code-snippets +9 -0
  19. package/src/dist/app/page.tsx +2 -2
  20. package/src/dist/components/context-popover.tsx +133 -0
  21. package/src/dist/components/docs-menu.tsx +39 -21
  22. package/src/dist/components/leftbar.tsx +10 -4
  23. package/src/dist/components/markdown/FileTreeMdx.tsx +119 -0
  24. package/src/dist/components/search.tsx +36 -4
  25. package/src/dist/contents/docs/{getting-started/changelog → changelog/version-1}/index.mdx +57 -0
  26. package/src/dist/contents/docs/{getting-started/components → components}/card/index.mdx +3 -3
  27. package/src/dist/contents/docs/components/file-tree/index.mdx +109 -0
  28. package/src/dist/contents/docs/getting-started/customize/index.mdx +0 -2
  29. package/src/dist/contents/docs/getting-started/installation/index.mdx +1 -1
  30. package/src/dist/contents/docs/getting-started/introduction/index.mdx +1 -1
  31. package/src/dist/contents/docs/getting-started/quick-start-guide/index.mdx +78 -60
  32. package/src/dist/docu.json +47 -28
  33. package/src/dist/lib/markdown.ts +6 -61
  34. package/src/dist/lib/routes-config.ts +8 -1
  35. package/src/dist/package.json +1 -1
  36. package/src/dist/styles/globals.css +0 -17
  37. package/src/dist/tailwind.config.ts +0 -1
  38. package/src/dist/contents/docs/getting-started/components/index.mdx +0 -9
  39. package/src/dist/next-env.d.ts +0 -5
  40. package/src/dist/styles/editor.css +0 -57
  41. /package/src/dist/contents/docs/{getting-started/components → components}/accordion/index.mdx +0 -0
  42. /package/src/dist/contents/docs/{getting-started/components → components}/button/index.mdx +0 -0
  43. /package/src/dist/contents/docs/{getting-started/components → components}/card-group/index.mdx +0 -0
  44. /package/src/dist/contents/docs/{getting-started/components → components}/code-block/index.mdx +0 -0
  45. /package/src/dist/contents/docs/{getting-started/components → components}/custom/index.mdx +0 -0
  46. /package/src/dist/contents/docs/{getting-started/components → components}/image/index.mdx +0 -0
  47. /package/src/dist/contents/docs/{getting-started/components → components}/keyboard/index.mdx +0 -0
  48. /package/src/dist/contents/docs/{getting-started/components → components}/link/index.mdx +0 -0
  49. /package/src/dist/contents/docs/{getting-started/components → components}/note/index.mdx +0 -0
  50. /package/src/dist/contents/docs/{getting-started/components → components}/release-note/index.mdx +0 -0
  51. /package/src/dist/contents/docs/{getting-started/components → components}/stepper/index.mdx +0 -0
  52. /package/src/dist/contents/docs/{getting-started/components → components}/tabs/index.mdx +0 -0
  53. /package/src/dist/contents/docs/{getting-started/components → components}/tooltips/index.mdx +0 -0
  54. /package/src/dist/contents/docs/{getting-started/components → components}/youtube/index.mdx +0 -0
package/bun.lock ADDED
@@ -0,0 +1,102 @@
1
+ {
2
+ "lockfileVersion": 1,
3
+ "workspaces": {
4
+ "": {
5
+ "name": "@docubook/create",
6
+ "dependencies": {
7
+ "boxen": "^8.0.1",
8
+ "chalk": "^5.3.0",
9
+ "cli-progress": "^3.12.0",
10
+ "commander": "^12.1.0",
11
+ "enquirer": "^2.4.1",
12
+ "figlet": "^1.8.0",
13
+ "ora": "^8.1.0",
14
+ },
15
+ },
16
+ },
17
+ "packages": {
18
+ "ansi-align": ["ansi-align@3.0.1", "", { "dependencies": { "string-width": "^4.1.0" } }, "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w=="],
19
+
20
+ "ansi-colors": ["ansi-colors@4.1.3", "", {}, "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw=="],
21
+
22
+ "ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
23
+
24
+ "ansi-styles": ["ansi-styles@6.2.1", "", {}, "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug=="],
25
+
26
+ "boxen": ["boxen@8.0.1", "", { "dependencies": { "ansi-align": "^3.0.1", "camelcase": "^8.0.0", "chalk": "^5.3.0", "cli-boxes": "^3.0.0", "string-width": "^7.2.0", "type-fest": "^4.21.0", "widest-line": "^5.0.0", "wrap-ansi": "^9.0.0" } }, "sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw=="],
27
+
28
+ "camelcase": ["camelcase@8.0.0", "", {}, "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA=="],
29
+
30
+ "chalk": ["chalk@5.4.1", "", {}, "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w=="],
31
+
32
+ "cli-boxes": ["cli-boxes@3.0.0", "", {}, "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g=="],
33
+
34
+ "cli-cursor": ["cli-cursor@5.0.0", "", { "dependencies": { "restore-cursor": "^5.0.0" } }, "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw=="],
35
+
36
+ "cli-progress": ["cli-progress@3.12.0", "", { "dependencies": { "string-width": "^4.2.3" } }, "sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A=="],
37
+
38
+ "cli-spinners": ["cli-spinners@2.9.2", "", {}, "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="],
39
+
40
+ "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="],
41
+
42
+ "emoji-regex": ["emoji-regex@10.4.0", "", {}, "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw=="],
43
+
44
+ "enquirer": ["enquirer@2.4.1", "", { "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" } }, "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ=="],
45
+
46
+ "figlet": ["figlet@1.8.1", "", { "bin": { "figlet": "bin/index.js" } }, "sha512-kEC3Sme+YvA8Hkibv0NR1oClGcWia0VB2fC1SlMy027cwe795Xx40Xiv/nw/iFAwQLupymWh+uhAAErn/7hwPg=="],
47
+
48
+ "get-east-asian-width": ["get-east-asian-width@1.3.0", "", {}, "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ=="],
49
+
50
+ "is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
51
+
52
+ "is-interactive": ["is-interactive@2.0.0", "", {}, "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ=="],
53
+
54
+ "is-unicode-supported": ["is-unicode-supported@2.1.0", "", {}, "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ=="],
55
+
56
+ "log-symbols": ["log-symbols@6.0.0", "", { "dependencies": { "chalk": "^5.3.0", "is-unicode-supported": "^1.3.0" } }, "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="],
57
+
58
+ "mimic-function": ["mimic-function@5.0.1", "", {}, "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA=="],
59
+
60
+ "onetime": ["onetime@7.0.0", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],
61
+
62
+ "ora": ["ora@8.2.0", "", { "dependencies": { "chalk": "^5.3.0", "cli-cursor": "^5.0.0", "cli-spinners": "^2.9.2", "is-interactive": "^2.0.0", "is-unicode-supported": "^2.0.0", "log-symbols": "^6.0.0", "stdin-discarder": "^0.2.2", "string-width": "^7.2.0", "strip-ansi": "^7.1.0" } }, "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="],
63
+
64
+ "restore-cursor": ["restore-cursor@5.1.0", "", { "dependencies": { "onetime": "^7.0.0", "signal-exit": "^4.1.0" } }, "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA=="],
65
+
66
+ "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
67
+
68
+ "stdin-discarder": ["stdin-discarder@0.2.2", "", {}, "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="],
69
+
70
+ "string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
71
+
72
+ "strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
73
+
74
+ "type-fest": ["type-fest@4.41.0", "", {}, "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA=="],
75
+
76
+ "widest-line": ["widest-line@5.0.0", "", { "dependencies": { "string-width": "^7.0.0" } }, "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA=="],
77
+
78
+ "wrap-ansi": ["wrap-ansi@9.0.0", "", { "dependencies": { "ansi-styles": "^6.2.1", "string-width": "^7.0.0", "strip-ansi": "^7.1.0" } }, "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q=="],
79
+
80
+ "ansi-align/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
81
+
82
+ "cli-progress/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
83
+
84
+ "log-symbols/is-unicode-supported": ["is-unicode-supported@1.3.0", "", {}, "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="],
85
+
86
+ "ora/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="],
87
+
88
+ "string-width/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="],
89
+
90
+ "wrap-ansi/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="],
91
+
92
+ "ansi-align/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
93
+
94
+ "cli-progress/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
95
+
96
+ "ora/strip-ansi/ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="],
97
+
98
+ "string-width/strip-ansi/ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="],
99
+
100
+ "wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="],
101
+ }
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/create",
3
- "version": "1.11.3",
3
+ "version": "1.13.0",
4
4
  "main": "src/index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,14 @@
1
+ {
2
+ "DocuAccordion": {
3
+ "prefix": "accordion",
4
+ "body": [
5
+ "<Accordion title=\"${1:Plain Text}\">",
6
+ " this is an example of plain text content from the accordion component and below is markdown ;",
7
+ " 1. number one",
8
+ " 2. number two",
9
+ " 3. number three",
10
+ "</Accordion>"
11
+ ],
12
+ "description": "Create a DocuAccordion component with markdown list."
13
+ }
14
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "DocuButton": {
3
+ "prefix": "button",
4
+ "body": [
5
+ "<Button",
6
+ " text=\"${1:Learn More}\"",
7
+ " href=\"${2:https://learn.example.com}\"",
8
+ " icon=\"${3:MoveUpRight}\"",
9
+ " size=\"${4:md}\"",
10
+ " target=\"${5:_blank}\"",
11
+ " variation=\"${6:primary}\"",
12
+ "/>"
13
+ ],
14
+ "description": "Create a DocuButton component on markdown."
15
+ }
16
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "Docu Card Group": {
3
+ "prefix": "card-group",
4
+ "body": [
5
+ "<CardGroup cols={${1:2}}>",
6
+ " <Card title=\"${2:Card Title}\" icon=\"${3:Home}\">",
7
+ " ${4:Card content goes here. You can add **markdown** content.}",
8
+ " </Card>",
9
+ " <Card title=\"${5:Another Card}\" icon=\"${6:Settings}\">",
10
+ " ${7:More content here.}",
11
+ " </Card>",
12
+ "</CardGroup>"
13
+ ],
14
+ "description": "Create a group of cards in a responsive grid"
15
+ },
16
+ "Docu Card": {
17
+ "prefix": "card",
18
+ "body": [
19
+ "<Card ",
20
+ " title=\"${1:Card Title}\"",
21
+ " icon=\"${2:Home}\"",
22
+ " href=\"${3:/optional-link}\"",
23
+ " ${4:horizontal}>",
24
+ " ${5:Card content goes here. You can add **markdown** content.}",
25
+ "</Card>"
26
+ ],
27
+ "description": "Create a single card component"
28
+ },
29
+ "Docu Horizontal Card": {
30
+ "prefix": "card-horizontal",
31
+ "body": [
32
+ "<Card ",
33
+ " title=\"${1:Card Title}\"",
34
+ " icon=\"${2:Home}\"",
35
+ " href=\"${3:/optional-link}\"",
36
+ " horizontal>",
37
+ " ${4:Content appears next to the icon in a horizontal layout.}",
38
+ "</Card>"
39
+ ],
40
+ "description": "Create a horizontal card layout"
41
+ },
42
+ "Docu Card With Link": {
43
+ "prefix": "card-link",
44
+ "body": [
45
+ "<Card ",
46
+ " title=\"${1:Card Title}\"",
47
+ " icon=\"${2:ExternalLink}\"",
48
+ " href=\"${3:https://example.com}\">",
49
+ " ${4:This card is clickable and links to an external URL.}",
50
+ "</Card>"
51
+ ],
52
+ "description": "Create a clickable card that links to a URL"
53
+ }
54
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "DocuCodeBlock": {
3
+ "prefix": "codeblock",
4
+ "description": "Checks if the rocket is stable and prevents a crash if it's not.",
5
+ "body": [
6
+ "```${1:javascript:main.js} showLineNumbers {${2:3-4}}",
7
+ "function isRocketAboutToCrash() {",
8
+ " // Check if the rocket is stable",
9
+ " if (!isStable()) {",
10
+ " NoCrash(); // Prevent the crash",
11
+ " }",
12
+ "}",
13
+ "```",
14
+ ],
15
+ }
16
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "File Tree Component": {
3
+ "prefix": "filetree",
4
+ "body": [
5
+ "<Files>",
6
+ " <Folder name=\"${1:folder-name}\">",
7
+ " <File name=\"${2:file-name}\" />",
8
+ " <Folder name=\"${3:subfolder}\">",
9
+ " <File name=\"${4:file.tsx}\" />",
10
+ " </Folder>\n$0",
11
+ " </Folder>",
12
+ "</Files>"
13
+ ],
14
+ "description": "DocuBook File Tree component with nested structure"
15
+ },
16
+ "File Tree Minimal": {
17
+ "prefix": "filetree-mini",
18
+ "body": [
19
+ "<Files>\n <Folder name=\"${1:folder}\">\n <File name=\"${2:file}\" />\n </Folder>\n</Files>$0"
20
+ ],
21
+ "description": "Minimal DocuBook File Tree component"
22
+ },
23
+ "File Tree Complex": {
24
+ "prefix": "filetree-complex",
25
+ "body": [
26
+ "<Files>",
27
+ " <Folder name=\"${1:project-root}\">",
28
+ " <File name=\"package.json\" />",
29
+ " <File name=\"tsconfig.json\" />",
30
+ " <Folder name=\"src\">",
31
+ " <File name=\"index.ts\" />",
32
+ " <Folder name=\"components\">",
33
+ " <File name=\"${2:Component}.tsx\" />",
34
+ " <File name=\"${3:Component}.types.ts\" />",
35
+ " <File name=\"index.ts\" />",
36
+ " </Folder>\n$0",
37
+ " </Folder>",
38
+ " </Folder>",
39
+ "</Files>"
40
+ ],
41
+ "description": "Complex DocuBook File Tree with common project structure"
42
+ },
43
+ "File Tree Folder": {
44
+ "prefix": "folder",
45
+ "body": "<Folder name=\"${1:folder-name}\">\n $0\n</Folder>",
46
+ "description": "DocuBook Folder component for file trees"
47
+ },
48
+ "File Tree File": {
49
+ "prefix": "file",
50
+ "body": "<File name=\"${1:file-name}\" />$0",
51
+ "description": "DocuBook File component for file trees"
52
+ }
53
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "DocuImage": {
3
+ "prefix": "image",
4
+ "body": [
5
+ "![${1:Alt text for the image}](${2:https://via.placeholder.com/150})"
6
+ ],
7
+ "description": "Snippet untuk menampilkan image komponen."
8
+ },
9
+ "DocuLink": {
10
+ "prefix": "link",
11
+ "body": [
12
+ "[${1:Text Link}](${2:https://www.openai.com})"
13
+ ],
14
+ "description": "Snippet untuk menampilkan link komponen."
15
+ }
16
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "Keyboard - Mac": {
3
+ "prefix": "keymac",
4
+ "body": [
5
+ "<Kbd show=\"${1:ctrl}\" type=\"mac\" />"
6
+ ],
7
+ "description": "Mac keyboard shortcut."
8
+ },
9
+ "Keyboard - Windows": {
10
+ "prefix": "keywin",
11
+ "body": [
12
+ "<Kbd show=\"${1:ctrl}\" type=\"windows\" />"
13
+ ],
14
+ "description": "Windows keyboard shortcut."
15
+ },
16
+ "Keyboard - Custom": {
17
+ "prefix": "keycustom",
18
+ "body": [
19
+ "<Kbd show=\"${1:custom}\">${2:Custom}</Kbd>"
20
+ ],
21
+ "description": "Custom keyboard shortcut."
22
+ }
23
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "DocuMetadata": {
3
+ "prefix": "metadata",
4
+ "body": [
5
+ "---",
6
+ "title : ${1:judul post}",
7
+ "description : ${2:deskripsi singkat dari post}",
8
+ "date : ${3:10-12-2024}",
9
+ "---"
10
+ ],
11
+ "description": "Snippet untuk membuat metadata."
12
+ }
13
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "DocuNote - General Note": {
3
+ "prefix": "note",
4
+ "body": [
5
+ "<Note type=\"note\" title=\"Note\">",
6
+ " ${1:This is a general note to convey information to the user.}",
7
+ "</Note>"
8
+ ],
9
+ "description": "Insert a general note"
10
+ },
11
+ "DocuNote - Danger Note": {
12
+ "prefix": "danger",
13
+ "body": [
14
+ "<Note type=\"danger\" title=\"Danger\">",
15
+ " ${1:This is a danger alert to notify the user of a critical issue.}",
16
+ "</Note>"
17
+ ],
18
+ "description": "Insert a danger note"
19
+ },
20
+ "DocuNote - Warning Note": {
21
+ "prefix": "warning",
22
+ "body": [
23
+ "<Note type=\"warning\" title=\"Warning\">",
24
+ " ${1:This is a warning alert for issues that require attention.}",
25
+ "</Note>"
26
+ ],
27
+ "description": "Insert a warning note"
28
+ },
29
+ "DocuNote - Success Note": {
30
+ "prefix": "success",
31
+ "body": [
32
+ "<Note type=\"success\" title=\"Success\">",
33
+ " ${1:This is a success message to inform the user of successful actions.}",
34
+ "</Note>"
35
+ ],
36
+ "description": "Insert a success note"
37
+ }
38
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "Release Note Component": {
3
+ "prefix": "release",
4
+ "body": [
5
+ "<Release version=\"$1\" date=\"${2:$CURRENT_YEAR-${CURRENT_MONTH}-${CURRENT_DATE}}\" title=\"$3\">",
6
+ " <Changes type=\"added\">",
7
+ " - $4",
8
+ " </Changes>",
9
+ "",
10
+ " <Changes type=\"fixed\">",
11
+ " - $5",
12
+ " </Changes>",
13
+ "",
14
+ " <Changes type=\"improved\">",
15
+ " - $6",
16
+ " </Changes>",
17
+ "",
18
+ " <Changes type=\"deprecated\">",
19
+ " - $7",
20
+ " </Changes>",
21
+ "",
22
+ " <Changes type=\"removed\">",
23
+ " - $8",
24
+ " </Changes>",
25
+ "</Release>"
26
+ ],
27
+ "description": "DocuBook Release Note component with all change types"
28
+ },
29
+ "Release Note Simple": {
30
+ "prefix": "release-simple",
31
+ "body": [
32
+ "<Release version=\"$1\" date=\"${2:$CURRENT_YEAR-${CURRENT_MONTH}-${CURRENT_DATE}}\" title=\"$3\">",
33
+ " <Changes type=\"$4\">",
34
+ " - $5",
35
+ " </Changes>\n$0",
36
+ "</Release>"
37
+ ],
38
+ "description": "Simple DocuBook Release Note component with one change type"
39
+ },
40
+ "Changes Only": {
41
+ "prefix": "changes",
42
+ "body": [
43
+ "<Changes type=\"$1\">",
44
+ " - $2",
45
+ "</Changes>"
46
+ ],
47
+ "description": "DocuBook Changes component for individual change items"
48
+ }
49
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "DocuStepper": {
3
+ "prefix": "stepper",
4
+ "body": [
5
+ "<Stepper>",
6
+ " <StepperItem title=\"${1:Step 1: Clone the DocuBook Repository}\">",
7
+ " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum,",
8
+ " felis sed efficitur tincidunt, justo nulla viverra enim, et maximus nunc",
9
+ " dolor in lorem.",
10
+ " </StepperItem>${2:}",
11
+ "</Stepper>"
12
+ ],
13
+ "description": "Snippet untuk menampilkan stepper komponen."
14
+ },
15
+ "DocuStepperItem": {
16
+ "prefix": "item",
17
+ "body": [
18
+ "<StepperItem title=\"${1:Step X: Your Step Title}\">",
19
+ " ${2:Your step description here.}",
20
+ "</StepperItem>${3:}"
21
+ ],
22
+ "description": "Snippet untuk menambahkan item baru ke dalam Stepper."
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "DocuTable": {
3
+ "prefix": "table",
4
+ "body": [
5
+ "| **${1:Header 1}** | **${2:Header 2}** |",
6
+ "| ---------------- | ---------------- |",
7
+ "| ${3:Row 1, Col 1} | ${4:Row 1, Col 2} |",
8
+ "| ${5:Row 2, Col 1} | ${6:Row 2, Col 2} |"
9
+ ],
10
+ "description": "Create a simple 2x2 markdown table"
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "DocuTabs": {
3
+ "prefix": "tabs",
4
+ "body": [
5
+ "<Tabs defaultValue=\"${1:java}\" className=\"pt-5 pb-1\">",
6
+ " <TabsList>",
7
+ " <TabsTrigger value=\"${2:java}\">Java</TabsTrigger>",
8
+ " <TabsTrigger value=\"${3:typescript}\">TypeScript</TabsTrigger>",
9
+ " </TabsList>",
10
+ " <TabsContent value=\"${4:java}\">",
11
+ " ```java",
12
+ " // HelloWorld.java",
13
+ " public class HelloWorld {",
14
+ " public static void main(String[] args) {",
15
+ " System.out.println(\"Hello, World!\");",
16
+ " }",
17
+ " }",
18
+ " ```",
19
+ " </TabsContent>",
20
+ " <TabsContent value=\"${5:typescript}\">",
21
+ " ```typescript",
22
+ " // helloWorld.ts",
23
+ " function helloWorld(): void {",
24
+ " console.log(\"Hello, World!\");",
25
+ " }",
26
+ " helloWorld();",
27
+ " ```",
28
+ " </TabsContent>",
29
+ "</Tabs>"
30
+ ],
31
+ "description": "Create a DocuTabs component with Java and TypeScript examples."
32
+ }
33
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "DocuTooltips": {
3
+ "prefix": "tooltips",
4
+ "body": [
5
+ "${1:What do you know about }<Tooltip text=\"${2:DocuBook}\" tip=\"${3:npx @docubook/create@latest}\" /> ${4:? Create interactive nested documentations using MDX.}",
6
+ ],
7
+ "description": "Create a DocuTooltips component with version examples."
8
+ }
9
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "DocuH2": {
3
+ "prefix": "h2",
4
+ "body": [
5
+ "## Heading 2"
6
+ ],
7
+ "description": "Tag Heading 2 for markdown."
8
+ },
9
+ "DocuH3": {
10
+ "prefix": "h3",
11
+ "body": [
12
+ "### Heading 3"
13
+ ],
14
+ "description": "Tag Heading 3 for markdown."
15
+ },
16
+ "DocuText": {
17
+ "prefix": "text",
18
+ "body": [
19
+ "DocuBook is proudly **open-source**! 🎉 We believe in creating an accessible, collaborative platform that thrives on community contributions."
20
+ ],
21
+ "description": "Tag Paragraph for markdown."
22
+ },
23
+ "Docu-UndorderList": {
24
+ "prefix": "unorderlist",
25
+ "body": [
26
+ "- ${1:**Next.js 14** - The powerful React framework optimized for production.}",
27
+ "- **Tailwind CSS** - Utility-first styling for quick, clean designs.",
28
+ "- **Shadcn-UI** - Elegant, accessible components for a polished look.",
29
+ "- **next-mdx-remote** - Enables MDX support for dynamic, interactive Markdown content."
30
+ ],
31
+ "description": "Tag Undorderlist for markdown."
32
+ },
33
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "DocuVideo": {
3
+ "prefix": "youtube",
4
+ "body": [
5
+ "<Youtube videoId=\"${1:zQnBQ4tB3ZA}\" />"
6
+ ],
7
+ "description": "Snippet untuk menampilkan komponen video Youtube."
8
+ }
9
+ }
@@ -15,7 +15,7 @@ export default function Home() {
15
15
  return (
16
16
  <div className="flex flex-col items-center justify-center px-2 py-8 text-center sm:py-36">
17
17
  <Link
18
- href="/docs/getting-started/changelog"
18
+ href="/docs/changelog/version-1"
19
19
  className="mb-5 sm:text-lg flex items-center gap-2 underline underline-offset-4 sm:-mt-12"
20
20
  >
21
21
  <div className="z-10 flex min-h-10 items-center justify-center max-[800px]:mt-10">
@@ -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.11.0</span>
28
+ <span>🚀 New Version - Release v1.13.0</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>