@docubook/create 1.9.0 → 1.11.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/README.md +1 -3
- package/package.json +7 -7
- package/src/cli/program.js +32 -0
- package/src/cli/promptHandler.js +73 -0
- package/src/dist/LICENSE +21 -0
- package/src/dist/README.md +37 -0
- package/src/dist/app/docs/[[...slug]]/page.tsx +105 -0
- package/src/dist/app/docs/layout.tsx +16 -0
- package/src/dist/app/error.tsx +44 -0
- package/src/dist/app/layout.tsx +96 -0
- package/src/dist/app/not-found.tsx +19 -0
- package/src/dist/app/page.tsx +96 -0
- package/src/dist/components/GithubStart.tsx +44 -0
- package/src/dist/components/Sponsor.tsx +69 -0
- package/src/dist/components/anchor.tsx +84 -0
- package/src/dist/components/contexts/theme-provider.tsx +9 -0
- package/src/dist/components/docs-breadcrumb.tsx +47 -0
- package/src/dist/components/docs-menu.tsx +45 -0
- package/src/dist/components/edit-on-github.tsx +33 -0
- package/src/dist/components/footer.tsx +85 -0
- package/src/dist/components/leftbar.tsx +95 -0
- package/src/dist/components/markdown/AccordionMdx.tsx +47 -0
- package/src/dist/components/markdown/ButtonMdx.tsx +52 -0
- package/src/dist/components/markdown/CardGroupMdx.tsx +28 -0
- package/src/dist/components/markdown/CardMdx.tsx +41 -0
- package/src/dist/components/markdown/CopyMdx.tsx +33 -0
- package/src/dist/components/markdown/ImageMdx.tsx +25 -0
- package/src/dist/components/markdown/KeyboardMdx.tsx +102 -0
- package/src/dist/components/markdown/LinkMdx.tsx +14 -0
- package/src/dist/components/markdown/NoteMdx.tsx +52 -0
- package/src/dist/components/markdown/OutletMdx.tsx +29 -0
- package/src/dist/components/markdown/PreMdx.tsx +19 -0
- package/src/dist/components/markdown/ReleaseMdx.tsx +109 -0
- package/src/dist/components/markdown/StepperMdx.tsx +41 -0
- package/src/dist/components/markdown/TooltipsMdx.tsx +28 -0
- package/src/dist/components/markdown/YoutubeMdx.tsx +22 -0
- package/src/dist/components/markdown/mdx-provider.tsx +29 -0
- package/src/dist/components/mob-toc.tsx +128 -0
- package/src/dist/components/navbar.tsx +87 -0
- package/src/dist/components/pagination.tsx +49 -0
- package/src/dist/components/scroll-to-top.tsx +86 -0
- package/src/dist/components/search.tsx +214 -0
- package/src/dist/components/sublink.tsx +133 -0
- package/src/dist/components/theme-toggle.tsx +71 -0
- package/src/dist/components/toc-observer.tsx +264 -0
- package/src/dist/components/toc.tsx +27 -0
- package/src/dist/components/typography.tsx +9 -0
- package/src/dist/components/ui/accordion.tsx +58 -0
- package/src/dist/components/ui/animated-shiny-text.tsx +40 -0
- package/src/dist/components/ui/aurora.tsx +45 -0
- package/src/dist/components/ui/avatar.tsx +50 -0
- package/src/dist/components/ui/badge.tsx +37 -0
- package/src/dist/components/ui/breadcrumb.tsx +115 -0
- package/src/dist/components/ui/button.tsx +57 -0
- package/src/dist/components/ui/card.tsx +76 -0
- package/src/dist/components/ui/collapsible.tsx +11 -0
- package/src/dist/components/ui/command.tsx +153 -0
- package/src/dist/components/ui/dialog.tsx +124 -0
- package/src/dist/components/ui/dropdown-menu.tsx +200 -0
- package/src/dist/components/ui/icon-cloud.tsx +324 -0
- package/src/dist/components/ui/input.tsx +25 -0
- package/src/dist/components/ui/interactive-hover-button.tsx +35 -0
- package/src/dist/components/ui/popover.tsx +33 -0
- package/src/dist/components/ui/scroll-area.tsx +48 -0
- package/src/dist/components/ui/separator.tsx +30 -0
- package/src/dist/components/ui/sheet.tsx +140 -0
- package/src/dist/components/ui/shine-border.tsx +64 -0
- package/src/dist/components/ui/skeleton.tsx +15 -0
- package/src/dist/components/ui/sonner.tsx +31 -0
- package/src/dist/components/ui/table.tsx +117 -0
- package/src/dist/components/ui/tabs.tsx +55 -0
- package/src/dist/components/ui/toggle-group.tsx +61 -0
- package/src/dist/components/ui/toggle.tsx +46 -0
- package/src/dist/components.json +17 -0
- package/src/dist/contents/docs/getting-started/changelog/index.mdx +512 -0
- package/src/dist/contents/docs/getting-started/components/accordion/index.mdx +72 -0
- package/src/dist/contents/docs/getting-started/components/button/index.mdx +42 -0
- package/src/dist/contents/docs/getting-started/components/card/index.mdx +70 -0
- package/src/dist/contents/docs/getting-started/components/card-group/index.mdx +49 -0
- package/src/dist/contents/docs/getting-started/components/code-block/index.mdx +41 -0
- package/src/dist/contents/docs/getting-started/components/custom/index.mdx +38 -0
- package/src/dist/contents/docs/getting-started/components/image/index.mdx +37 -0
- package/src/dist/contents/docs/getting-started/components/index.mdx +9 -0
- package/src/dist/contents/docs/getting-started/components/keyboard/index.mdx +117 -0
- package/src/dist/contents/docs/getting-started/components/link/index.mdx +34 -0
- package/src/dist/contents/docs/getting-started/components/note/index.mdx +46 -0
- package/src/dist/contents/docs/getting-started/components/release-note/index.mdx +130 -0
- package/src/dist/contents/docs/getting-started/components/stepper/index.mdx +47 -0
- package/src/dist/contents/docs/getting-started/components/tabs/index.mdx +70 -0
- package/src/dist/contents/docs/getting-started/components/tooltips/index.mdx +22 -0
- package/src/dist/contents/docs/getting-started/components/youtube/index.mdx +21 -0
- package/src/dist/contents/docs/getting-started/customize/index.mdx +94 -0
- package/src/dist/contents/docs/getting-started/installation/index.mdx +84 -0
- package/src/dist/contents/docs/getting-started/introduction/index.mdx +50 -0
- package/src/dist/contents/docs/getting-started/project-structure/index.mdx +87 -0
- package/src/dist/contents/docs/getting-started/quick-start-guide/index.mdx +127 -0
- package/src/dist/docu.json +100 -0
- package/src/dist/hooks/index.ts +2 -0
- package/src/dist/hooks/useActiveSection.ts +68 -0
- package/src/dist/hooks/useScrollPosition.ts +28 -0
- package/src/dist/lib/markdown.ts +244 -0
- package/src/dist/lib/routes-config.ts +28 -0
- package/src/dist/lib/toc.ts +9 -0
- package/src/dist/lib/utils.ts +80 -0
- package/src/dist/next-env.d.ts +5 -0
- package/src/dist/next.config.mjs +14 -0
- package/src/dist/package.json +58 -0
- package/src/dist/postcss.config.js +6 -0
- package/src/dist/public/favicon.ico +0 -0
- package/src/dist/public/images/docu.svg +6 -0
- package/src/dist/public/images/example-img.png +0 -0
- package/src/dist/public/images/img-playground.png +0 -0
- package/src/dist/public/images/new-editor.png +0 -0
- package/src/dist/public/images/og-image.png +0 -0
- package/src/dist/public/images/release-note.png +0 -0
- package/src/dist/public/images/snippet.png +0 -0
- package/src/dist/public/images/vercel.png +0 -0
- package/src/dist/public/images/view-changelog.png +0 -0
- package/src/dist/styles/editor.css +57 -0
- package/src/dist/styles/globals.css +156 -0
- package/src/dist/styles/syntax.css +100 -0
- package/src/dist/tailwind.config.ts +112 -0
- package/src/dist/tsconfig.json +26 -0
- package/src/index.js +19 -0
- package/src/installer/projectInstaller.js +125 -0
- package/src/utils/display.js +83 -0
- package/src/utils/logger.js +11 -0
- package/src/utils/packageManager.js +54 -0
- package/create.js +0 -223
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Changelog
|
|
3
|
+
description: List of latest changes and updates on DocuBook
|
|
4
|
+
date: 24-05-2025
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Version History
|
|
8
|
+
|
|
9
|
+
> This changelog contains a list of all the changes made to the DocuBook template. It will be updated with each new release and will include information about new features, bug fixes, and other improvements.
|
|
10
|
+
|
|
11
|
+
<div className="sr-only">
|
|
12
|
+
### v 1.11.0
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<Release version="1.11.0" date="2025-05-25" title="New Release Note components support multiple products or multiple changelogs">
|
|
16
|
+
<Changes type="added">
|
|
17
|
+
- New ReleaseNote component for structured changelog display
|
|
18
|
+
- Added support for categorized changes (added, fixed, improved, deprecated, removed)
|
|
19
|
+
- Integrated Lucide icons for better visual hierarchy
|
|
20
|
+
- Support for multiple release notes
|
|
21
|
+
</Changes>
|
|
22
|
+
|
|
23
|
+
<Changes type="improved">
|
|
24
|
+
- Enhanced documentation with comprehensive usage examples
|
|
25
|
+
- Better component organization and styling
|
|
26
|
+
- Semantic versioning support
|
|
27
|
+
- Nested release notes support
|
|
28
|
+
</Changes>
|
|
29
|
+
|
|
30
|
+
<Changes type="removed">
|
|
31
|
+
- Removed old changelog page in favor of the new ReleaseMdx component
|
|
32
|
+
- Removed changelog.md
|
|
33
|
+
- Removed changelog/page.tsx
|
|
34
|
+
- Removed changelog.ts
|
|
35
|
+
- Removed components/changelog
|
|
36
|
+
</Changes>
|
|
37
|
+
</Release>
|
|
38
|
+
|
|
39
|
+
<div className="sr-only">
|
|
40
|
+
### v 1.10.1
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<Release version="1.10.1" date="2025-05-24" title="Accessibility Improvements and Bug Fixes">
|
|
44
|
+
<Changes type="fixed">
|
|
45
|
+
- Added missing DialogDescription components for better accessibility
|
|
46
|
+
- Fixed image aspect ratio issues in navbar logo
|
|
47
|
+
- Resolved console warnings for missing image sizes
|
|
48
|
+
- Improved keyboard navigation in search component
|
|
49
|
+
- Fixed mobile layout for search result items
|
|
50
|
+
</Changes>
|
|
51
|
+
|
|
52
|
+
<Changes type="improved">
|
|
53
|
+
- Added proper ARIA labels for screen readers
|
|
54
|
+
- Enhanced focus management in dialogs
|
|
55
|
+
- Optimized image loading with proper sizing attributes
|
|
56
|
+
- Better mobile experience with responsive design fixes
|
|
57
|
+
</Changes>
|
|
58
|
+
|
|
59
|
+
<Changes type="removed">
|
|
60
|
+
- Remove blog page
|
|
61
|
+
- Remove blog functions on markdown
|
|
62
|
+
</Changes>
|
|
63
|
+
</Release>
|
|
64
|
+
|
|
65
|
+
<div className="sr-only">
|
|
66
|
+
### v 1.10.0
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<Release version="1.10.0" date="2025-05-21" title="Sidebar Improvements and Mobile TOC Enhancements">
|
|
70
|
+
<Changes type="added">
|
|
71
|
+
- New reusable ToggleButton component with animation
|
|
72
|
+
- Mobile-friendly Table of Contents (TOC) component
|
|
73
|
+
- Click-outside handler for better mobile navigation
|
|
74
|
+
- Smooth scroll behavior for TOC navigation
|
|
75
|
+
- Active section highlighting in TOC
|
|
76
|
+
</Changes>
|
|
77
|
+
|
|
78
|
+
<Changes type="improved">
|
|
79
|
+
- Sidebar now has a collapsible design
|
|
80
|
+
- Enhanced mobile responsiveness for TOC
|
|
81
|
+
- Better visual hierarchy in sidebar navigation
|
|
82
|
+
- Smoother animations for sidebar toggle
|
|
83
|
+
- Optimized TOC performance with intersection observer
|
|
84
|
+
- Improved accessibility with proper ARIA labels
|
|
85
|
+
- Better spacing and alignment in mobile view
|
|
86
|
+
</Changes>
|
|
87
|
+
|
|
88
|
+
<Changes type="fixed">
|
|
89
|
+
- Fixed sidebar toggle button positioning
|
|
90
|
+
- Resolved TOC highlighting issues during scroll
|
|
91
|
+
- Fixed z-index conflicts in mobile view
|
|
92
|
+
- Addressed minor UI glitches in dark mode
|
|
93
|
+
- Fixed TOC not updating on route changes
|
|
94
|
+
- Resolved scroll jank on mobile devices
|
|
95
|
+
- Fixed incorrect active state in navigation
|
|
96
|
+
</Changes>
|
|
97
|
+
|
|
98
|
+
<Changes type="deprecated">
|
|
99
|
+
- No longer support changelog.md
|
|
100
|
+
- No longer support changelog/page.tsx (will be removed in future update)
|
|
101
|
+
</Changes>
|
|
102
|
+
</Release>
|
|
103
|
+
|
|
104
|
+
<div className="sr-only">
|
|
105
|
+
### v 1.9.0
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<Release version="1.9.0" date="2025-05-19" title="New Keyboard component to show keyboard shortcut on docs page">
|
|
109
|
+
<Changes type="added">
|
|
110
|
+
- New Keyboard component with props show, type, children
|
|
111
|
+
- Snippet keyboard component
|
|
112
|
+
</Changes>
|
|
113
|
+
|
|
114
|
+
<Changes type="improved">
|
|
115
|
+
- Support custom content
|
|
116
|
+
- Support platform type (mac or window)
|
|
117
|
+
- Support automatic rendering of platform-specific key symbols
|
|
118
|
+
- Rename lowercase to camelCase for markdown component
|
|
119
|
+
</Changes>
|
|
120
|
+
</Release>
|
|
121
|
+
|
|
122
|
+
<div className="sr-only">
|
|
123
|
+
### v 1.8.5
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<Release version="1.8.5" date="2025-05-10" title="Add sponsor card on single docs page">
|
|
127
|
+
<Changes type="added">
|
|
128
|
+
- Expandables Leftbar
|
|
129
|
+
- Sponsor badges or ads
|
|
130
|
+
- Boolean show/hide 'edit on github'
|
|
131
|
+
- With the same code run anywhere (bun or nodejs)
|
|
132
|
+
- Add frontmatter (metadata) to playground editor
|
|
133
|
+
</Changes>
|
|
134
|
+
|
|
135
|
+
<Changes type="improved">
|
|
136
|
+
- Adjustment docu.json
|
|
137
|
+
- Adjustment navbar, footer and components
|
|
138
|
+
</Changes>
|
|
139
|
+
|
|
140
|
+
<Changes type="fixed">
|
|
141
|
+
- Bun compatibility: rename .js to common js
|
|
142
|
+
- CLI manage packageManager on package.json
|
|
143
|
+
- Inconsistent design moved to better UI/UX
|
|
144
|
+
- Error handle render footer.social
|
|
145
|
+
</Changes>
|
|
146
|
+
|
|
147
|
+
<Changes type="removed">
|
|
148
|
+
- Remove confusing and verbose CLI on installer
|
|
149
|
+
</Changes>
|
|
150
|
+
</Release>
|
|
151
|
+
|
|
152
|
+
<div className="sr-only">
|
|
153
|
+
### v 1.8.0
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
<Release version="1.8.0" date="2025-03-01" title="Now looks more modern and clean which is a big change in layout and design">
|
|
157
|
+
<Changes type="added">
|
|
158
|
+
- Social footer
|
|
159
|
+
- Toggle group
|
|
160
|
+
- Site description in footer
|
|
161
|
+
- Site title in footer
|
|
162
|
+
</Changes>
|
|
163
|
+
|
|
164
|
+
<Changes type="improved">
|
|
165
|
+
- Header design changes
|
|
166
|
+
- Footer design changes
|
|
167
|
+
- New functions in theme provider
|
|
168
|
+
- Object changes in docu.json
|
|
169
|
+
</Changes>
|
|
170
|
+
|
|
171
|
+
<Changes type="fixed">
|
|
172
|
+
- Updates to path structure components
|
|
173
|
+
- Groups to organize components
|
|
174
|
+
</Changes>
|
|
175
|
+
</Release>
|
|
176
|
+
|
|
177
|
+
<div className="sr-only">
|
|
178
|
+
### v 1.7.0
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<Release version="1.7.0" date="2025-02-23" title="Remove the old function in the search dialog and replace it with a new and more optimal feature">
|
|
182
|
+
<Changes type="added">
|
|
183
|
+
- Up and down navigation in search dialog
|
|
184
|
+
- Enter (return) to select in search dialog
|
|
185
|
+
- Escape to close the dialog
|
|
186
|
+
</Changes>
|
|
187
|
+
|
|
188
|
+
<Changes type="improved">
|
|
189
|
+
- Maintenance for anchor components
|
|
190
|
+
- Anchor.tsx adjustments for all elements that use it
|
|
191
|
+
</Changes>
|
|
192
|
+
|
|
193
|
+
<Changes type="removed">
|
|
194
|
+
- Remove suboptimal search features
|
|
195
|
+
</Changes>
|
|
196
|
+
</Release>
|
|
197
|
+
|
|
198
|
+
<div className="sr-only">
|
|
199
|
+
### v 1.6.0
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<Release version="1.6.0" date="2025-02-21" title="New Feature Card Groups with arrays for more Flexible Content">
|
|
203
|
+
<Changes type="added">
|
|
204
|
+
- Card Groups Components
|
|
205
|
+
- Props: href to url link
|
|
206
|
+
- Props: horizontal boolean
|
|
207
|
+
</Changes>
|
|
208
|
+
|
|
209
|
+
<Changes type="improved">
|
|
210
|
+
- Card props styling
|
|
211
|
+
- Compatibility for Cards components
|
|
212
|
+
- Support for children props in card content
|
|
213
|
+
</Changes>
|
|
214
|
+
|
|
215
|
+
<Changes type="removed">
|
|
216
|
+
- Remove unused props cards components
|
|
217
|
+
</Changes>
|
|
218
|
+
</Release>
|
|
219
|
+
|
|
220
|
+
<div className="sr-only">
|
|
221
|
+
### v 1.5.0
|
|
222
|
+
</div>
|
|
223
|
+
|
|
224
|
+
<Release version="1.5.0" date="2025-02-18" title="Minor Update - improved features and responsiveness on all devices">
|
|
225
|
+
<Changes type="added">
|
|
226
|
+
- New dialog footer on searchbox above medium screens
|
|
227
|
+
- Icon X for close dialog on searchbox (ESC key on medium screen)
|
|
228
|
+
</Changes>
|
|
229
|
+
|
|
230
|
+
<Changes type="improved">
|
|
231
|
+
- Responsive Leftbar components on large screens
|
|
232
|
+
- Menu Trigger on medium screens
|
|
233
|
+
- Responsive Navbar components on medium screens
|
|
234
|
+
- Better UX for searchbox dialog
|
|
235
|
+
- Tooltips components can be written together with regular paragraphs
|
|
236
|
+
</Changes>
|
|
237
|
+
|
|
238
|
+
<Changes type="fixed">
|
|
239
|
+
- Responsive issues
|
|
240
|
+
- Compatibility for Bun
|
|
241
|
+
- Changes postcss.config.js to .cjs for Bun
|
|
242
|
+
- All CLI installer and updater not working
|
|
243
|
+
- Adjustments for package managers (npm, pnpm, bun, yarn)
|
|
244
|
+
</Changes>
|
|
245
|
+
</Release>
|
|
246
|
+
|
|
247
|
+
<div className="sr-only">
|
|
248
|
+
### v 1.4.2
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
<Release version="1.4.2" date="2025-02-16" title="Complex Content for Accordion Component props children">
|
|
252
|
+
<Changes type="added">
|
|
253
|
+
- New Props with children in accordion
|
|
254
|
+
- Compatibility for markdown in accordion
|
|
255
|
+
- Nested components inside an accordion
|
|
256
|
+
- New icon on note components
|
|
257
|
+
- Add CLI npx @docubook/create@latest
|
|
258
|
+
- Add CLI npx @docubook/update@latest
|
|
259
|
+
</Changes>
|
|
260
|
+
|
|
261
|
+
<Changes type="improved">
|
|
262
|
+
- Better UI design for accordion
|
|
263
|
+
- Styling Note components on markdown
|
|
264
|
+
- Change accordion output on playground
|
|
265
|
+
- Change accordion output on snippet
|
|
266
|
+
</Changes>
|
|
267
|
+
|
|
268
|
+
<Changes type="removed">
|
|
269
|
+
- Remove deprecated props on accordion
|
|
270
|
+
- Remove CLI npx update_docu
|
|
271
|
+
- Remove CLI npx create_docu
|
|
272
|
+
</Changes>
|
|
273
|
+
</Release>
|
|
274
|
+
|
|
275
|
+
<div className="sr-only">
|
|
276
|
+
### v 1.4.0
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<Release version="1.4.0" date="2025-02-11" title="Floating Button Version with Dynamic Tag version on Changelog page">
|
|
280
|
+
<Changes type="added">
|
|
281
|
+
- New components / changelog floating-version.tsx
|
|
282
|
+
- Button popover to open version-toc below large screens
|
|
283
|
+
- Dynamic tag by section ID #version
|
|
284
|
+
- Dynamic url tag #version
|
|
285
|
+
- Dynamic version indicator on floating version when scrolling section by ID
|
|
286
|
+
</Changes>
|
|
287
|
+
|
|
288
|
+
<Changes type="improved">
|
|
289
|
+
- Change icon version history
|
|
290
|
+
- Responsive version-toc
|
|
291
|
+
- Improvement components to changelog page
|
|
292
|
+
</Changes>
|
|
293
|
+
</Release>
|
|
294
|
+
|
|
295
|
+
<div className="sr-only">
|
|
296
|
+
### v 1.3.8
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
<Release version="1.3.8" date="2025-02-08" title="Responsive Table of Content">
|
|
300
|
+
<Changes type="added">
|
|
301
|
+
- Components terminal MagicUI
|
|
302
|
+
- Components card Shadcn
|
|
303
|
+
- New mob-toc for a better experience on mobile devices
|
|
304
|
+
- New Components scroll to top button
|
|
305
|
+
- Scroll to top: blog-post
|
|
306
|
+
- Scroll to top: docs-post
|
|
307
|
+
</Changes>
|
|
308
|
+
|
|
309
|
+
<Changes type="improved">
|
|
310
|
+
- lib/markdown for generated dynamic toc on markdown
|
|
311
|
+
- Responsive Table of Content below large screens
|
|
312
|
+
- Improve docs page
|
|
313
|
+
</Changes>
|
|
314
|
+
</Release>
|
|
315
|
+
|
|
316
|
+
<div className="sr-only">
|
|
317
|
+
### v 1.3.6
|
|
318
|
+
</div>
|
|
319
|
+
|
|
320
|
+
<Release version="1.3.6" date="2025-02-01" title="Appears more modern editor for Docu Play">
|
|
321
|
+
|
|
322
|
+
<Changes type="added">
|
|
323
|
+
- Line Number for editor
|
|
324
|
+
- editor.css
|
|
325
|
+
</Changes>
|
|
326
|
+
|
|
327
|
+
<Changes type="improved">
|
|
328
|
+
- Better Design for Editor
|
|
329
|
+
- Similar to Github Editor
|
|
330
|
+
- Moved Handler Element (copy, download, reset and fullscreen) on Header
|
|
331
|
+
</Changes>
|
|
332
|
+
</Release>
|
|
333
|
+
|
|
334
|
+
<div className="sr-only">
|
|
335
|
+
### v 1.3.5
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
<Release version="1.3.5" date="2025-01-30" title="It's Easy to Write Markdown with Playground">
|
|
339
|
+
|
|
340
|
+
<Changes type="added">
|
|
341
|
+
- New Playground Page
|
|
342
|
+
- New Playground Layout
|
|
343
|
+
- Toolbar for Markdown Components
|
|
344
|
+
- Fullscreen Mode to Focus Editing Your Content
|
|
345
|
+
- Copy to Clipboard Your Content
|
|
346
|
+
- Download Your Content as index.mdx
|
|
347
|
+
- Reset Your Content without refresh the Browser
|
|
348
|
+
- Only Large Screen for Better Experience
|
|
349
|
+
</Changes>
|
|
350
|
+
</Release>
|
|
351
|
+
|
|
352
|
+
<div className="sr-only">
|
|
353
|
+
### v 1.3.1
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
<Release version="1.3.1" date="2025-01-20" title="Snippet Feature to Easily Write Markdown and Call DocuBook Components">
|
|
357
|
+
|
|
358
|
+
<Changes type="added">
|
|
359
|
+
- New Feature Snippet for Markdown Components
|
|
360
|
+
- Support Snippet for Visual Studio Code
|
|
361
|
+
</Changes>
|
|
362
|
+
|
|
363
|
+
<Changes type="removed">
|
|
364
|
+
- Remove props icon and props description for accordion components
|
|
365
|
+
</Changes>
|
|
366
|
+
</Release>
|
|
367
|
+
|
|
368
|
+
<div className="sr-only">
|
|
369
|
+
### v 1.3.0
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
<Release version="1.3.0" date="2024-12-31" title="Release Note Feature to Make it Easier to Write Changelogs">
|
|
373
|
+
<Changes type="added">
|
|
374
|
+
- New Release Note Feature
|
|
375
|
+
- New Layout for Changelog page
|
|
376
|
+
- New Changelog page
|
|
377
|
+
- Add Release Note Component
|
|
378
|
+
- Easily write release notes directly from the CHANGELOG.md file
|
|
379
|
+
- TOC for versioning
|
|
380
|
+
- Write with the markdown tag
|
|
381
|
+
- Add lib / changelog.ts
|
|
382
|
+
</Changes>
|
|
383
|
+
|
|
384
|
+
<Changes type="improved">
|
|
385
|
+
- Improvement Responsive feature image for Version Entry
|
|
386
|
+
- Improvement Layout for changelog page
|
|
387
|
+
- Improvement Padding on mobile devices
|
|
388
|
+
- Only use containers of md size
|
|
389
|
+
- Improvement syntax.css for ul>li classes
|
|
390
|
+
</Changes>
|
|
391
|
+
|
|
392
|
+
<Changes type="fixed">
|
|
393
|
+
- Fix og:image not showing on Page.tsx
|
|
394
|
+
- Fix text-indent on class li
|
|
395
|
+
</Changes>
|
|
396
|
+
|
|
397
|
+
<Changes type="removed">
|
|
398
|
+
- Remove excessive padding
|
|
399
|
+
- Remove Logo on Footer
|
|
400
|
+
</Changes>
|
|
401
|
+
</Release>
|
|
402
|
+
|
|
403
|
+
<div className="sr-only">
|
|
404
|
+
### v 1.2.0
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<Release version="1.2.0" date="2024-12-22" title="New Accordion Component: Support content plain text, html and all markdown component">
|
|
408
|
+
<Changes type="added">
|
|
409
|
+
- Add New Accordion Component
|
|
410
|
+
</Changes>
|
|
411
|
+
|
|
412
|
+
<Changes type="improved">
|
|
413
|
+
- Props Improvement
|
|
414
|
+
- Support Dynamic Content for Accordion
|
|
415
|
+
</Changes>
|
|
416
|
+
</Release>
|
|
417
|
+
|
|
418
|
+
<div className="sr-only">
|
|
419
|
+
### v 1.1.0
|
|
420
|
+
</div>
|
|
421
|
+
|
|
422
|
+
<Release version="1.1.0" date="2024-12-15" title="Minor Update: Easily manage set up with docu.json">
|
|
423
|
+
<Changes type="added">
|
|
424
|
+
- Add docu.json file
|
|
425
|
+
- Add openGraph (title, description, image)
|
|
426
|
+
- Add Dynamic metadata
|
|
427
|
+
- Generate metadata as openGraph
|
|
428
|
+
- OpenGraph support for .mdx
|
|
429
|
+
</Changes>
|
|
430
|
+
|
|
431
|
+
<Changes type="improved">
|
|
432
|
+
- Routes-config from json
|
|
433
|
+
- Frontmatter improvement
|
|
434
|
+
- Edit the content of footer.tsx simply via the docu.json file
|
|
435
|
+
- Edit the content of navbar.tsx simply via the docu.json file
|
|
436
|
+
</Changes>
|
|
437
|
+
</Release>
|
|
438
|
+
|
|
439
|
+
<div className="sr-only">
|
|
440
|
+
### v 1.0.7
|
|
441
|
+
</div>
|
|
442
|
+
|
|
443
|
+
<Release version="1.0.7" date="2024-12-14" title="Easily updates your DocuBook Version with CLI npx update_docu">
|
|
444
|
+
<Changes type="added">
|
|
445
|
+
- CLI npx update_docu (update features into docubook existing directory)
|
|
446
|
+
- Playground (easily to written content)
|
|
447
|
+
- New Button component
|
|
448
|
+
- Navbar external link conditions
|
|
449
|
+
- CLI npx create_docu
|
|
450
|
+
</Changes>
|
|
451
|
+
|
|
452
|
+
<Changes type="improved">
|
|
453
|
+
- Searchbar Improvement
|
|
454
|
+
- Navigation Improvement
|
|
455
|
+
- Edit on Github Improvement
|
|
456
|
+
</Changes>
|
|
457
|
+
|
|
458
|
+
<Changes type="removed">
|
|
459
|
+
- Remove CLI npx create-docu (on this version not usage dash `-`)
|
|
460
|
+
</Changes>
|
|
461
|
+
</Release>
|
|
462
|
+
|
|
463
|
+
<div className="sr-only">
|
|
464
|
+
### v 1.0.6
|
|
465
|
+
</div>
|
|
466
|
+
|
|
467
|
+
<Release version="1.0.6" date="2024-11-24" title="New Components, Fix and Improvement">
|
|
468
|
+
<Changes type="added">
|
|
469
|
+
- New Card component
|
|
470
|
+
- New Tooltips component
|
|
471
|
+
</Changes>
|
|
472
|
+
|
|
473
|
+
<Changes type="fixed">
|
|
474
|
+
- Change root folder
|
|
475
|
+
</Changes>
|
|
476
|
+
|
|
477
|
+
<Changes type="improved">
|
|
478
|
+
- Logo on navbar & footer
|
|
479
|
+
- Easily change logo
|
|
480
|
+
</Changes>
|
|
481
|
+
</Release>
|
|
482
|
+
|
|
483
|
+
<div className="sr-only">
|
|
484
|
+
### v 1.0.5
|
|
485
|
+
</div>
|
|
486
|
+
|
|
487
|
+
<Release version="1.0.5" date="2024-11-16" title="Add New Features and Improvement for this version">
|
|
488
|
+
<Changes type="added">
|
|
489
|
+
- New Youtube component
|
|
490
|
+
- Edit this page - easily manage directory content via the github repo
|
|
491
|
+
- Support installation via CLI command npx create-docu
|
|
492
|
+
</Changes>
|
|
493
|
+
|
|
494
|
+
<Changes type="improved">
|
|
495
|
+
- Keyboard shortcut command + k or ctrl + k to open search dialog
|
|
496
|
+
</Changes>
|
|
497
|
+
</Release>
|
|
498
|
+
|
|
499
|
+
<div className="sr-only">
|
|
500
|
+
### v 1.0.0
|
|
501
|
+
</div>
|
|
502
|
+
|
|
503
|
+
<Release version="1.0.0" date="2024-11-10" title="Initial release of DocuBook to create interactive nested docs with MDX">
|
|
504
|
+
<Changes type="added">
|
|
505
|
+
- Initial release of DocuBook
|
|
506
|
+
- Basic documentation structure
|
|
507
|
+
- Markdown support with MDX
|
|
508
|
+
- Responsive design
|
|
509
|
+
- Search functionality
|
|
510
|
+
- Dark mode support
|
|
511
|
+
</Changes>
|
|
512
|
+
</Release>
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
The Accordion component is a collapsible content container that can be used to hide and show content again. It is a flexible component that can be used to display any content, including HTML elements, markdown components, and plain text.
|
|
8
|
+
|
|
9
|
+
## Preview
|
|
10
|
+
|
|
11
|
+
### Code Block
|
|
12
|
+
|
|
13
|
+
<Accordion title="Code Block" defaultOpen={true}>
|
|
14
|
+
```javascript:main.js showLineNumbers {3-4}
|
|
15
|
+
function isRocketAboutToCrash() {
|
|
16
|
+
// Check if the rocket is stable
|
|
17
|
+
if (!isStable()) {
|
|
18
|
+
NoCrash(); // Prevent the crash
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
</Accordion>
|
|
23
|
+
|
|
24
|
+
### Text with Markdown
|
|
25
|
+
|
|
26
|
+
<Accordion title="Markdown">
|
|
27
|
+
this is an example of plain text content from the accordion component and below is markdown ;
|
|
28
|
+
1. number one
|
|
29
|
+
2. number two
|
|
30
|
+
3. number three
|
|
31
|
+
</Accordion>
|
|
32
|
+
|
|
33
|
+
## Props
|
|
34
|
+
|
|
35
|
+
| Prop | Type | Default | Description |
|
|
36
|
+
| ------------- | --------- | -------------- | -------------------------------------------------------------------------------------- |
|
|
37
|
+
| `title` | `string` | `null` | The value of Accordion title. |
|
|
38
|
+
| `children` | `ReactNode` | `null` | Flexible content, both HTML elements, markdown componenst and plain text. |
|
|
39
|
+
| `defaultOpen` | `boolean` | `false` | You can change the value to `true` if you want the content to open when the page loads |
|
|
40
|
+
|
|
41
|
+
## Code
|
|
42
|
+
|
|
43
|
+
<Tabs defaultValue="markdown" className="pt-5 pb-1">
|
|
44
|
+
<TabsList>
|
|
45
|
+
<TabsTrigger value="markdown">Markdown</TabsTrigger>
|
|
46
|
+
<TabsTrigger value="codeblock">Code Block</TabsTrigger>
|
|
47
|
+
</TabsList>
|
|
48
|
+
<TabsContent value="markdown">
|
|
49
|
+
```plaintext
|
|
50
|
+
<Accordion title="Markdown">
|
|
51
|
+
this is an example of plain text content from the accordion component and below is markdown ;
|
|
52
|
+
1. number one
|
|
53
|
+
2. number two
|
|
54
|
+
3. number three
|
|
55
|
+
</Accordion>
|
|
56
|
+
```
|
|
57
|
+
</TabsContent>
|
|
58
|
+
<TabsContent value="codeblock">
|
|
59
|
+
````plaintext
|
|
60
|
+
<Accordion title="Code Block" defaultOpen={true}>
|
|
61
|
+
```javascript:main.js showLineNumbers {3-4}
|
|
62
|
+
function isRocketAboutToCrash() {
|
|
63
|
+
// Check if the rocket is stable
|
|
64
|
+
if (!isStable()) {
|
|
65
|
+
NoCrash(); // Prevent the crash
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
</Accordion>
|
|
70
|
+
````
|
|
71
|
+
</TabsContent>
|
|
72
|
+
</Tabs>
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
The Button component is a component used to create buttons that can be used to trigger actions or navigate to other pages.
|
|
8
|
+
|
|
9
|
+
## Preview
|
|
10
|
+
|
|
11
|
+
<Button
|
|
12
|
+
text="Learn More"
|
|
13
|
+
href="https://learn.example.com"
|
|
14
|
+
icon="ArrowUpRight"
|
|
15
|
+
size="md"
|
|
16
|
+
target="_blank"
|
|
17
|
+
variation="primary"
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
## Props
|
|
21
|
+
|
|
22
|
+
| Prop | Type | Default | Description |
|
|
23
|
+
| ----------- | -------- | -------------- | -------------------------------------------- |
|
|
24
|
+
| `text` | `string` | `""` | The value of text button. |
|
|
25
|
+
| `href` | `string` | `""` | The value of url button. |
|
|
26
|
+
| `icon` | `string` | `null` | The value of button icon render from lucide. |
|
|
27
|
+
| `size` | `string` | `"sm, md, lg"` | The value of size button. |
|
|
28
|
+
| `target` | `string` | `"_blank"` | By default target `_blank` |
|
|
29
|
+
| `variation` | `string` | `"primary"` | By default variation is **Primary** |
|
|
30
|
+
|
|
31
|
+
## Code
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
<Button
|
|
35
|
+
text="Learn More"
|
|
36
|
+
href="https://learn.example.com"
|
|
37
|
+
icon="MoveUpRight"
|
|
38
|
+
size="md"
|
|
39
|
+
target="_blank"
|
|
40
|
+
variation="primary"
|
|
41
|
+
/>
|
|
42
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
The Card component is a component used to create cards that can be used to display content in a compact and organized way.
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
### Card with Link and icon
|
|
12
|
+
|
|
13
|
+
<Card title="Click on me" icon="Link" href="/docs/getting-started/components/card-group">
|
|
14
|
+
This is how you use a card with an icon and a link. Clicking on this card
|
|
15
|
+
brings you to the Card Group page.
|
|
16
|
+
</Card>
|
|
17
|
+
|
|
18
|
+
### Card Horizontal
|
|
19
|
+
|
|
20
|
+
<Card title="Horizontal Card" icon="Layout" horizontal>
|
|
21
|
+
This is a horizontal card layout.
|
|
22
|
+
</Card>
|
|
23
|
+
|
|
24
|
+
### Card Simple
|
|
25
|
+
|
|
26
|
+
<Card title="Simple Card">
|
|
27
|
+
This is a simple card without an icon or link.
|
|
28
|
+
</Card>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Props
|
|
32
|
+
|
|
33
|
+
| Prop | Type | Default | Description |
|
|
34
|
+
| ------------- | -------- | ------- | ------------------------------------------------------- |
|
|
35
|
+
| `title` | `string` | `""` | The value of card title. |
|
|
36
|
+
| `icon` | `string` | `null` | The value of card icon render from lucide. |
|
|
37
|
+
| `href` | `string` | `null` | The value of card link url. |
|
|
38
|
+
| `horizontal` | `boolean` | `""` | horizontal layout for card. |
|
|
39
|
+
|
|
40
|
+
## Code
|
|
41
|
+
|
|
42
|
+
<Tabs defaultValue="link" className="pt-5 pb-1">
|
|
43
|
+
<TabsList>
|
|
44
|
+
<TabsTrigger value="link">Card with Link & Icon</TabsTrigger>
|
|
45
|
+
<TabsTrigger value="horizontal">Card Horizontal</TabsTrigger>
|
|
46
|
+
<TabsTrigger value="simple">Card Simple</TabsTrigger>
|
|
47
|
+
</TabsList>
|
|
48
|
+
<TabsContent value="link">
|
|
49
|
+
```markdown
|
|
50
|
+
<Card title="Click on me" icon="Link" href="/docs/getting-started/components/button">
|
|
51
|
+
This is how you use a card with an icon and a link. Clicking on this card
|
|
52
|
+
brings you to the Card Group page.
|
|
53
|
+
</Card>
|
|
54
|
+
```
|
|
55
|
+
</TabsContent>
|
|
56
|
+
<TabsContent value="horizontal">
|
|
57
|
+
```markdown
|
|
58
|
+
<Card title="Horizontal Card" icon="Layout" horizontal>
|
|
59
|
+
This is a horizontal card layout.
|
|
60
|
+
</Card>
|
|
61
|
+
```
|
|
62
|
+
</TabsContent>
|
|
63
|
+
<TabsContent value="simple">
|
|
64
|
+
```markdown
|
|
65
|
+
<Card title="Simple Card">
|
|
66
|
+
This is a simple card without an icon or link.
|
|
67
|
+
</Card>
|
|
68
|
+
```
|
|
69
|
+
</TabsContent>
|
|
70
|
+
</Tabs>
|