From ed3fa22b97c0c8fa64b5125d9f48612e1dd4a3ce Mon Sep 17 00:00:00 2001 From: Jianbo Sun Date: Sat, 9 Apr 2022 12:28:46 +0800 Subject: [PATCH] Fix: update the index homepage Signed-off-by: Jianbo Sun --- .github/workflows/documentation.yml | 2 +- Dockerfile | 2 +- TRUNCK_BRANCH.md => Truncate-branch.md | 10 ++++++++-- src/pages/index.js | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) rename TRUNCK_BRANCH.md => Truncate-branch.md (73%) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7aedd4e3..4ded12d0 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -62,7 +62,7 @@ jobs: else npm install fi - npm run deploy + npm run build - name: Install ossutil run: wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64 && chmod +x ossutil64 && mv ossutil64 ossutil - name: Configure Alibaba Cloud OSSUTIL diff --git a/Dockerfile b/Dockerfile index b1622c9d..deb1eca4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ COPY package.json package.json COPY yarn.lock yarn.lock RUN yarn install COPY . /workspace -RUN NODE_OPTIONS=--openssl-legacy-provider yarn build +RUN NODE_OPTIONS="--openssl-legacy-provider --max-old-space-size=4096" yarn docusaurus build FROM nginx:1.21 WORKDIR / diff --git a/TRUNCK_BRANCH.md b/Truncate-branch.md similarity index 73% rename from TRUNCK_BRANCH.md rename to Truncate-branch.md index 07bdfd24..340ddb27 100644 --- a/TRUNCK_BRANCH.md +++ b/Truncate-branch.md @@ -1,8 +1,8 @@ -# Trunch gh-pages branch +# Truncate gh-pages branch The branch is going to expand as every commit will trigger new rebuild all websites static files. -We need to trunc it periodically. +We need to Truncate it periodically. 1. Check out to gh-pages and find the latest commit ID. @@ -19,4 +19,10 @@ git log git checkout --orphan temp COMMIT_ID git commit -m "Truncate history" git rebase --onto temp COMMIT_ID gh-pages +``` + +3. Force push the Truncated branch. + +``` +git push origin gh-pages -f ``` \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index f8babc66..cd840c72 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -62,7 +62,7 @@ export default function Home() {

{siteConfig.tagline}

- +
@@ -107,7 +107,7 @@ const WhatIs = () => (

- KubeVela is infrastructure agnostic, programmable, yet most importantly, + KubeVela is infrastructure agnostic, programmable, yet most importantly, application-centric.