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/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 4c3048bca40 Add daily build doris master docs
4c3048bca40 is described below
commit 4c3048bca401998fb2bc71f327783490fe419236
Author: jiafeng.zhang <[email protected]>
AuthorDate: Sat Aug 13 21:08:00 2022 +0800
Add daily build doris master docs
Add daily build doris master docs
---
.github/workflows/cron-deploy-website.yml | 65 ++++++++++++++++++-------------
docusaurus.config.js | 3 ++
sidebarsCommunity.json | 3 +-
versions.json | 1 +
4 files changed, 44 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/cron-deploy-website.yml
b/.github/workflows/cron-deploy-website.yml
index 68f9626f8b9..50fccd280ce 100644
--- a/.github/workflows/cron-deploy-website.yml
+++ b/.github/workflows/cron-deploy-website.yml
@@ -18,41 +18,52 @@ jobs:
- name: Build
run: |
- git clone https://github.com/apache/doris.git doris
- export BRANCH=master
- cp -R blogs/zh-CN/ doris/docs/zh-CN/blogs/
- cp -R blogs/en/ doris/docs/en/blogs/
- cp -R blogs/images/blogs/ doris/docs/.vuepress/public/images/
- cp -R versions.json doris/docs/.vuepress/public/
- cp -R sidebar/zh-CN/* doris/docs/.vuepress/sidebar/zh-CN/
- cp -R sidebar/en/* doris/docs/.vuepress/sidebar/en/
- cd 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=9144" && npm install && npm
run build
- touch .vuepress/dist/.dummy
- ls .vuepress/dist/
- export DORIS_COMMIT=`git rev-parse HEAD`
+ git clone https://github.com/apache/doris.git
+ cp -R doris/docs/sidebarsCommunity.json .
+ mkdir versioned_docs/version-dev/
+ cp -R doris/docs/en/docs/* versioned_docs/version-dev/
+ cp -R doris/docs/sidebars.json
versioned_sidebars/version-dev-sidebars.json
+ mkdir i18n/zh-CN/docusaurus-plugin-content-docs/dev
+ cp -R doris/docs/zh-CN/docs/*
i18n/zh-CN/docusaurus-plugin-content-docs/dev/
+ cp -R doris/docs/dev.json i18n/zh-CN/docusaurus-plugin-content-docs/
+ cp -R doris/docs/en/community .
+ cp -R doris/docs/zh-CN/community/*
i18n/zh-CN/docusaurus-plugin-content-docs-community/current/
- - name: Deploy Master
+ cp -R doris/docs/images/* static/images/
+ npm install -g yarn
+ yarn cache clean
+ yarn && yarn build
+ touch build/.dummy
+ ls build
+ export DORIS_COMMIT=`git rev-parse HEAD`
+ - name: Deploy website
+ if: ${{ github.event.inputs.branch == 'master' }}
run: |
+ git config --global http.postBuffer 524288000
git fetch
git checkout -b asf-site remotes/origin/asf-site
/bin/bash remove-non-reserved-dir.sh
- cp -r doris/docs/.vuepress/dist/* ./
- rm -rf doris/
+ cp -r build/* ./
+ rm -rf build/
+ rm -rf .docusaurus
+ rm -rf node_modules
+ rm -rf doris
+ rm -rf versioned_docs/version-dev/
+ rm -rf i18n/zh-CN/docusaurus-plugin-content-docs/dev/
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated deployment with doris master"
git push --verbose "https://${{ secrets.GITHUB_TOKEN
}}@github.com/apache/doris-website.git" asf-site:asf-site
+ - name: Deploy Branch
+ if: ${{ github.event.inputs.branch != 'master' }}
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: asf-site
+ publish_dir: ./build
+ destination_dir: ${{ github.event.inputs.branch }}
+ user_name: 'github-actions[bot]'
+ user_email: 'github-actions[bot]@users.noreply.github.com'
+ commit_message: 'Automated deployment with doris branch ${{
github.event.inputs.branch }}@${{ env.DORIS_COMMIT }}'
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 1d171156c6f..68ddb5e763b 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -117,6 +117,9 @@ const config = {
label: '1.1',
path: '',
},
+ 'dev': {
+ banner: 'none',
+ },
'1.0': {
banner: 'none',
},
diff --git a/sidebarsCommunity.json b/sidebarsCommunity.json
index 2e256a2578c..54dfa337f67 100644
--- a/sidebarsCommunity.json
+++ b/sidebarsCommunity.json
@@ -35,7 +35,8 @@
"items": [
"design/doris_storage_optimization",
"design/grouping_sets_design",
- "design/metadata-design"
+ "design/metadata-design",
+ "design/spark_load"
]
},
{
diff --git a/versions.json b/versions.json
index 765bf733c3b..9a14c24a722 100644
--- a/versions.json
+++ b/versions.json
@@ -1,4 +1,5 @@
[
+ "dev",
"1.0",
"0.15"
]
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]