You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by bz...@apache.org on 2021/10/24 04:45:09 UTC

[apisix-website] branch master updated: Revert "chore: support CDN to load all JS bundle files (#670)" (#671)

This is an automated email from the ASF dual-hosted git repository.

bzp2010 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 57739c4  Revert "chore: support CDN to load all JS bundle files (#670)" (#671)
57739c4 is described below

commit 57739c41e8bc18d573c0f7d01593e5b3dbb9f5c4
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sun Oct 24 12:45:06 2021 +0800

    Revert "chore: support CDN to load all JS bundle files (#670)" (#671)
---
 .github/workflows/deploy.yml | 2 --
 website/docusaurus.config.js | 8 ++++----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 2f0c133..4d4850b 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -41,8 +41,6 @@ jobs:
         run: |
           cd website && yarn build
           cp ../.asf.yaml ./build
-          # NOTE: Use jsDelivr to load JS files from the asf-site branch
-          sed -i 's/return"assets\/js\/"/return"https:\/\/cdn.jsdelivr.net\/gh\/apache\/apisix-website@asf-site\/assets\/js\/"/g' ./build/assets/js/runtime~main.**.js
 
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3.8.0
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index f3cb365..081a032 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -8,7 +8,7 @@ module.exports = {
   baseUrl: "/",
   organizationName: "Apache",
   projectName: "apisix-website",
-  favicon: "https://cdn.jsdelivr.net/gh/apache/apisix-website@asf-site/img/favicon.png",
+  favicon: "img/favicon.png",
   customFields: {
     tagline2:
       "Apache APISIX software provides rich traffic management features such as load balancing, dynamic upstream, canary release, circuit breaking, authentication, observability, and more.",
@@ -421,7 +421,7 @@ module.exports = {
       hideOnScroll: true,
       title: "Apache APISIX®",
       logo: {
-        src: "https://cdn.jsdelivr.net/gh/apache/apisix-website@asf-site/img/logo2.svg",
+        src: "img/logo2.svg",
       },
       items: [
         {
@@ -594,7 +594,7 @@ module.exports = {
       ],
       logo: {
         alt: "Apache Software Foundation",
-        src: "https://cdn.jsdelivr.net/gh/apache/apisix-website@asf-site/img/asf_logo_wide_small.png",
+        src: "img/asf_logo_wide_small.png",
         href: "https://www.apache.org/",
       },
 
@@ -623,7 +623,7 @@ module.exports = {
       disableSwitch: false,
       respectPrefersColorScheme: false,
     },
-    image: 'https://cdn.jsdelivr.net/gh/apache/apisix-website@asf-site/img/favicon.png',
+    image: 'img/favicon.png',
     metadatas: [
       {
         name: "description",