diff --git a/docs/astro/astro.config.mjs b/docs/astro/astro.config.mjs index a2b4858fe05..38f7e403596 100644 --- a/docs/astro/astro.config.mjs +++ b/docs/astro/astro.config.mjs @@ -34,10 +34,11 @@ export default defineConfig({ }, integrations: [ starlight({ - title: "Docs", + title: "Slint Docs", logo: { - light: "./src/assets/slint-logo-simple-light.webp", - dark: "./src/assets/slint-logo-simple-dark.webp", + light: "./src/assets/slint-logo-simple-light.svg", + dark: "./src/assets/slint-logo-simple-dark.svg", + replacesTitle: true }, customCss: ["./src/styles/custom.css"], diff --git a/docs/astro/src/assets/slint-logo-simple-dark.svg b/docs/astro/src/assets/slint-logo-simple-dark.svg new file mode 100644 index 00000000000..44c335c706f --- /dev/null +++ b/docs/astro/src/assets/slint-logo-simple-dark.svg @@ -0,0 +1,17 @@ + diff --git a/docs/astro/src/assets/slint-logo-simple-light.svg b/docs/astro/src/assets/slint-logo-simple-light.svg new file mode 100644 index 00000000000..b9a466515e1 --- /dev/null +++ b/docs/astro/src/assets/slint-logo-simple-light.svg @@ -0,0 +1,17 @@ + diff --git a/docs/astro/src/components/Footer.astro b/docs/astro/src/components/Footer.astro index d1f8038e6c3..571471b693d 100644 --- a/docs/astro/src/components/Footer.astro +++ b/docs/astro/src/components/Footer.astro @@ -3,15 +3,23 @@ // SPDX-License-Identifier: MIT import type { Props } from "@astrojs/starlight/props"; import Default from "@astrojs/starlight/components/Footer.astro"; +const year = new Date().getFullYear(); --- -
© {year} SixtyFPS GmbH
+ diff --git a/docs/astro/src/components/Header.astro b/docs/astro/src/components/Header.astro index 2546b5fd06c..8ab0712f6c4 100644 --- a/docs/astro/src/components/Header.astro +++ b/docs/astro/src/components/Header.astro @@ -7,7 +7,7 @@ import LanguageSelect from "@astrojs/starlight/components/LanguageSelect.astro"; import Search from "@astrojs/starlight/components/Search.astro"; import SiteTitle from "@astrojs/starlight/components/SiteTitle.astro"; import SocialIcons from "@astrojs/starlight/components/SocialIcons.astro"; -import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro"; +import ThemeSelect from "./ThemeSelect.astro"; import VersionSelector from "./VersionSelector.astro"; --- diff --git a/docs/astro/src/components/ThemeSelect.astro b/docs/astro/src/components/ThemeSelect.astro new file mode 100644 index 00000000000..ed3ff2585d6 --- /dev/null +++ b/docs/astro/src/components/ThemeSelect.astro @@ -0,0 +1,75 @@ +--- +// Copyright © SixtyFPS GmbH