diff --git a/app/page.tsx b/app/page.tsx index 91342f1..76ca52f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -25,7 +25,7 @@ export default function Home() { )} > - πŸš€ New Version - Release v1.15.1 + πŸš€ New Version - Release v1.15.2 diff --git a/contents/docs/api-reference/delete/index.mdx b/contents/docs/api-reference/delete/index.mdx new file mode 100644 index 0000000..bb0cd9c --- /dev/null +++ b/contents/docs/api-reference/delete/index.mdx @@ -0,0 +1,63 @@ +--- +title : Delete +description : example api DELETE +date : 10-12-2024 +--- + +## Heading 2 + +this is regular text written in markdown format with `inline code`, **bold**, and *italic* + +### Heading 3 + +example of ordered list format : + +- list one + - sub list +- list two +- list three + +#### Heading 4 + +Below is an example of how to write a code block : + +````plaintext +```javascript:main.js showLineNumbers {3-4} +function isRocketAboutToCrash() { + // Check if the rocket is stable + if (!isStable()) { + NoCrash(); // Prevent the crash + } +} +``` +```` + +example note : +```plaintext + + This is a general note to convey information to the user. + +``` + +displaying an image in markdown format : + +```plaintext +![Alt text for the image](https://via.placeholder.com/150) +``` + +render as : +![Alt text for the image](https://via.placeholder.com/150) + +For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. + + + every page that is indexed in a folder will have an `index.mdx` file with metadata : + ```plaintext +--- +title : Introduction +description : overview or synopsis of a project +date : 10-12-2024 +image : example-img.png +--- + ``` + \ No newline at end of file diff --git a/contents/docs/api-reference/fetch/index.mdx b/contents/docs/api-reference/fetch/index.mdx new file mode 100644 index 0000000..ce0f5d0 --- /dev/null +++ b/contents/docs/api-reference/fetch/index.mdx @@ -0,0 +1,63 @@ +--- +title : Fetch +description : example api FETCH +date : 10-12-2024 +--- + +## Heading 2 + +this is regular text written in markdown format with `inline code`, **bold**, and *italic* + +### Heading 3 + +example of ordered list format : + +- list one + - sub list +- list two +- list three + +#### Heading 4 + +Below is an example of how to write a code block : + +````plaintext +```javascript:main.js showLineNumbers {3-4} +function isRocketAboutToCrash() { + // Check if the rocket is stable + if (!isStable()) { + NoCrash(); // Prevent the crash + } +} +``` +```` + +example note : +```plaintext + + This is a general note to convey information to the user. + +``` + +displaying an image in markdown format : + +```plaintext +![Alt text for the image](https://via.placeholder.com/150) +``` + +render as : +![Alt text for the image](https://via.placeholder.com/150) + +For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. + + + every page that is indexed in a folder will have an `index.mdx` file with metadata : + ```plaintext +--- +title : Introduction +description : overview or synopsis of a project +date : 10-12-2024 +image : example-img.png +--- + ``` + \ No newline at end of file diff --git a/contents/docs/api-reference/get/index.mdx b/contents/docs/api-reference/get/index.mdx new file mode 100644 index 0000000..916db15 --- /dev/null +++ b/contents/docs/api-reference/get/index.mdx @@ -0,0 +1,63 @@ +--- +title : Get +description : example api GET +date : 10-12-2024 +--- + +## Heading 2 + +this is regular text written in markdown format with `inline code`, **bold**, and *italic* + +### Heading 3 + +example of ordered list format : + +- list one + - sub list +- list two +- list three + +#### Heading 4 + +Below is an example of how to write a code block : + +````plaintext +```javascript:main.js showLineNumbers {3-4} +function isRocketAboutToCrash() { + // Check if the rocket is stable + if (!isStable()) { + NoCrash(); // Prevent the crash + } +} +``` +```` + +example note : +```plaintext + + This is a general note to convey information to the user. + +``` + +displaying an image in markdown format : + +```plaintext +![Alt text for the image](https://via.placeholder.com/150) +``` + +render as : +![Alt text for the image](https://via.placeholder.com/150) + +For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. + + + every page that is indexed in a folder will have an `index.mdx` file with metadata : + ```plaintext +--- +title : Introduction +description : overview or synopsis of a project +date : 10-12-2024 +image : example-img.png +--- + ``` + \ No newline at end of file diff --git a/contents/docs/api-reference/post/index.mdx b/contents/docs/api-reference/post/index.mdx new file mode 100644 index 0000000..fa780cd --- /dev/null +++ b/contents/docs/api-reference/post/index.mdx @@ -0,0 +1,63 @@ +--- +title : Post +description : example api POST +date : 10-12-2024 +--- + +## Heading 2 + +this is regular text written in markdown format with `inline code`, **bold**, and *italic* + +### Heading 3 + +example of ordered list format : + +- list one + - sub list +- list two +- list three + +#### Heading 4 + +Below is an example of how to write a code block : + +````plaintext +```javascript:main.js showLineNumbers {3-4} +function isRocketAboutToCrash() { + // Check if the rocket is stable + if (!isStable()) { + NoCrash(); // Prevent the crash + } +} +``` +```` + +example note : +```plaintext + + This is a general note to convey information to the user. + +``` + +displaying an image in markdown format : + +```plaintext +![Alt text for the image](https://via.placeholder.com/150) +``` + +render as : +![Alt text for the image](https://via.placeholder.com/150) + +For a complete guide on using markdown content in DocuBook, please refer to the [Components](https://docubook.pro/docs/components) page. + + + every page that is indexed in a folder will have an `index.mdx` file with metadata : + ```plaintext +--- +title : Introduction +description : overview or synopsis of a project +date : 10-12-2024 +image : example-img.png +--- + ``` + \ No newline at end of file diff --git a/contents/docs/changelog/version-1/index.mdx b/contents/docs/changelog/version-1/index.mdx index c7e37f1..f5a1ce8 100644 --- a/contents/docs/changelog/version-1/index.mdx +++ b/contents/docs/changelog/version-1/index.mdx @@ -1,687 +1,49 @@ --- -title: Release Version 1.0+ -description: List of latest changes and updates on DocuBook -date: 02-08-2025 +title : Version 1 +description : changelog version +date : 10-12-2024 --- - - 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. - +## Render as -
-### v 1.15.1 -
- - + - - new DocSearch.tsx components - - add props type algolia - - add searchprops - - add algolia.css - - - - -To use Algolia DocSearch, you need to configure the following environment variables: - -```plaintext -NEXT_PUBLIC_ALGOLIA_DOCSEARCH_APP_ID="your_app_id" -NEXT_PUBLIC_ALGOLIA_DOCSEARCH_API_KEY="your_api_key" -NEXT_PUBLIC_ALGOLIA_DOCSEARCH_INDEX_NAME="your_index_name" -``` - -in the navbar component, add a prop to the class - -``` -Change to -``` - - -
-### v 1.14.2 -
- - - - - Refactor Search component into three distinct components: Search, SearchTrigger, and SearchModal for better maintainability and scalability. - - New SearchTrigger components - - New SearchModal components + - add components - - Resolve TypeScript error for missing 'noLink' property on the 'Page' type after refactoring. - - Fix TypeScript error for missing 'context' property by providing a complete inline type annotation in the SearchModal component. - - - -
-### v 1.14.0 -
- - - - - Add workflows to run Sync NPM package - - Add sync-from-npm.yml - - Add PR to organization github.com/DocuBook/docubook - - - -
-### v 1.13.9 -
- - - - - Added proper type definitions for unist-util-visit - - Added .eslintrc.json configuration file - - Added proper type checking for node values in markdown processing + - fix globals.css - - Enhanced type safety in lib/markdown.ts with proper TypeScript interfaces - - Converted interface extensions to type aliases in UI components for consistency - - Improved code organization across multiple files + - improved search components - - - Fixed potential null reference in markdown.ts when processing code blocks - - Updated import for MDXRemote in mdx-provider.tsx - - Optimized event listener cleanup in toc-observer.tsx - - - - Removed unused state and variables in toc-observer.tsx - - Removed unused imports for cleaner codebase - - - -
-### v 1.13.6 -
- - - - - Improve sheet leftbar and search icon - - color scheme for sheet leftbar - - color scheme for search icon - - - -
-### v 1.13.5 -
- - - - - Add Theme schema - - Add Freshlime theme - - Add Coffee theme - - Add llms context for generated theme with AI - - - - Markdown support for theme-colors - - consistent theme-colors page - - all components now consistent with theme-colors - - syntax with theme-colors - - - - fix bug FileTree component - - fix issue markdown with theme-colors - - - -
-### v 1.13.0 -
- - - - - New ContextMenu component for organizing file and folder - - Nested docs folder and file support with context menu - - - - improve routes-config with context menu - - improve docu.json with context menu - - improve leftbar with context menu - - improve docs-menu with context menu - - improve search dialog limit result to 6 post per suggestion - - improve search result typing 3 characters to show suggestion - - - -
-### v 1.12.0 -
- - - - - New FileTree component for displaying hierarchical file structures - - Support for nested folders and files with expand/collapse functionality - - Hover effects showing file extensions - - Dark mode support with modern styling - - Keyboard navigation and accessibility features - - add toc-observer data attribute to detect toc section - - cli to copy from path npm registry - - - - search dialog hover effect return key - - search icon showing on mobile screens - - - - fix search dialog on mobile screens - - fix release note component eslint error on mdx when rendering - - fix mob-toc callback function - - fix toc height issue when toc section is longer than screen height - - - - remove prompts depedencies - - remove degit depedencies - - remove prompts functions - - remove degit functions - - remove prompts and degit from package.json - - remove clone repository using git - - - - - on this version `1.12.0`, we remove clone repository using git and replace it with cli to copy from path npm registry - - -
-### v 1.11.0 -
- - - - - New ReleaseNote component for structured changelog display - - Added support for categorized changes (added, fixed, improved, deprecated, removed) - - Integrated Lucide icons for better visual hierarchy - - Support for multiple release notes - - - - - Enhanced documentation with comprehensive usage examples - - Better component organization and styling - - Semantic versioning support - - Nested release notes support - - - - - Removed old changelog page in favor of the new ReleaseMdx component - - Removed changelog.md - - Removed changelog/page.tsx - - Removed changelog.ts - - Removed components/changelog - - - -
-### v 1.10.1 -
- - - - - Added missing DialogDescription components for better accessibility - - Fixed image aspect ratio issues in navbar logo - - Resolved console warnings for missing image sizes - - Improved keyboard navigation in search component - - Fixed mobile layout for search result items - - - - - Added proper ARIA labels for screen readers - - Enhanced focus management in dialogs - - Optimized image loading with proper sizing attributes - - Better mobile experience with responsive design fixes - - - - - Remove blog page - - Remove blog functions on markdown - - - -
-### v 1.10.0 -
- - - - - New reusable ToggleButton component with animation - - Mobile-friendly Table of Contents (TOC) component - - Click-outside handler for better mobile navigation - - Smooth scroll behavior for TOC navigation - - Active section highlighting in TOC - - - - - Sidebar now has a collapsible design - - Enhanced mobile responsiveness for TOC - - Better visual hierarchy in sidebar navigation - - Smoother animations for sidebar toggle - - Optimized TOC performance with intersection observer - - Improved accessibility with proper ARIA labels - - Better spacing and alignment in mobile view - - - - - Fixed sidebar toggle button positioning - - Resolved TOC highlighting issues during scroll - - Fixed z-index conflicts in mobile view - - Addressed minor UI glitches in dark mode - - Fixed TOC not updating on route changes - - Resolved scroll jank on mobile devices - - Fixed incorrect active state in navigation - - - - No longer support changelog.md - - No longer support changelog/page.tsx (will be removed in future update) + - deprecated footer components + + + - removed utility class + - removed unused hooks -
-### v 1.9.0 -
+## Output Markdown - +``` + - - New Keyboard component with props show, type, children - - Snippet keyboard component + - add components - - - - Support custom content - - Support platform type (mac or window) - - Support automatic rendering of platform-specific key symbols - - Rename lowercase to camelCase for markdown component - - - -
-### v 1.8.5 -
- - - - - Expandables Leftbar - - Sponsor badges or ads - - Boolean show/hide 'edit on github' - - With the same code run anywhere (bun or nodejs) - - Add frontmatter (metadata) to playground editor - - - - - Adjustment docu.json - - Adjustment navbar, footer and components - - - - Bun compatibility: rename .js to common js - - CLI manage packageManager on package.json - - Inconsistent design moved to better UI/UX - - Error handle render footer.social + - fix globals.css + + + - improved search components + + + - deprecated footer components - - - Remove confusing and verbose CLI on installer + - removed utility class + - removed unused hooks - -
-### v 1.8.0 -
- - - - - Social footer - - Toggle group - - Site description in footer - - Site title in footer - - - - - Header design changes - - Footer design changes - - New functions in theme provider - - Object changes in docu.json - - - - - Updates to path structure components - - Groups to organize components - - - -
-### v 1.7.0 -
- - - - - Up and down navigation in search dialog - - Enter (return) to select in search dialog - - Escape to close the dialog - - - - - Maintenance for anchor components - - Anchor.tsx adjustments for all elements that use it - - - - - Remove suboptimal search features - - - -
-### v 1.6.0 -
- - - - - Card Groups Components - - Props: href to url link - - Props: horizontal boolean - - - - - Card props styling - - Compatibility for Cards components - - Support for children props in card content - - - - - Remove unused props cards components - - - -
-### v 1.5.0 -
- - - - - New dialog footer on searchbox above medium screens - - Icon X for close dialog on searchbox (ESC key on medium screen) - - - - - Responsive Leftbar components on large screens - - Menu Trigger on medium screens - - Responsive Navbar components on medium screens - - Better UX for searchbox dialog - - Tooltips components can be written together with regular paragraphs - - - - - Responsive issues - - Compatibility for Bun - - Changes postcss.config.js to .cjs for Bun - - All CLI installer and updater not working - - Adjustments for package managers (npm, pnpm, bun, yarn) - - - -
-### v 1.4.2 -
- - - - - New Props with children in accordion - - Compatibility for markdown in accordion - - Nested components inside an accordion - - New icon on note components - - Add CLI npx @docubook/create@latest - - Add CLI npx @docubook/update@latest - - - - - Better UI design for accordion - - Styling Note components on markdown - - Change accordion output on playground - - Change accordion output on snippet - - - - - Remove deprecated props on accordion - - Remove CLI npx update_docu - - Remove CLI npx create_docu - - - -
-### v 1.4.0 -
- - - - - New components / changelog floating-version.tsx - - Button popover to open version-toc below large screens - - Dynamic tag by section ID #version - - Dynamic url tag #version - - Dynamic version indicator on floating version when scrolling section by ID - - - - - Change icon version history - - Responsive version-toc - - Improvement components to changelog page - - - -
-### v 1.3.8 -
- - - - - Components terminal MagicUI - - Components card Shadcn - - New mob-toc for a better experience on mobile devices - - New Components scroll to top button - - Scroll to top: blog-post - - Scroll to top: docs-post - - - - - lib/markdown for generated dynamic toc on markdown - - Responsive Table of Content below large screens - - Improve docs page - - - -
-### v 1.3.6 -
- - - - - - Line Number for editor - - editor.css - - - - - Better Design for Editor - - Similar to Github Editor - - Moved Handler Element (copy, download, reset and fullscreen) on Header - - - -
-### v 1.3.5 -
- - - - - - New Playground Page - - New Playground Layout - - Toolbar for Markdown Components - - Fullscreen Mode to Focus Editing Your Content - - Copy to Clipboard Your Content - - Download Your Content as index.mdx - - Reset Your Content without refresh the Browser - - Only Large Screen for Better Experience - - - -
-### v 1.3.1 -
- - - - - - New Feature Snippet for Markdown Components - - Support Snippet for Visual Studio Code - - - - - Remove props icon and props description for accordion components - - - -
-### v 1.3.0 -
- - - - - New Release Note Feature - - New Layout for Changelog page - - New Changelog page - - Add Release Note Component - - Easily write release notes directly from the CHANGELOG.md file - - TOC for versioning - - Write with the markdown tag - - Add lib / changelog.ts - - - - - Improvement Responsive feature image for Version Entry - - Improvement Layout for changelog page - - Improvement Padding on mobile devices - - Only use containers of md size - - Improvement syntax.css for ul>li classes - - - - - Fix og:image not showing on Page.tsx - - Fix text-indent on class li - - - - - Remove excessive padding - - Remove Logo on Footer - - - -
-### v 1.2.0 -
- - - - - Add New Accordion Component - - - - - Props Improvement - - Support Dynamic Content for Accordion - - - -
-### v 1.1.0 -
- - - - - Add docu.json file - - Add openGraph (title, description, image) - - Add Dynamic metadata - - Generate metadata as openGraph - - OpenGraph support for .mdx - - - - - Routes-config from json - - Frontmatter improvement - - Edit the content of footer.tsx simply via the docu.json file - - Edit the content of navbar.tsx simply via the docu.json file - - - -
-### v 1.0.7 -
- - - - - CLI npx update_docu (update features into docubook existing directory) - - Playground (easily to written content) - - New Button component - - Navbar external link conditions - - CLI npx create_docu - - - - - Searchbar Improvement - - Navigation Improvement - - Edit on Github Improvement - - - - - Remove CLI npx create-docu (on this version not usage dash `-`) - - - -
-### v 1.0.6 -
- - - - - New Card component - - New Tooltips component - - - - - Change root folder - - - - - Logo on navbar & footer - - Easily change logo - - - -
-### v 1.0.5 -
- - - - - New Youtube component - - Edit this page - easily manage directory content via the github repo - - Support installation via CLI command npx create-docu - - - - - Keyboard shortcut command + k or ctrl + k to open search dialog - - - -
-### v 1.0.0 -
- - - - - Initial release of DocuBook - - Basic documentation structure - - Markdown support with MDX - - Responsive design - - Search functionality - - Dark mode support - - \ No newline at end of file +``` \ No newline at end of file diff --git a/contents/docs/changelog/version-2/index.mdx b/contents/docs/changelog/version-2/index.mdx new file mode 100644 index 0000000..05b201e --- /dev/null +++ b/contents/docs/changelog/version-2/index.mdx @@ -0,0 +1,49 @@ +--- +title : Version 2 +description : changelog version +date : 10-12-2024 +--- + +## Render as + + + + - add components + + + - fix globals.css + + + - improved search components + + + - deprecated footer components + + + - removed utility class + - removed unused hooks + + + +## Output Markdown + +``` + + + - add components + + + - fix globals.css + + + - improved search components + + + - deprecated footer components + + + - removed utility class + - removed unused hooks + + +``` \ No newline at end of file diff --git a/contents/docs/changelog/version-3/index.mdx b/contents/docs/changelog/version-3/index.mdx new file mode 100644 index 0000000..1ddfba8 --- /dev/null +++ b/contents/docs/changelog/version-3/index.mdx @@ -0,0 +1,49 @@ +--- +title : Version 3 +description : changelog version +date : 10-12-2024 +--- + +## Render as + + + + - add components + + + - fix globals.css + + + - improved search components + + + - deprecated footer components + + + - removed utility class + - removed unused hooks + + + +## Output Markdown + +``` + + + - add components + + + - fix globals.css + + + - improved search components + + + - deprecated footer components + + + - removed utility class + - removed unused hooks + + +``` \ No newline at end of file diff --git a/contents/docs/components/accordion/index.mdx b/contents/docs/components/accordion/index.mdx deleted file mode 100644 index fbc1343..0000000 --- a/contents/docs/components/accordion/index.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -title: Accordion -description: A component used to create collapsible content that can be hidden and shown again. -date: 22-12-2024 ---- - -## Preview - -### Basic Usage - - - 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. - - -### With Code Block - - - ```javascript:utils.js showLineNumbers - // Example of using the Accordion component - import Accordion from '@/components/markdown/AccordionMdx'; - - function Example() { - return ( - -
-                    {`function greet() {\n    console.log('Hello, world!');\n}`}
-                
-
- ); - } - ``` -
- -### With Markdown Content - - - ## This is a markdown heading - - - List item 1 - - List item 2 - - List item 3 - - You can include **bold** and *italic* text, [links](#), and other markdown elements. - - -## Props - -| Prop | Type | Default | Description | -|------|------|---------|-------------| -| `title` | string | - | **Required**. The text displayed in the accordion header. | -| `children` | ReactNode | null | The content to be displayed when the accordion is expanded. Can be plain text, markdown, or React components. | -| `defaultOpen` | boolean | false | When true, the accordion will be expanded by default. | -| `className` | string | undefined | Additional CSS classes to apply to the accordion container. | - -## Output Markdown - - - - Markdown - Code Block - - - ```plaintext - - this is an example of plain text content from the accordion component and below is markdown ; - 1. number one - 2. number two - 3. number three - - ``` - - - ````plaintext - - ```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/components/button/index.mdx b/contents/docs/components/button/index.mdx deleted file mode 100644 index a26749a..0000000 --- a/contents/docs/components/button/index.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: Button -description: A component used to create buttons that can be used to trigger actions or navigate to other pages. -date: 14-12-2024 ---- - -## Preview - -