You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/09/27 07:01:21 UTC

[GitHub] [doris] github-actions[bot] commented on pull request #13005: [chore](docs)Add local documentation compilation checks to reduce subsequent operations caused by pipeline build failures

github-actions[bot] commented on PR #13005:
URL: https://github.com/apache/doris/pull/13005#issuecomment-1259070292

   #### `sh-checker report`
   
   To get the full details, please check in the [job]("https://github.com/apache/doris/actions/runs/3133148046") output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   'shellcheck ' found no issues.
   
   ```
   </details>
   
   <details>
   <summary>shfmt errors</summary>
   
   ```
   
   'shfmt ' returned error 1 finding the following formatting issues:
   
   ----------
   --- docs/build_check.sh.orig
   +++ docs/build_check.sh
   @@ -33,28 +33,28 @@
    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
   +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/*
   +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/sidebarsCommunity.json website/
    cp -R docs/sidebars.json website/
    cp -R docs/images website/static/
   -sed '2,3d' website/versions.json > website/versions.json1
   +sed '2,3d' website/versions.json >website/versions.json1
    rm -rf website/versions.json
    mv website/versions.json1 website/versions.json
   -sed '123,128d' website/docusaurus.config.js > website/docusaurus.config.js1
   +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 npm@8.19.1
    npm install -g yarn
    yarn cache clean
   -yarn && yarn build   
   +yarn && yarn build
    cd ../
   -rm -rf website   
   +rm -rf website
    
    echo "***************************************"
    echo "Docs build check pass"
   ----------
   
   You can reformat the above files to meet shfmt's requirements by typing:
   
     shfmt  -w filename
   
   
   ```
   </details>
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org