diff --git a/CHANGELOG.md b/CHANGELOG.md index f507a44..f78eb63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # create-docubase +## 1.1.1 + +### Patch Changes + +- 707a3c8: UI Update website + +## 1.1.0 + +### Minor Changes + +- 6420e72: Add dark mode support with theme toggle functionality + ## 1.0.2 ### Patch Changes diff --git a/astro.config.mjs b/astro.config.mjs index ea33506..529bc68 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -34,7 +34,6 @@ export default defineConfig({ rehypePlugins: [rehypeSlug], shikiConfig: { theme: 'github-dark', - wrap: true, }, }, }); \ No newline at end of file diff --git a/package.json b/package.json index 62ff963..eabbd67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-docubase", - "version": "1.0.2", + "version": "1.1.1", "description": "Create a new DocuBase documentation site", "type": "module", "bin": { diff --git a/template/astro.config.mjs b/template/astro.config.mjs index 9abaec9..d554a02 100644 --- a/template/astro.config.mjs +++ b/template/astro.config.mjs @@ -32,7 +32,6 @@ export default defineConfig({ rehypePlugins: [rehypeSlug], shikiConfig: { theme: 'github-dark', - wrap: true, }, }, }); \ No newline at end of file diff --git a/template/src/components/BlogCard.astro b/template/src/components/BlogCard.astro index 2630d91..7e6938a 100644 --- a/template/src/components/BlogCard.astro +++ b/template/src/components/BlogCard.astro @@ -7,18 +7,18 @@ const { title, description, date, readTime = DEFAULTS.BLOG_CARD.readTime, image, {image && ( -
+
{title}
)}
-

{title}

-

{description}

-
+

{title}

+

{description}

+
{date} @@ -27,7 +27,3 @@ const { title, description, date, readTime = DEFAULTS.BLOG_CARD.readTime, image,
- - diff --git a/template/src/components/BottomNav.astro b/template/src/components/BottomNav.astro index cb118fa..fa1ad22 100644 --- a/template/src/components/BottomNav.astro +++ b/template/src/components/BottomNav.astro @@ -20,20 +20,20 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [ ]; --- -
+
{showProgress && ( -
+
- + Page {context.currentIndex} of {context.totalInBlock} {context.blockTitle && ` in ${context.blockTitle}`} - {Math.round((context.currentIndex / context.totalInBlock) * 100)}% complete + {Math.round((context.currentIndex / context.totalInBlock) * 100)}% complete
-
+
@@ -44,13 +44,12 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [ {prev ? ( - +
- Previous - + Previous + {prev.title}
@@ -62,16 +61,15 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [ {next ? (
- Next - + Next + {next.title}
- +
) : (
@@ -79,27 +77,26 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [ ) : showFallback ? (
-
- +
+
-

+

You've reached the end!

-

+

Explore other content to continue your journey

{defaultFallbackLinks.map((link) => ( -
+
{link.title}
{link.description && ( -
+
{link.description}
)} @@ -113,42 +110,21 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [
- - - - diff --git a/template/src/components/Breadcrumb.astro b/template/src/components/Breadcrumb.astro index 837224a..77492a9 100644 --- a/template/src/components/Breadcrumb.astro +++ b/template/src/components/Breadcrumb.astro @@ -4,16 +4,16 @@ import type { BreadcrumbProps } from '@/types'; const { items } = Astro.props as BreadcrumbProps; --- - -
+
+ +
+ + +
diff --git a/template/src/components/Hero.astro b/template/src/components/Hero.astro index 68dad94..961a854 100644 --- a/template/src/components/Hero.astro +++ b/template/src/components/Hero.astro @@ -17,19 +17,19 @@ const {
{subtitle && ( -

{subtitle}

+

{subtitle}

)} -

+

{title}{" "} {highlightedText && ( - {highlightedText} + {highlightedText} )}

-

+

{description}

diff --git a/template/src/components/ReadTime.astro b/template/src/components/ReadTime.astro index b81a57c..e4013df 100644 --- a/template/src/components/ReadTime.astro +++ b/template/src/components/ReadTime.astro @@ -4,11 +4,7 @@ import type { ReadTimeProps } from '@/types'; const { minutes } = Astro.props as ReadTimeProps; --- -
+
{minutes} min read
- - diff --git a/template/src/components/SectionHeader.astro b/template/src/components/SectionHeader.astro index 1ab55a5..ff704f0 100644 --- a/template/src/components/SectionHeader.astro +++ b/template/src/components/SectionHeader.astro @@ -4,4 +4,4 @@ import type { SectionHeaderProps } from '@/types'; const { title, class: className = "" } = Astro.props as SectionHeaderProps; --- -

{title}

+

{title}

diff --git a/template/src/components/Sidebar.astro b/template/src/components/Sidebar.astro index 168e97d..2f9040d 100644 --- a/template/src/components/Sidebar.astro +++ b/template/src/components/Sidebar.astro @@ -13,7 +13,7 @@ const { items, currentPath = "" } = Astro.props; @@ -25,7 +25,7 @@ const { items, currentPath = "" } = Astro.props; diff --git a/template/src/components/Step.astro b/template/src/components/Step.astro index 791b014..e74d8f6 100644 --- a/template/src/components/Step.astro +++ b/template/src/components/Step.astro @@ -6,7 +6,7 @@ const { title } = Astro.props as StepProps;
-
+

{title}

@@ -16,7 +16,7 @@ const { title } = Astro.props as StepProps;
diff --git a/template/src/components/Table.astro b/template/src/components/Table.astro index 0f51607..5ad9314 100644 --- a/template/src/components/Table.astro +++ b/template/src/components/Table.astro @@ -4,10 +4,10 @@ import type { TableProps } from '@/types'; const { headers, rows, striped = true } = Astro.props as TableProps; --- -
+
- + {headers.map((header, i) => ( )} diff --git a/template/src/components/TableOfContents.astro b/template/src/components/TableOfContents.astro index 68df840..7b8c353 100644 --- a/template/src/components/TableOfContents.astro +++ b/template/src/components/TableOfContents.astro @@ -10,11 +10,11 @@ const { items, title = DEFAULTS.TOC.title, showBorder = true, nested = false, co
{collapsible ? ( -
+
@@ -23,14 +23,14 @@ const { items, title = DEFAULTS.TOC.title, showBorder = true, nested = false, co
-

{title}

+

{title}

{header} @@ -21,7 +21,7 @@ const { headers, rows, striped = true } = Astro.props as TableProps; {rowIndex !== 0 && !striped && (
-
+