Skip to content

Commit

Permalink
Fix: update the index homepage
Browse files Browse the repository at this point in the history
Signed-off-by: Jianbo Sun <[email protected]>
  • Loading branch information
wonderflow committed Apr 9, 2022
1 parent 26bd32e commit ed3fa22
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down
10 changes: 8 additions & 2 deletions TRUNCK_BRANCH.md → Truncate-branch.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
```
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function Home() {
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div
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>
</div>
</div>
Expand Down Expand Up @@ -107,7 +107,7 @@ const WhatIs = () => (
<br />
<br />
<Translate>
KubeVela is infrastructure agnostic, programmable, yet most importantly,
KubeVela is infrastructure agnostic, programmable, yet most importantly,
</Translate><i> <Translate>application-centric.</Translate></i>
</small>
</p>
Expand Down

0 comments on commit ed3fa22

Please sign in to comment.