diff --git a/.changeset/docs-homepage-hero.md b/.changeset/docs-homepage-hero.md new file mode 100644 index 000000000..739606dbb --- /dev/null +++ b/.changeset/docs-homepage-hero.md @@ -0,0 +1,5 @@ +--- +"@tabler/docs": patch +--- + +Updated the hero image on the docs homepage with a new dashboard graphic for light and dark mode. diff --git a/.changeset/docs-toc-width.md b/.changeset/docs-toc-width.md new file mode 100644 index 000000000..38db93546 --- /dev/null +++ b/.changeset/docs-toc-width.md @@ -0,0 +1,5 @@ +--- +"@tabler/docs": patch +--- + +Updated the table of contents rail on docs pages to a fixed `13rem` width. diff --git a/docs/.env.example b/docs/.env.example index 6a3eff580..f239db7a1 100644 --- a/docs/.env.example +++ b/docs/.env.example @@ -5,3 +5,7 @@ DOCSEARCH_APP_ID= DOCSEARCH_INDEX_NAME= DOCSEARCH_API_KEY= + +# PostHog public project token (see shared/components/Analytics.astro). +# Only used in Vercel production builds; leave empty locally. +POSTHOG_KEY= diff --git a/docs/assets/img/tabler-dark.png b/docs/assets/img/tabler-dark.png deleted file mode 100644 index 0b2a69fb0..000000000 Binary files a/docs/assets/img/tabler-dark.png and /dev/null differ diff --git a/docs/assets/img/tabler.png b/docs/assets/img/tabler.png deleted file mode 100644 index 2bcbf7f61..000000000 Binary files a/docs/assets/img/tabler.png and /dev/null differ diff --git a/docs/content/index.mdx b/docs/content/index.mdx index e14b67ee1..caea6f672 100644 --- a/docs/content/index.mdx +++ b/docs/content/index.mdx @@ -6,9 +6,12 @@ hide-pagination: true --- import Card from '@components/DocsCard.astro' +import { Image } from 'astro:assets' +import coverLight from '../images/cover-docs.png' +import coverDark from '../images/cover-docs-dark.png' - - + + This is the documentation for Tabler and the tools around it: the UI kit, its plugins, Tabler Icons, Illustrations and the email templates. Pick a section below to get started. diff --git a/docs/images/cover-docs-dark.png b/docs/images/cover-docs-dark.png new file mode 100644 index 000000000..349730d21 Binary files /dev/null and b/docs/images/cover-docs-dark.png differ diff --git a/docs/images/cover-docs.png b/docs/images/cover-docs.png new file mode 100644 index 000000000..bc7730d88 Binary files /dev/null and b/docs/images/cover-docs.png differ diff --git a/docs/layouts/DocsLayout.astro b/docs/layouts/DocsLayout.astro index 05e6f27c5..431138936 100644 --- a/docs/layouts/DocsLayout.astro +++ b/docs/layouts/DocsLayout.astro @@ -3,6 +3,7 @@ // Standalone layout with its own
; does NOT use BaseLayout.astro. // Development uses the unminified assets; production additionally emits the SEO metadata. import { site } from '@shared/lib/site'; +import Analytics from '@shared/components/Analytics.astro'; import { isExternal } from '@shared/lib/url'; import libs from '@tabler/core/libs.json'; import docs from '@data/docs.json'; @@ -308,6 +309,8 @@ const relatedPages = await Promise.all( + +