Merge pull request #582 from wonderflow/fix1

Fix: update the index homepage
This commit is contained in:
barnettZQG 2022-04-09 21:50:26 +08:00 committed by GitHub
commit fd627cb61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
@ -20,3 +20,9 @@ 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>