This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d0b1868c2 [chore](docs)Add compile check for document format (#12300)
5d0b1868c2 is described below

commit 5d0b1868c211bbfbb8d44a0fa4883a92db1c8904
Author: jiafeng.zhang <[email protected]>
AuthorDate: Sat Sep 3 09:44:20 2022 +0800

    [chore](docs)Add compile check for document format (#12300)
    
    Add compile check for document format
    
    Avoid document formatting issues that fail in the daily build release of 
the official website
    so that we can find problems and fix them in time to avoid repeated 
modifications
    Since the compiler for the website is now in the doris-website repo, we 
pull the code from this repo, delete the documentation inside, and copy the 
documentation from doris master to perform the compiler check
---
 .github/workflows/build-extension.yml | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build-extension.yml 
b/.github/workflows/build-extension.yml
index b87beaffad..209813ae96 100644
--- a/.github/workflows/build-extension.yml
+++ b/.github/workflows/build-extension.yml
@@ -84,4 +84,33 @@ jobs:
 
       - name: Build docs
         run: |
-          cd docs && /bin/bash build_help_zip.sh
\ No newline at end of file
+          cd docs && /bin/bash build_help_zip.sh
+      - name: Build
+        run: |
+          git clone https://github.com/apache/doris-website.git website
+          rm -rf website/docs
+          cp -R docs/en/docs website/
+          rm -rf website/community
+          cp -R docs/en/community website/
+          rm -rf website/i18n/zh-CN/docusaurus-plugin-content-docs/*
+          mkdir  website/i18n/zh-CN/docusaurus-plugin-content-docs/current
+          cp -R docs/zh-CN/docs/* 
website/i18n/zh-CN/docusaurus-plugin-content-docs/current/
+          cp docs/dev.json 
website/i18n/zh-CN/docusaurus-plugin-content-docs/current.json
+          rm -rf  website/i18n/zh-CN/docusaurus-plugin-content-docs-community/*
+          mkdir 
website/i18n/zh-CN/docusaurus-plugin-content-docs-community/current
+          cp -R docs/zh-CN/community/* 
website/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/
+          cp -R docs/sidebars.json website/
+          cp -R docs/images website/static/
+          sed '2,3d' website/versions.json
+          rm -rf website/versions.json
+          mv website/versions.json1 website/versions.json
+          sed '123,128d' website/docusaurus.config.js > 
website/docusaurus.config.js1
+          rm -rf website/docusaurus.config.js
+          mv website/docusaurus.config.js1 website/docusaurus.config.js
+          cd website
+          npm install -g [email protected]
+          npm install -g yarn
+          yarn cache clean
+          yarn && yarn build   
+          cd ../
+          rm -rf website    
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to