This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 796304ee67b new website build
new ea3de9e1636 Merge branch 'master' of
https://github.com/apache/incubator-doris-website
796304ee67b is described below
commit 796304ee67bade2e1ee510916404be50654ad7ac
Author: jiafeng.zhang <[email protected]>
AuthorDate: Wed Jun 15 18:13:22 2022 +0800
new website build
new website build
---
.github/workflows/cron-deploy-website.yml | 15 +++++++++++----
.github/workflows/manual-deploy-website.yml | 18 +++++++++++++-----
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/cron-deploy-website.yml
b/.github/workflows/cron-deploy-website.yml
index 2c5fe428820..c6ce8875207 100644
--- a/.github/workflows/cron-deploy-website.yml
+++ b/.github/workflows/cron-deploy-website.yml
@@ -20,18 +20,25 @@ jobs:
run: |
git clone https://github.com/apache/incubator-doris.git incubator-doris
export BRANCH=master
- cp -R blogs/zh-CN/ incubator-doris/docs/zh-CN/article/articles/
- cp -R blogs/en/ incubator-doris/docs/en/article/articles/
+ cp -R blogs/zh-CN/ incubator-doris/docs/zh-CN/blogs/
+ cp -R blogs/en/ incubator-doris/docs/en/blogs/
cp -R blogs/images/blogs/ incubator-doris/docs/.vuepress/public/images/
- cd incubator-doris/docs
+ cp -R versions.json incubator-doris/docs/.vuepress/public/
+ cp -R sidebar/zh-CN/* incubator-doris/docs/.vuepress/sidebar/zh-CN/
+ cp -R sidebar/en/* incubator-doris/docs/.vuepress/sidebar/en/
+ cd incubator-doris/
+ git fetch
+ cd docs/
find ./ -name "*.md" -exec sed -i -e 's/!\[\(.*\)\][(]\(.*\)[)]/<img
\:src=\"$withBase\('\''\2'\''\)\" alt=\"\1\">/g' {} \;
sed -i 's/en\///g' .vuepress/config.js
+ sed -i 's/en\///g' .vuepress/theme/index.js
sed -i "s/BUILDING_BRANCH\.length > 0/BUILDING_BRANCH\.length > 0 \&\&
BUILDING_BRANCH !== 'master'/g" .vuepress/config.js
sed -i 's/en\///g' en/README.md
mv en/* ./
+ mv .vuepress/sidebar/en/* .vuepress/sidebar/
npm install -g increase-memory-limit
increase-memory-limit
- export NODE_OPTIONS="--max-old-space-size=6144" && npm install && npm
run build
+ export NODE_OPTIONS="--max-old-space-size=9144" && npm install && npm
run build
touch .vuepress/dist/.dummy
ls .vuepress/dist/
export DORIS_COMMIT=`git rev-parse HEAD`
diff --git a/.github/workflows/manual-deploy-website.yml
b/.github/workflows/manual-deploy-website.yml
index 7f5d72da835..24a023f3dee 100644
--- a/.github/workflows/manual-deploy-website.yml
+++ b/.github/workflows/manual-deploy-website.yml
@@ -24,21 +24,29 @@ jobs:
run: |
git clone https://github.com/apache/incubator-doris.git incubator-doris
export BRANCH=${{ github.event.inputs.branch }}
- cp -R blogs/zh-CN/ incubator-doris/docs/zh-CN/article/articles/
- cp -R blogs/en/ incubator-doris/docs/en/article/articles/
+ cp -R blogs/zh-CN/ incubator-doris/docs/zh-CN/blogs/
+ cp -R blogs/en/ incubator-doris/docs/en/blogs/
cp -R blogs/images/blogs/ incubator-doris/docs/.vuepress/public/images/
+ cp -R 0.15/zh-CN/ incubator-doris/docs/zh-CN/0.15/
+ cp -R 0.15/en/ incubator-doris/docs/en/0.15/
+ cp -R 1.0/zh-CN/ incubator-doris/docs/zh-CN/1.0/
+ cp -R 1.0/en/ incubator-doris/docs/en/1.0/
+ cp -R versions.json incubator-doris/docs/.vuepress/public/
+ cp -R sidebar/zh-CN/* incubator-doris/docs/.vuepress/sidebar/zh-CN/
+ cp -R sidebar/en/* incubator-doris/docs/.vuepress/sidebar/en/
cd incubator-doris/
git fetch
- if [ "${{ github.event.inputs.branch }}"x != "master"x ]; then git
checkout -b ${{ github.event.inputs.branch }} remotes/origin/${{
github.event.inputs.branch }}; fi
cd docs/
find ./ -name "*.md" -exec sed -i -e 's/!\[\(.*\)\][(]\(.*\)[)]/<img
\:src=\"$withBase\('\''\2'\''\)\" alt=\"\1\">/g' {} \;
- sed -i 's/en\///g' .vuepress/config.js
+ sed -i 's/en\///g' .vuepress/config.js
+ sed -i 's/en\///g' .vuepress/theme/index.js
sed -i "s/BUILDING_BRANCH\.length > 0/BUILDING_BRANCH\.length > 0 \&\&
BUILDING_BRANCH !== 'master'/g" .vuepress/config.js
sed -i 's/en\///g' en/README.md
mv en/* ./
+ mv .vuepress/sidebar/en/* .vuepress/sidebar/
npm install -g increase-memory-limit
increase-memory-limit
- export NODE_OPTIONS="--max-old-space-size=6144" && npm install && npm
run build
+ export NODE_OPTIONS="--max-old-space-size=9144" && npm install && npm
run build
touch .vuepress/dist/.dummy
ls .vuepress/dist/
export DORIS_COMMIT=`git rev-parse HEAD`
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]