From ccb7515b701bb7d023d5c6859993385d2a1022f5 Mon Sep 17 00:00:00 2001 From: Luffy <52o@qq52o.cn> Date: Fri, 9 May 2025 14:41:11 +0800 Subject: [PATCH] docs: remove test pwa --- docs/index.html | 7 ++++--- docs/pwa.md | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/index.html b/docs/index.html index 4da308171..a1d51985b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -103,7 +103,7 @@ 'https://raw.githubusercontent.com/docsifyjs/docsify/main/CHANGELOG.md', '/.*/_navbar.md': '/_navbar.md', '/zh-cn/(.*)': - 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', + 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@main/$1', }, auto2top: true, coverpage: true, @@ -203,11 +203,12 @@ if (/githubusercontent\.com/.test(vm.route.file)) { url = vm.route.file .replace('raw.githubusercontent.com', 'github.com') - .replace(/\/master/, '/blob/master'); + .replace(/\/master/, '/blob/master') + .replace(/\/main/, '/blob/main'); } else if (/jsdelivr\.net/.test(vm.route.file)) { url = vm.route.file .replace('cdn.jsdelivr.net/gh', 'github.com') - .replace('@master', '/blob/master'); + .replace('@main', '/blob/main'); } else { url = 'https://github.com/docsifyjs/docsify/blob/develop/docs/' + diff --git a/docs/pwa.md b/docs/pwa.md index 4deb45a90..294b22280 100644 --- a/docs/pwa.md +++ b/docs/pwa.md @@ -119,4 +119,4 @@ _index.html_ ## Enjoy it -Release your website and start experiencing the magical offline feature. :ghost: You can turn off Wi-Fi and refresh the current site to experience it. +Release your website and start experiencing the magical offline feature.