diff --git a/REUSE.toml b/REUSE.toml index 091aedf03..c16f73e8a 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -14,7 +14,11 @@ path = [ "**/slint-logo-**.pdf", "**/slint-logo-**.png", "**/slint-logo-**.svg", + "docs/astro/public/apple-touch-icon.png", "docs/astro/public/favicon.svg", + "docs/astro/public/favicon-16x16.png", + "docs/astro/public/favicon-32x32.png", + "docs/astro/public/favicon.ico", "docs/astro/src/content/docs/reference/elements/slint-logo.png", ] precedence = "aggregate" diff --git a/docs/astro/astro.config.mjs b/docs/astro/astro.config.mjs index 8b789aff8..68f1e08a0 100644 --- a/docs/astro/astro.config.mjs +++ b/docs/astro/astro.config.mjs @@ -450,6 +450,58 @@ export default defineConfig({ }, ], favicon: "favicon.svg", + head: [ + { + tag: "link", + attrs: { + rel: "icon", + type: "image/svg+xml", + href: "/favicon.svg", + }, + }, + { + tag: "link", + attrs: { + rel: "icon", + type: "image/png", + sizes: "32x32", + href: "/favicon-32x32.png", + }, + }, + { + tag: "link", + attrs: { + rel: "icon", + type: "image/png", + sizes: "16x16", + href: "/favicon-16x16.png", + }, + }, + { + tag: "link", + attrs: { + rel: "icon", + type: "image/x-icon", + href: "/favicon.ico", + }, + }, + { + tag: "link", + attrs: { + rel: "mask-icon", + href: "/favicon.svg", + color: "#8D46E7", + }, + }, + { + tag: "link", + attrs: { + rel: "apple-touch-icon", + sizes: "180x180", + href: "/apple-touch-icon.png", + }, + }, + ], }), ], }); diff --git a/docs/astro/public/apple-touch-icon.png b/docs/astro/public/apple-touch-icon.png new file mode 100644 index 000000000..7b10a09a3 Binary files /dev/null and b/docs/astro/public/apple-touch-icon.png differ diff --git a/docs/astro/public/favicon-16x16.png b/docs/astro/public/favicon-16x16.png new file mode 100644 index 000000000..f4a49a886 Binary files /dev/null and b/docs/astro/public/favicon-16x16.png differ diff --git a/docs/astro/public/favicon-32x32.png b/docs/astro/public/favicon-32x32.png new file mode 100644 index 000000000..324cdce2d Binary files /dev/null and b/docs/astro/public/favicon-32x32.png differ diff --git a/docs/astro/public/favicon.ico b/docs/astro/public/favicon.ico new file mode 100644 index 000000000..e3a6b9665 Binary files /dev/null and b/docs/astro/public/favicon.ico differ diff --git a/docs/astro/public/favicon.svg b/docs/astro/public/favicon.svg index 513b7344c..dcb1b5adc 100644 --- a/docs/astro/public/favicon.svg +++ b/docs/astro/public/favicon.svg @@ -1,10 +1,4 @@ - - - - - - - - - + + + diff --git a/xtask/src/license_headers_check.rs b/xtask/src/license_headers_check.rs index b24665616..b04afeb74 100644 --- a/xtask/src/license_headers_check.rs +++ b/xtask/src/license_headers_check.rs @@ -493,6 +493,7 @@ static LICENSE_LOCATION_FOR_FILE: LazyLock> ("\\.css$", LicenseLocation::NoLicense), ("\\.gitattributes$", LicenseLocation::NoLicense), ("\\.gitignore$", LicenseLocation::NoLicense), + ("\\.ico$", LicenseLocation::NoLicense), ("\\.vscodeignore$", LicenseLocation::NoLicense), ("\\.dockerignore$", LicenseLocation::NoLicense), ("\\.dockerignore$", LicenseLocation::NoLicense),