diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 33fb4020..d2d7bae0 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -22,7 +22,7 @@ const themeConfig: DefaultTheme.Config = { text: "最后更新", }, outlineTitle: "目录", - logo: "/logo-brand.png", + logo: "/logo-brand.webp", nav: [ { text: "主页", link: "/" }, { text: "崩溃分析工具", link: "/analyzer" }, @@ -128,6 +128,7 @@ const themeConfig: DefaultTheme.Config = { text: "文档", items: [ { text: "基础知识", link: "/basis" }, + { text: "通用问题", link: "/commons" }, { text: "客户端崩溃", items: [ @@ -211,7 +212,7 @@ export default withPwa( }, head: [ - ["link", { rel: "icon", href: "/logo-brand.png" }], + ["link", { rel: "icon", href: "/logo-brand.webp" }], [ "script", { diff --git a/docs/.vitepress/scripts/pwa.ts b/docs/.vitepress/scripts/pwa.ts index fc88e69d..84fff9b0 100644 --- a/docs/.vitepress/scripts/pwa.ts +++ b/docs/.vitepress/scripts/pwa.ts @@ -22,29 +22,29 @@ export const pwa: Partial = { categories: ["minecraft", "crash"], icons: [ { - src: "logo-new.png", + src: "logo-new.webp", sizes: "1024x1024", - type: "image/png", + type: "image/webp", }, { - src: "pwa-512x512.png", + src: "pwa-512x512.webp", sizes: "512x512", - type: "image/png", + type: "image/webp", }, { - src: "pwa-192x192.png", + src: "pwa-192x192.webp", sizes: "192x192", - type: "image/png", + type: "image/webp", }, { - src: "pwa-64x64.png", + src: "pwa-64x64.webp", sizes: "64x64", - type: "image/png", + type: "image/webp", }, ], }, workbox: { - globPatterns: ["**/*.{css,js,html,svg,png,ico,txt,woff2}"], + globPatterns: ["**/*.{css,js,html,svg,webp,ico,txt,woff2}"], globIgnores: ["shortcuts/*.svg"], runtimeCaching: [ { diff --git a/docs/.vitepress/theme/components/Contributors.vue b/docs/.vitepress/theme/components/Contributors.vue index 237a1421..7472843e 100644 --- a/docs/.vitepress/theme/components/Contributors.vue +++ b/docs/.vitepress/theme/components/Contributors.vue @@ -49,7 +49,7 @@ function isNotEmpty(arr: string | string[]) { rel="noreferrer" target="_blank" class="flex items-center gap-2"> - +

{{ "GlobeMC" }}

diff --git a/docs/index.md b/docs/index.md index 7046bfdc..00d417c4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7,7 +7,7 @@ hero: text: "为一般玩家编写的 Minecraft 崩溃分析指南" tagline: 由一群热心的笨蛋维护 image: - src: /logo-new.png + src: /logo-new.webp alt: CrashMC actions: - theme: brand diff --git a/docs/public/logo-brand.png b/docs/public/logo-brand.png deleted file mode 100644 index 14359764..00000000 Binary files a/docs/public/logo-brand.png and /dev/null differ diff --git a/docs/public/logo-brand.webp b/docs/public/logo-brand.webp new file mode 100644 index 00000000..da397b0f Binary files /dev/null and b/docs/public/logo-brand.webp differ diff --git a/docs/public/logo-new.png b/docs/public/logo-new.png deleted file mode 100644 index e1ad41e3..00000000 Binary files a/docs/public/logo-new.png and /dev/null differ diff --git a/docs/public/logo-new.webp b/docs/public/logo-new.webp new file mode 100644 index 00000000..9b219f9f Binary files /dev/null and b/docs/public/logo-new.webp differ diff --git a/docs/public/pwa-192x192.png b/docs/public/pwa-192x192.png deleted file mode 100644 index dec7696e..00000000 Binary files a/docs/public/pwa-192x192.png and /dev/null differ diff --git a/docs/public/pwa-192x192.webp b/docs/public/pwa-192x192.webp new file mode 100644 index 00000000..e71dfa7a Binary files /dev/null and b/docs/public/pwa-192x192.webp differ diff --git a/docs/public/pwa-512x512.png b/docs/public/pwa-512x512.png deleted file mode 100644 index 02e018ef..00000000 Binary files a/docs/public/pwa-512x512.png and /dev/null differ diff --git a/docs/public/pwa-512x512.webp b/docs/public/pwa-512x512.webp new file mode 100644 index 00000000..fb60a0ab Binary files /dev/null and b/docs/public/pwa-512x512.webp differ diff --git a/docs/public/pwa-64x64.png b/docs/public/pwa-64x64.png deleted file mode 100644 index 251f69dc..00000000 Binary files a/docs/public/pwa-64x64.png and /dev/null differ diff --git a/docs/public/pwa-64x64.webp b/docs/public/pwa-64x64.webp new file mode 100644 index 00000000..781d0c6f Binary files /dev/null and b/docs/public/pwa-64x64.webp differ