This is an automated email from the ASF dual-hosted git repository.
jeffreyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 3949aa9931c feat: remove pwa (#1471)
3949aa9931c is described below
commit 3949aa9931cd65127a35dcbe31fe9d849862af45
Author: Jeffrey <[email protected]>
AuthorDate: Fri Dec 6 15:13:40 2024 +0800
feat: remove pwa (#1471)
---
.github/workflows/build-check.yml | 14 +++++-----
docusaurus.config.js | 58 ---------------------------------------
package.json | 1 -
yarn.lock | 17 ++++--------
4 files changed, 13 insertions(+), 77 deletions(-)
diff --git a/.github/workflows/build-check.yml
b/.github/workflows/build-check.yml
index 23906932d94..7d113beb624 100644
--- a/.github/workflows/build-check.yml
+++ b/.github/workflows/build-check.yml
@@ -115,11 +115,11 @@ jobs:
with:
node-version: 20
- # - name: Build
- # run: |
- # npm install -g yarn
- # yarn cache clean
- # export NODE_OPTIONS=--max-old-space-size=8192
- # yarn && yarn build
+ - name: Build
+ run: |
+ npm install -g yarn
+ yarn cache clean
+ export NODE_OPTIONS=--max-old-space-size=8192
+ yarn && yarn build
- # rm -rf build
+ rm -rf build
diff --git a/docusaurus.config.js b/docusaurus.config.js
index d639a5e2979..a9c2358278e 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -114,64 +114,6 @@ const config = {
}),
],
process.env.NODE_ENV === 'development' ? null : customDocusaurusPlugin,
- [
- '@docusaurus/plugin-pwa',
- {
- debug: false,
- offlineModeActivationStrategies: ['standalone', 'queryString',
'mobile'],
- injectManifestConfig: {
- globPatterns:
['**/*.{json,pdf,docx,xlsx,html,css,js,png,svg,ico,jpg,jpeg}'],
- },
- pwaHead: [
- {
- tagName: 'link',
- rel: 'icon',
- href: '/images/logo-only.png',
- },
- {
- tagName: 'link',
- rel: 'manifest',
- href: '/manifest.json',
- },
- {
- tagName: 'meta',
- name: 'theme-color',
- content: '#FFFFFF',
- },
- {
- tagName: 'meta',
- name: 'apple-mobile-web-app-capable',
- content: 'yes',
- },
- {
- tagName: 'meta',
- name: 'apple-mobile-web-app-status-bar-style',
- content: '#000',
- },
- {
- tagName: 'link',
- rel: 'apple-touch-icon',
- href: '/img/docusaurus.png',
- },
- {
- tagName: 'link',
- rel: 'mask-icon',
- href: '/img/docusaurus.svg',
- color: 'rgb(37, 194, 160)',
- },
- {
- tagName: 'meta',
- name: 'msapplication-TileImage',
- content: '/img/docusaurus.png',
- },
- {
- tagName: 'meta',
- name: 'msapplication-TileColor',
- content: '#000',
- },
- ],
- },
- ],
async function tailwindcssPlugin(context, options) {
return {
diff --git a/package.json b/package.json
index 3a73b791062..0b8be006135 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-github-button": "^0.1.11",
- "remote-web-worker": "0.0.9",
"sass": "^1.63.2",
"sass-migrator": "^2.2.1",
"swiper": "^9.0.5",
diff --git a/yarn.lock b/yarn.lock
index dc17c972bb2..92d2834f7b6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2439,14 +2439,14 @@
resolved
"https://registry.npmmirror.com/@easyops-cn/docusaurus-search-local/-/docusaurus-search-local-0.45.0.tgz#7101d59c9359b50b1add306d2504a09bd7176adb"
integrity
sha512-ccJjeYmBHrv2v8Y9eQnH79S0PEKcogACKkEatEKPcad7usQj/14jA9POUUUYW/yougLSXghwe+uIncbuUBuBFg==
dependencies:
- "@docusaurus/plugin-content-docs" "^2.0.0-rc.1"
- "@docusaurus/theme-translations" "^2.0.0-rc.1"
- "@docusaurus/utils" "^2.0.0-rc.1"
- "@docusaurus/utils-common" "^2.0.0-rc.1"
- "@docusaurus/utils-validation" "^2.0.0-rc.1"
+ "@docusaurus/plugin-content-docs" "^2 || ^3"
+ "@docusaurus/theme-translations" "^2 || ^3"
+ "@docusaurus/utils" "^2 || ^3"
+ "@docusaurus/utils-common" "^2 || ^3"
+ "@docusaurus/utils-validation" "^2 || ^3"
"@easyops-cn/autocomplete.js" "^0.38.1"
"@node-rs/jieba" "^1.6.0"
- cheerio "^1.0.0-rc.3"
+ cheerio "^1.0.0"
clsx "^1.1.1"
debug "^4.2.0"
fs-extra "^10.0.0"
@@ -11605,11 +11605,6 @@ remark-stringify@^11.0.0:
mdast-util-to-markdown "^2.0.0"
unified "^11.0.0"
[email protected]:
- version "0.0.9"
- resolved
"https://registry.npmmirror.com/remote-web-worker/-/remote-web-worker-0.0.9.tgz#3a96a84063e6c1a5fa3792abe0fd97eb7a97aab3"
- integrity
sha512-TguJhQVWeeL2zWqLQpTfq/uIOpXRHHq7SI6fw6xTIJfSN/ojiKUqV16oAhPD8zH71MFy3FHqSoQEx2cks5gcAA==
-
renderkid@^3.0.0:
version "3.0.0"
resolved
"https://registry.npmmirror.com/renderkid/-/renderkid-3.0.0.tgz#5fd823e4d6951d37358ecc9a58b1f06836b6268a"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]