From 4521957fb9b5c20cc08824187fcacacd5740aa1a Mon Sep 17 00:00:00 2001 From: Wildan Nursahidan Date: Sat, 1 Mar 2025 18:18:54 +0700 Subject: [PATCH] update versi docubook --- CHANGELOG.md | 23 + LICENSE | 2 +- README.md | 33 -- app/blog/[slug]/page.tsx | 4 +- app/docs/[[...slug]]/page.tsx | 14 +- app/docs/layout.tsx | 4 +- app/hire-me/page.tsx | 18 - app/layout.tsx | 8 +- components/{ => docs}/anchor.tsx | 0 components/{ => docs}/docs-breadcrumb.tsx | 0 components/{ => docs}/docs-menu.tsx | 0 components/{ => docs}/edit-on-github.tsx | 4 +- components/docs/footer.tsx | 56 +++ components/{ => docs}/leftbar.tsx | 10 +- components/{ => docs}/mob-toc.tsx | 0 components/{ => docs}/navbar.tsx | 37 +- components/{ => docs}/pagination.tsx | 4 +- components/{ => docs}/scroll-to-top.tsx | 2 +- components/{ => docs}/search.tsx | 4 +- components/{ => docs}/sublink.tsx | 0 components/docs/theme-toggle.tsx | 71 ++++ components/{ => docs}/toc-observer.tsx | 0 components/{ => docs}/toc.tsx | 0 components/{ => docs}/typography.tsx | 0 components/footer.tsx | 57 --- components/home/copycommand.tsx | 33 ++ components/home/runtime.tsx | 91 ++++ components/terminal.tsx | 48 --- components/theme-toggle.tsx | 40 -- components/ui/toggle-group.tsx | 61 +++ components/ui/toggle.tsx | 46 ++ docu.json | 17 +- package-lock.json | 497 +++++++++++++--------- package.json | 4 +- pnpm-lock.yaml | 58 +++ 35 files changed, 790 insertions(+), 456 deletions(-) delete mode 100644 app/hire-me/page.tsx rename components/{ => docs}/anchor.tsx (100%) rename components/{ => docs}/docs-breadcrumb.tsx (100%) rename components/{ => docs}/docs-menu.tsx (100%) rename components/{ => docs}/edit-on-github.tsx (93%) create mode 100644 components/docs/footer.tsx rename components/{ => docs}/leftbar.tsx (83%) rename components/{ => docs}/mob-toc.tsx (100%) rename components/{ => docs}/navbar.tsx (58%) rename components/{ => docs}/pagination.tsx (96%) rename components/{ => docs}/scroll-to-top.tsx (97%) rename components/{ => docs}/search.tsx (95%) rename components/{ => docs}/sublink.tsx (100%) create mode 100644 components/docs/theme-toggle.tsx rename components/{ => docs}/toc-observer.tsx (100%) rename components/{ => docs}/toc.tsx (100%) rename components/{ => docs}/typography.tsx (100%) delete mode 100644 components/footer.tsx create mode 100644 components/home/copycommand.tsx create mode 100644 components/home/runtime.tsx delete mode 100644 components/terminal.tsx delete mode 100644 components/theme-toggle.tsx create mode 100644 components/ui/toggle-group.tsx create mode 100644 components/ui/toggle.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fbe5d9..0cac9ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## [1.8.0] - 2025-03-01 + +> Now looks more modern and clean which is a big change in layout and design + +### Added + +- Social footer +- Toggle group +- Site description {meta.description} in footer +- Site title {meta.title} in footer + +### Improved + +- Header design changes +- Footer design changes +- New functions in theme provider +- Object changes in docu.json + +### Fixed + +- Updates to path structure components +- Groups to organize components + ## [1.7.0] - 2025-02-23 > Remove the old function in the search dialog and replace it with a new and more optimal feature diff --git a/LICENSE b/LICENSE index ab7a1da..02e35d7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Mohd. Nisab +Copyright (c) 2025 Wildan Nursahidan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 7a368f7..8d684d2 100644 --- a/README.md +++ b/README.md @@ -36,36 +36,3 @@ Next steps: 3. Start the development server: npm run dev ``` - -## Update -### How to Update DocuBook? -- **Open a New Terminal**: Please open a new terminal on the desktop that has DocuBook installed. -- **Move Directory**: for example, if the directory name is docubook, then write `cd docubook` and press enter. - -```bash -npx @docubook/update@latest -``` - -#### command output - -```bash -📂 Updating Docubook project in /Users/wildan/Public/docubook... - -ℹ ⚡ Skipped public -ℹ ⚡ Skipped contents -ℹ ⚡ Skipped app/page.tsx -ℹ ⚡ Skipped docu.json -ℹ ⚡ Skipped CHANGELOG.md -✨ Replacing styles folder... -✨ Replaced all CSS files in styles folder -✔ ✅ Docubook v1.4.2 successfully updated in /Users/wildan/Public/docubook! - -🎯 Next steps: -1. Verify your changes in the current directory. -2. Run the install script to check for package updates: - npm install -3. Run the development server: - npm run dev -``` - -Access the app on => http://localhost:3000 diff --git a/app/blog/[slug]/page.tsx b/app/blog/[slug]/page.tsx index 42951bc..61f6953 100644 --- a/app/blog/[slug]/page.tsx +++ b/app/blog/[slug]/page.tsx @@ -1,4 +1,4 @@ -import { Typography } from "@/components/typography"; +import { Typography } from "@/components/docs/typography"; import { buttonVariants } from "@/components/ui/button"; import { Author, getAllBlogStaticPaths, getBlogForSlug } from "@/lib/markdown"; import { ArrowLeftIcon } from "lucide-react"; @@ -6,7 +6,7 @@ import Link from "next/link"; import { notFound } from "next/navigation"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { formatDate } from "@/lib/utils"; -import { ScrollToTop } from "@/components/scroll-to-top"; +import { ScrollToTop } from "@/components/docs/scroll-to-top"; type PageProps = { params: { slug: string }; diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx index aa1a9da..02e2621 100644 --- a/app/docs/[[...slug]]/page.tsx +++ b/app/docs/[[...slug]]/page.tsx @@ -1,14 +1,14 @@ import { notFound } from "next/navigation"; import { getDocsForSlug, getDocsTocs } from "@/lib/markdown"; -import DocsBreadcrumb from "@/components/docs-breadcrumb"; -import Pagination from "@/components/pagination"; -import Toc from "@/components/toc"; -import { Typography } from "@/components/typography"; -import EditThisPage from "@/components/edit-on-github"; +import DocsBreadcrumb from "@/components/docs/docs-breadcrumb"; +import Pagination from "@/components/docs/pagination"; +import Toc from "@/components/docs/toc"; +import { Typography } from "@/components/docs/typography"; +import EditThisPage from "@/components/docs/edit-on-github"; import { formatDate2 } from "@/lib/utils"; import docuConfig from "@/docu.json"; -import MobToc from "@/components/mob-toc"; -import { ScrollToTop } from "@/components/scroll-to-top"; +import MobToc from "@/components/docs/mob-toc"; +import { ScrollToTop } from "@/components/docs/scroll-to-top"; const { meta } = docuConfig; diff --git a/app/docs/layout.tsx b/app/docs/layout.tsx index 83f9bba..c769f8f 100644 --- a/app/docs/layout.tsx +++ b/app/docs/layout.tsx @@ -1,4 +1,4 @@ -import { Leftbar } from "@/components/leftbar"; +import { Leftbar } from "@/components/docs/leftbar"; export default function DocsLayout({ children, @@ -11,4 +11,4 @@ export default function DocsLayout({
{children}
); -} \ No newline at end of file +} diff --git a/app/hire-me/page.tsx b/app/hire-me/page.tsx deleted file mode 100644 index 327d889..0000000 --- a/app/hire-me/page.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { getMetadata } from "@/app/layout"; - -export const metadata = getMetadata({ - title: "Hire Me", - description: "Hire me to start a documentation project with DocuBook", -}); - -export default function EmbeddedHTML() { - return ( -
-