Fix: update the index homepage

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
Jianbo Sun 2022-04-09 12:28:46 +08:00
parent 26bd32eabb
commit ed3fa22b97
4 changed files with 12 additions and 6 deletions

View File

@ -62,7 +62,7 @@ jobs:
else else
npm install npm install
fi fi
npm run deploy npm run build
- name: Install ossutil - name: Install ossutil
run: wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64 && chmod +x ossutil64 && mv ossutil64 ossutil run: wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64 && chmod +x ossutil64 && mv ossutil64 ossutil
- name: Configure Alibaba Cloud OSSUTIL - name: Configure Alibaba Cloud OSSUTIL

View File

@ -4,7 +4,7 @@ COPY package.json package.json
COPY yarn.lock yarn.lock COPY yarn.lock yarn.lock
RUN yarn install RUN yarn install
COPY . /workspace 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 FROM nginx:1.21
WORKDIR / WORKDIR /

View File

@ -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. 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. 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 checkout --orphan temp COMMIT_ID
git commit -m "Truncate history" git commit -m "Truncate history"
git rebase --onto temp COMMIT_ID gh-pages git rebase --onto temp COMMIT_ID gh-pages
```
3. Force push the Truncated branch.
```
git push origin gh-pages -f
``` ```

View File

@ -62,7 +62,7 @@ export default function Home() {
<p className="hero__subtitle">{siteConfig.tagline}</p> <p className="hero__subtitle">{siteConfig.tagline}</p>
<div <div
className={clsx(styles.heroButtons, 'name', 'margin-vert--md')}> className={clsx(styles.heroButtons, 'name', 'margin-vert--md')}>
<Button href={useBaseUrl('docs/quick-start')}><Translate>Get Started</Translate></Button> <Button href={useBaseUrl('docs/end-user/quick-start-cli')}><Translate>Get Started</Translate></Button>
<Button href={useBaseUrl('docs/')}><Translate>Learn More</Translate></Button> <Button href={useBaseUrl('docs/')}><Translate>Learn More</Translate></Button>
</div> </div>
</div> </div>
@ -107,7 +107,7 @@ const WhatIs = () => (
<br /> <br />
<br /> <br />
<Translate> <Translate>
KubeVela is infrastructure agnostic, programmable, yet most importantly, KubeVela is infrastructure agnostic, programmable, yet most importantly,
</Translate><i> <Translate>application-centric.</Translate></i> </Translate><i> <Translate>application-centric.</Translate></i>
</small> </small>
</p> </p>