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

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new b9583e8  fix: build error caused by waves effect
b9583e8 is described below

commit b9583e8528260d84f2b5e3352598dab1fc895909
Author: LiLi <[email protected]>
AuthorDate: Mon Feb 21 16:22:10 2022 +0800

    fix: build error caused by waves effect
    
    Signed-off-by: LiLi <[email protected]>
---
 site2/website-next/docusaurus.config.js            |  18 +--
 site2/website-next/src/pages/community.js          |   8 --
 site2/website-next/src/pages/index.js              | 128 ++++++++++-----------
 .../versioned_docs/version-2.9.1/about.md          |   1 -
 site2/website-next/versions.json                   |   2 +-
 5 files changed, 73 insertions(+), 84 deletions(-)

diff --git a/site2/website-next/docusaurus.config.js 
b/site2/website-next/docusaurus.config.js
index 24a13df..7e5818c 100644
--- a/site2/website-next/docusaurus.config.js
+++ b/site2/website-next/docusaurus.config.js
@@ -103,10 +103,10 @@ module.exports = {
     githubUrl,
     oldUrl,
   },
-  i18n: {
-    defaultLocale: "en",
-    locales: ["en", "zh-CN"],
-  },
+  // i18n: {
+  //   defaultLocale: "en",
+  //   locales: ["en", "zh-CN"],
+  // },
   themeConfig: {
     navbar: {
       title: "",
@@ -125,11 +125,11 @@ module.exports = {
               docId: "concepts-overview",
               label: "Pulsar Concepts",
             },
-            {
-              type: "doc",
-              label: "Quickstart",
-              docId: "about",
-            },
+            // {
+            //   type: "doc",
+            //   label: "Quickstart",
+            //   docId: "about",
+            // },
             {
               label: "Ecosystem",
               to: "ecosystem",
diff --git a/site2/website-next/src/pages/community.js 
b/site2/website-next/src/pages/community.js
index e3f5b8e..a669ed7 100644
--- a/site2/website-next/src/pages/community.js
+++ b/site2/website-next/src/pages/community.js
@@ -1,23 +1,15 @@
 import React, { useEffect, componentDidMount } from "react";
-import clsx from "clsx";
-import SineWaves from "sine-waves";
 import Layout from "@theme/Layout";
 import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
 import useBaseUrl from '@docusaurus/useBaseUrl';
-import styles from "./index.module.css";
 import CommunityList from "../components/CommunityList";
 import PromoCallout from "../components/PromoCallout";
 import PillButton from "../components/PillButton";
 import GroupsIcon from '@mui/icons-material/Groups';
 import WavySeparatorFive from '@site/static/img/separator-5.svg';
 import WavySeparatorSix from '@site/static/img/separator-6.svg';
-import Svg from "../components/Svg";
-import { docUrl, githubUrl } from "../utils/index";
-import Stack from "@mui/material/Stack";
-import Button from "@mui/material/Button";
 const teamObj = require("../../data/team.js");
 export default function Community() {
-  const { siteConfig } = useDocusaurusContext();
   useEffect((d) => {
     if(location.hash){
       let hash = location.hash;
diff --git a/site2/website-next/src/pages/index.js 
b/site2/website-next/src/pages/index.js
index 093ec6c..445e4f3 100644
--- a/site2/website-next/src/pages/index.js
+++ b/site2/website-next/src/pages/index.js
@@ -1,9 +1,7 @@
 import React, { useEffect, componentDidMount } from "react";
-import clsx from "clsx";
-import SineWaves from "sine-waves";
+// import SineWaves from "sine-waves";
 import Layout from "@theme/Layout";
 import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
-import styles from "./index.module.css";
 import HomepageFeatures from "../components/HomepageFeatures";
 import HomeQuotes from "../components/HomeQuotes";
 import SubHeroBlock from "../components/SubHeroBlock";
@@ -11,70 +9,70 @@ import PromoCallout from "../components/PromoCallout";
 import PillButton from "../components/PillButton";
 import GitHubIcon from '@mui/icons-material/GitHub';
 import { docUrl, githubUrl } from "../utils/index";
-var startWaves = function(){
-  var waves = new SineWaves({
-    el: document.getElementById('waves'),
-    speed: 2,
-    width: function() {
-      return document.body.clientWidth;
-    },
-    height: function() {
-      return 300;
-    },
-    ease: 'SineInOut',
-    wavesWidth: '60%',
-    waves: [
-      {
-        timeModifier: 3,
-        lineWidth: 4,
-        amplitude: -25,
-        wavelength: 25
-      },
-      {
-        timeModifier: 2,
-        lineWidth: 4,
-        amplitude: -50,
-        wavelength: 50
-      },
-      {
-        timeModifier: 1,
-        lineWidth: 4,
-        amplitude: -100,
-        wavelength: 100
-      },
-      {
-        timeModifier: 0.5,
-        lineWidth: 4,
-        amplitude: -125,
-        wavelength: 125
-      },
-      {
-        timeModifier: 1.25,
-        lineWidth: 4,
-        amplitude: -150,
-        wavelength: 150
-      }
-    ],
+// var startWaves = function(){
+//   var waves = new SineWaves({
+//     el: document.getElementById('waves'),
+//     speed: 2,
+//     width: function() {
+//       return document.body.clientWidth;
+//     },
+//     height: function() {
+//       return 300;
+//     },
+//     ease: 'SineInOut',
+//     wavesWidth: '60%',
+//     waves: [
+//       {
+//         timeModifier: 3,
+//         lineWidth: 4,
+//         amplitude: -25,
+//         wavelength: 25
+//       },
+//       {
+//         timeModifier: 2,
+//         lineWidth: 4,
+//         amplitude: -50,
+//         wavelength: 50
+//       },
+//       {
+//         timeModifier: 1,
+//         lineWidth: 4,
+//         amplitude: -100,
+//         wavelength: 100
+//       },
+//       {
+//         timeModifier: 0.5,
+//         lineWidth: 4,
+//         amplitude: -125,
+//         wavelength: 125
+//       },
+//       {
+//         timeModifier: 1.25,
+//         lineWidth: 4,
+//         amplitude: -150,
+//         wavelength: 150
+//       }
+//     ],
   
-    // Called on window resize
-    resizeEvent: function() {
-      var gradient = this.ctx.createLinearGradient(0, 0, this.width, 0);
-      gradient.addColorStop(0,"rgba(24, 143, 255, 1)");
-      gradient.addColorStop(0.5,"rgba(70, 78, 86, 1)");
+//     // Called on window resize
+//     resizeEvent: function() {
+//       var gradient = this.ctx.createLinearGradient(0, 0, this.width, 0);
+//       gradient.addColorStop(0,"rgba(24, 143, 255, 1)");
+//       gradient.addColorStop(0.5,"rgba(70, 78, 86, 1)");
       
-      var index = -1;
-      var length = this.waves.length;
-      while(++index < length){
-        this.waves[index].strokeStyle = gradient;
-      }
+//       var index = -1;
+//       var length = this.waves.length;
+//       while(++index < length){
+//         this.waves[index].strokeStyle = gradient;
+//       }
       
-      // Clean Up
-      index = void 0;
-      length = void 0;
-      gradient = void 0;
-    }
-  });
-};
+//       // Clean Up
+//       index = void 0;
+//       length = void 0;
+//       gradient = void 0;
+//     }
+//   });
+// };
 var cascade = function(){
   
 }
@@ -124,7 +122,7 @@ export default function Home() {
     },
   ];
   useEffect((d) => {
-    startWaves();
+    // startWaves();
 
     var observer = new IntersectionObserver(function(entries) {
       if(entries[0].isIntersecting === true){
diff --git a/site2/website-next/versioned_docs/version-2.9.1/about.md 
b/site2/website-next/versioned_docs/version-2.9.1/about.md
index 3d865c2..df5bc36 100644
--- a/site2/website-next/versioned_docs/version-2.9.1/about.md
+++ b/site2/website-next/versioned_docs/version-2.9.1/about.md
@@ -1,5 +1,4 @@
 ---
-slug: /
 id: about
 title: Welcome to the doc portal!
 sidebar_label: "About"
diff --git a/site2/website-next/versions.json b/site2/website-next/versions.json
index 3c22abe..f829e1e 100644
--- a/site2/website-next/versions.json
+++ b/site2/website-next/versions.json
@@ -1 +1 @@
-["2.9.1", "2.9.0"]
+["2.9.1"]

Reply via email to