diff --git a/.changeset/green-cups-divide.md b/.changeset/green-cups-divide.md new file mode 100644 index 0000000..6b4f6db --- /dev/null +++ b/.changeset/green-cups-divide.md @@ -0,0 +1,5 @@ +--- +"create-docubase": patch +--- + +UI Update website 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/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 bc3d07a..7e6938a 100644 --- a/template/src/components/BlogCard.astro +++ b/template/src/components/BlogCard.astro @@ -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 2585382..fa1ad22 100644 --- a/template/src/components/BottomNav.astro +++ b/template/src/components/BottomNav.astro @@ -128,7 +128,3 @@ const defaultFallbackLinks: NavTarget[] = fallbackLinks || [ )} - - diff --git a/template/src/components/Button.astro b/template/src/components/Button.astro index 3002a9e..b2cd49d 100644 --- a/template/src/components/Button.astro +++ b/template/src/components/Button.astro @@ -23,16 +23,16 @@ const Tag = href ? 'a' : 'button'; class:list={['btn', `btn-${variant}`, className]} > {icon && iconPosition === 'left' && ( - + )} {icon && iconPosition === 'right' && ( - + )} - - - diff --git a/template/src/components/DocNav.astro b/template/src/components/DocNav.astro index a537f9d..1fff8b0 100644 --- a/template/src/components/DocNav.astro +++ b/template/src/components/DocNav.astro @@ -37,7 +37,3 @@ const { prev, next } = Astro.props;
)} - - diff --git a/template/src/components/FeatureCard.astro b/template/src/components/FeatureCard.astro index 6803961..4f48f28 100644 --- a/template/src/components/FeatureCard.astro +++ b/template/src/components/FeatureCard.astro @@ -16,7 +16,7 @@ const Tag = href ? 'a' : 'div'; ]} >
-
+

{title}

{description}

diff --git a/template/src/components/FlipCard.astro b/template/src/components/FlipCard.astro index 86d16d8..9bdd725 100644 --- a/template/src/components/FlipCard.astro +++ b/template/src/components/FlipCard.astro @@ -193,7 +193,3 @@ const { title, description, icon } = Astro.props as Props; z-index: 1; } - - diff --git a/template/src/components/Footer.astro b/template/src/components/Footer.astro index 16f655d..ff09cc9 100644 --- a/template/src/components/Footer.astro +++ b/template/src/components/Footer.astro @@ -29,7 +29,3 @@ const currentYear = new Date().getFullYear();
- - diff --git a/template/src/components/Header.astro b/template/src/components/Header.astro index 79248de..733814f 100644 --- a/template/src/components/Header.astro +++ b/template/src/components/Header.astro @@ -92,10 +92,6 @@ const navLinks = NAV_LINKS;
- - 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/Tabs.astro b/template/src/components/Tabs.astro index 935260f..5e0aa3c 100644 --- a/template/src/components/Tabs.astro +++ b/template/src/components/Tabs.astro @@ -24,7 +24,7 @@ const tabsId = id || `tabs-${hashString(labels.join('-'))}`; 'focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-inset', index === defaultIndex ? 'text-primary-600 dark:text-white bg-gray-100 dark:bg-gray-800' - : 'text-gray-700 dark:text-gray-400 bg-transparent hover:text-gray-900 dark:hover:text-gray-200', + : 'text-gray-700 dark:text-gray-400 bg-transparent hover:text-primary-700 dark:hover:text-gray-200', ]} data-tab-index={index} aria-selected={index === defaultIndex} @@ -53,7 +53,7 @@ const tabsId = id || `tabs-${hashString(labels.join('-'))}`; (window as any).__tabsInitialized = true; const TAB_ACTIVE_CLASSES = ['text-primary-600', 'dark:text-white', 'bg-gray-100', 'dark:bg-gray-800']; - const TAB_INACTIVE_CLASSES = ['text-gray-700', 'dark:text-gray-400']; + const TAB_INACTIVE_CLASSES = ['text-gray-700', 'dark:text-gray-400', 'bg-transparent']; function activateTab(container: Element, index: number) { const tabs = Array.from(container.querySelectorAll('.tab-button')) as HTMLElement[]; diff --git a/template/src/content/docs/installation/index.mdx b/template/src/content/docs/installation/index.mdx index 4e41742..58e381b 100644 --- a/template/src/content/docs/installation/index.mdx +++ b/template/src/content/docs/installation/index.mdx @@ -322,17 +322,9 @@ Check the changelog before updating to review any breaking changes. Now that you have DocuBase installed, here's what to do next: -
- - - -
+- [Getting Started](/docs/getting-started) - Learn the basics and start building your documentation +- [Core Concepts](/docs/core-concepts) - Understand how DocuBase works under the hood +- [Components](/docs/components) - Explore all available components and how to use them If you run into any issues during installation, check the troubleshooting section above or visit our [GitHub repository](https://github.com/Sithumli/DocuBase/issues) to report a bug. diff --git a/template/src/layouts/BaseLayout.astro b/template/src/layouts/BaseLayout.astro index 63d251a..2ed1b70 100644 --- a/template/src/layouts/BaseLayout.astro +++ b/template/src/layouts/BaseLayout.astro @@ -22,6 +22,7 @@ const siteTitle = SITE_TITLE; +
{header} @@ -21,7 +21,7 @@ const { headers, rows, striped = true } = Astro.props as TableProps; {rowIndex !== 0 && !striped && (
-
+