From 7fcb7ef9ba5b9a7cdecdf56277160aee2dc6f130 Mon Sep 17 00:00:00 2001 From: Ryan Su Date: Mon, 29 Jan 2024 11:51:27 +0800 Subject: [PATCH] docs: update docs --- src/.vuepress/config.ts | 2 +- src/.vuepress/theme.ts | 110 ++++++++++++++++++++-------------------- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts index ae1c3728..f15fab16 100644 --- a/src/.vuepress/config.ts +++ b/src/.vuepress/config.ts @@ -20,7 +20,7 @@ export default defineUserConfig({ theme, // Enable it with pwa - shouldPrefetch: true, + shouldPrefetch: false, markdown: { headers: { diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 57fe5ca8..34a7b66d 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -160,60 +160,60 @@ export default hopeTheme({ }, // install vuepress-plugin-pwa2 and uncomment these if you want a PWA - pwa: { - favicon: "/favicon.ico", - cacheHTML: true, - cachePic: true, - appendBase: true, - apple: { - icon: "/assets/icon/apple-icon-152.png", - statusBarColor: "black", - }, - msTile: { - image: "/assets/icon/ms-icon-144.png", - color: "#ffffff", - }, - manifest: { - icons: [ - { - src: "/assets/icon/chrome-mask-512.png", - sizes: "512x512", - purpose: "maskable", - type: "image/png", - }, - { - src: "/assets/icon/chrome-mask-192.png", - sizes: "192x192", - purpose: "maskable", - type: "image/png", - }, - { - src: "/assets/icon/chrome-512.png", - sizes: "512x512", - type: "image/png", - }, - { - src: "/assets/icon/chrome-192.png", - sizes: "192x192", - type: "image/png", - }, - ], - shortcuts: [ - { - name: "Go Guide", - short_name: "go-guide", - url: "/guide/", - icons: [ - { - src: "/assets/icon/guide-maskable.png", - sizes: "192x192", - purpose: "maskable", - type: "image/png", - }, - ], - }, - ], - }, - }, + // pwa: { + // favicon: "/favicon.ico", + // cacheHTML: true, + // cachePic: true, + // appendBase: true, + // apple: { + // icon: "/assets/icon/apple-icon-152.png", + // statusBarColor: "black", + // }, + // msTile: { + // image: "/assets/icon/ms-icon-144.png", + // color: "#ffffff", + // }, + // manifest: { + // icons: [ + // { + // src: "/assets/icon/chrome-mask-512.png", + // sizes: "512x512", + // purpose: "maskable", + // type: "image/png", + // }, + // { + // src: "/assets/icon/chrome-mask-192.png", + // sizes: "192x192", + // purpose: "maskable", + // type: "image/png", + // }, + // { + // src: "/assets/icon/chrome-512.png", + // sizes: "512x512", + // type: "image/png", + // }, + // { + // src: "/assets/icon/chrome-192.png", + // sizes: "192x192", + // type: "image/png", + // }, + // ], + // shortcuts: [ + // { + // name: "Go Guide", + // short_name: "go-guide", + // url: "/guide/", + // icons: [ + // { + // src: "/assets/icon/guide-maskable.png", + // sizes: "192x192", + // purpose: "maskable", + // type: "image/png", + // }, + // ], + // }, + // ], + // }, + // }, }, });