Commit 2b72b061 authored by liziwl's avatar liziwl
Browse files

test online

parent 01e092db
Loading
Loading
Loading
Loading
+16 −16
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ import { defaultTheme } from '@vuepress/theme-default'
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import { pwaPlugin } from '@vuepress/plugin-pwa'
import { pwaPopupPlugin } from '@vuepress/plugin-pwa-popup'
// import { pwaPopupPlugin } from '@vuepress/plugin-pwa-popup'
import { tocPlugin } from '@vuepress/plugin-toc'
import { sitemapPlugin } from "vuepress-plugin-sitemap2"
import { defineUserConfig } from '@vuepress/cli'
@@ -32,7 +32,7 @@ export default defineUserConfig({
    head: [
        ['link', { rel: 'icon', href: `/logo-assets/touch/homescreen192.png` }],
        ['meta', { name: 'theme-color', content: color }],
        ['link', { rel: 'manifest', href: '/manifest.json' }],
        ['link', { rel: 'manifest', href: '/manifest.webmanifest' }],
        ['meta', { prefix: ogprefix, property: 'og:type', content: 'article' }],
        ['meta', {
            prefix: ogprefix,
@@ -153,16 +153,16 @@ export default defineUserConfig({
        pwaPlugin({
            maximumFileSizeToCacheInBytes: 524288, // 限制到0.5MB
            cleanupOutdatedCaches: true,
            skipWaiting: false // 如果使用 pwaPopupPlugin 不能设置为 true
        }),
        pwaPopupPlugin({
            locales: {
                '/': {
                    message: '发现新内容可用',
                    buttonText: '刷新',
                },
            },
            skipWaiting: true // 如果使用 pwaPopupPlugin 不能设置为 true
        }),
        // pwaPopupPlugin({
        //     locales: {
        //         '/': {
        //             message: '发现新内容可用',
        //             buttonText: '刷新',
        //         },
        //     },
        // }),
        sitemapPlugin({
            hostname: "https://sustech.online/",
        }),
+0 −38
Original line number Diff line number Diff line
{
  "name": "南科手册",
  "short_name": "南科手册",
  "icons": [{
    "src": "logo-assets/touch/homescreen48.png",
    "sizes": "48x48",
    "type": "image/png"
  }, {
    "src": "logo-assets/touch/homescreen72.png",
    "sizes": "72x72",
    "type": "image/png"
  }, {
    "src": "logo-assets/touch/homescreen96.png",
    "sizes": "96x96",
    "type": "image/png"
  }, {
    "src": "logo-assets/touch/homescreen144.png",
    "sizes": "144x144",
    "type": "image/png"
  }, {
    "src": "logo-assets/touch/homescreen168.png",
    "sizes": "168x168",
    "type": "image/png"
  }, {
    "src": "logo-assets/touch/homescreen192.png",
    "sizes": "192x192",
    "type": "image/png"
  }, {
    "src": "logo-assets/touch/homescreen512.png",
    "sizes": "512x512",
    "type": "image/png"
  }
],
  "start_url": "/index.html",
  "display": "standalone",
  "background_color": "#fff",
  "theme_color": "#3eaf7c"
}
+45 −0
Original line number Diff line number Diff line
{
  "name": "南科手册",
  "short_name": "南科手册",
  "start_url": "/index.html",
  "display": "standalone",
  "background_color": "#fff",
  "theme_color": "#3eaf7c",
  "icons": [
    {
      "src": "logo-assets/touch/homescreen48.png",
      "sizes": "48x48",
      "type": "image/png"
    },
    {
      "src": "logo-assets/touch/homescreen72.png",
      "sizes": "72x72",
      "type": "image/png"
    },
    {
      "src": "logo-assets/touch/homescreen96.png",
      "sizes": "96x96",
      "type": "image/png"
    },
    {
      "src": "logo-assets/touch/homescreen144.png",
      "sizes": "144x144",
      "type": "image/png"
    },
    {
      "src": "logo-assets/touch/homescreen168.png",
      "sizes": "168x168",
      "type": "image/png"
    },
    {
      "src": "logo-assets/touch/homescreen192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "logo-assets/touch/homescreen512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ]
}
 No newline at end of file