From 8b84fa6b505b29f568164551d85944ba8e2db7c2 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 30 May 2024 19:09:07 +1000 Subject: [PATCH] [docs] Better logo SVG (#23828) --- builddefs/docsgen/.vitepress/config.mts | 6 +++--- builddefs/docsgen/.vitepress/theme/custom.css | 12 ------------ docs/public/qmk-logo-dark.svg | 14 ++++++++++++++ docs/public/qmk-logo-light.svg | 14 ++++++++++++++ 4 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 docs/public/qmk-logo-dark.svg create mode 100644 docs/public/qmk-logo-light.svg diff --git a/builddefs/docsgen/.vitepress/config.mts b/builddefs/docsgen/.vitepress/config.mts index f2111eeb7c..289e08ef91 100644 --- a/builddefs/docsgen/.vitepress/config.mts +++ b/builddefs/docsgen/.vitepress/config.mts @@ -28,10 +28,10 @@ export default defineConfig(({ mode }) => { themeConfig: { // https://vitepress.dev/reference/default-theme-config logo: { - light: "/badge-community-light.svg", - dark: "/badge-community-dark.svg", + light: "/qmk-logo-light.svg", + dark: "/qmk-logo-dark.svg", }, - siteTitle: false, + title: 'QMK Firmware', nav: [{ text: "Home", link: "./" }], diff --git a/builddefs/docsgen/.vitepress/theme/custom.css b/builddefs/docsgen/.vitepress/theme/custom.css index 646d215c1f..77726adede 100644 --- a/builddefs/docsgen/.vitepress/theme/custom.css +++ b/builddefs/docsgen/.vitepress/theme/custom.css @@ -5,15 +5,3 @@ kbd { margin: 0.2em; padding: 0.2em; } - -:root { - --vp-nav-logo-height: 100%; -} - -.logo { - padding-bottom: 0.2em; -} - -.VPNavBarTitle.has-sidebar .title { - border-bottom: 0; -} diff --git a/docs/public/qmk-logo-dark.svg b/docs/public/qmk-logo-dark.svg new file mode 100644 index 0000000000..b89e1de6c8 --- /dev/null +++ b/docs/public/qmk-logo-dark.svg @@ -0,0 +1,14 @@ + + + + + + diff --git a/docs/public/qmk-logo-light.svg b/docs/public/qmk-logo-light.svg new file mode 100644 index 0000000000..46b286c8b1 --- /dev/null +++ b/docs/public/qmk-logo-light.svg @@ -0,0 +1,14 @@ + + + + + +