Skip to content

Commit 3949aa9

Browse files
authored
feat: remove pwa (apache#1471)
1 parent 204f988 commit 3949aa9

File tree

4 files changed

+13
-77
lines changed

4 files changed

+13
-77
lines changed

.github/workflows/build-check.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ jobs:
115115
with:
116116
node-version: 20
117117

118-
# - name: Build
119-
# run: |
120-
# npm install -g yarn
121-
# yarn cache clean
122-
# export NODE_OPTIONS=--max-old-space-size=8192
123-
# yarn && yarn build
118+
- name: Build
119+
run: |
120+
npm install -g yarn
121+
yarn cache clean
122+
export NODE_OPTIONS=--max-old-space-size=8192
123+
yarn && yarn build
124124
125-
# rm -rf build
125+
rm -rf build

docusaurus.config.js

-58
Original file line numberDiff line numberDiff line change
@@ -114,64 +114,6 @@ const config = {
114114
}),
115115
],
116116
process.env.NODE_ENV === 'development' ? null : customDocusaurusPlugin,
117-
[
118-
'@docusaurus/plugin-pwa',
119-
{
120-
debug: false,
121-
offlineModeActivationStrategies: ['standalone', 'queryString', 'mobile'],
122-
injectManifestConfig: {
123-
globPatterns: ['**/*.{json,pdf,docx,xlsx,html,css,js,png,svg,ico,jpg,jpeg}'],
124-
},
125-
pwaHead: [
126-
{
127-
tagName: 'link',
128-
rel: 'icon',
129-
href: '/images/logo-only.png',
130-
},
131-
{
132-
tagName: 'link',
133-
rel: 'manifest',
134-
href: '/manifest.json',
135-
},
136-
{
137-
tagName: 'meta',
138-
name: 'theme-color',
139-
content: '#FFFFFF',
140-
},
141-
{
142-
tagName: 'meta',
143-
name: 'apple-mobile-web-app-capable',
144-
content: 'yes',
145-
},
146-
{
147-
tagName: 'meta',
148-
name: 'apple-mobile-web-app-status-bar-style',
149-
content: '#000',
150-
},
151-
{
152-
tagName: 'link',
153-
rel: 'apple-touch-icon',
154-
href: '/img/docusaurus.png',
155-
},
156-
{
157-
tagName: 'link',
158-
rel: 'mask-icon',
159-
href: '/img/docusaurus.svg',
160-
color: 'rgb(37, 194, 160)',
161-
},
162-
{
163-
tagName: 'meta',
164-
name: 'msapplication-TileImage',
165-
content: '/img/docusaurus.png',
166-
},
167-
{
168-
tagName: 'meta',
169-
name: 'msapplication-TileColor',
170-
content: '#000',
171-
},
172-
],
173-
},
174-
],
175117

176118
async function tailwindcssPlugin(context, options) {
177119
return {

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"react": "^18.2.0",
3838
"react-dom": "^18.2.0",
3939
"react-github-button": "^0.1.11",
40-
"remote-web-worker": "0.0.9",
4140
"sass": "^1.63.2",
4241
"sass-migrator": "^2.2.1",
4342
"swiper": "^9.0.5",

yarn.lock

+6-11
Original file line numberDiff line numberDiff line change
@@ -2439,14 +2439,14 @@
24392439
resolved "https://registry.npmmirror.com/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.45.0.tgz#7101d59c9359b50b1add306d2504a09bd7176adb"
24402440
integrity sha512-ccJjeYmBHrv2v8Y9eQnH79S0PEKcogACKkEatEKPcad7usQj/14jA9POUUUYW/yougLSXghwe+uIncbuUBuBFg==
24412441
dependencies:
2442-
"@docusaurus/plugin-content-docs" "^2.0.0-rc.1"
2443-
"@docusaurus/theme-translations" "^2.0.0-rc.1"
2444-
"@docusaurus/utils" "^2.0.0-rc.1"
2445-
"@docusaurus/utils-common" "^2.0.0-rc.1"
2446-
"@docusaurus/utils-validation" "^2.0.0-rc.1"
2442+
"@docusaurus/plugin-content-docs" "^2 || ^3"
2443+
"@docusaurus/theme-translations" "^2 || ^3"
2444+
"@docusaurus/utils" "^2 || ^3"
2445+
"@docusaurus/utils-common" "^2 || ^3"
2446+
"@docusaurus/utils-validation" "^2 || ^3"
24472447
"@easyops-cn/autocomplete.js" "^0.38.1"
24482448
"@node-rs/jieba" "^1.6.0"
2449-
cheerio "^1.0.0-rc.3"
2449+
cheerio "^1.0.0"
24502450
clsx "^1.1.1"
24512451
debug "^4.2.0"
24522452
fs-extra "^10.0.0"
@@ -11605,11 +11605,6 @@ remark-stringify@^11.0.0:
1160511605
mdast-util-to-markdown "^2.0.0"
1160611606
unified "^11.0.0"
1160711607

11608-
11609-
version "0.0.9"
11610-
resolved "https://registry.npmmirror.com/remote-web-worker/-/remote-web-worker-0.0.9.tgz#3a96a84063e6c1a5fa3792abe0fd97eb7a97aab3"
11611-
integrity sha512-TguJhQVWeeL2zWqLQpTfq/uIOpXRHHq7SI6fw6xTIJfSN/ojiKUqV16oAhPD8zH71MFy3FHqSoQEx2cks5gcAA==
11612-
1161311608
renderkid@^3.0.0:
1161411609
version "3.0.0"
1161511610
resolved "https://registry.npmmirror.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a"

0 commit comments

Comments
 (0)