Skip to content
Permalink
Browse files
build handbook after build pages.
  • Loading branch information
pissang committed Sep 1, 2021
1 parent b8fe078 commit dcd269c9536598e3be8b3e83133f9e58f0c0dae4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
@@ -31,7 +31,6 @@ mixin nav(hostParam, cdnPayRootParam, cdnPayVersionParam)
a(href='#{hostParam}/zh/faq.html') 常见问题
li
a(href='#{hostParam}/handbook/zh/basics/release-note/v5-upgrade-guide') v5 升级指南
span.new new
li#nav-download.dropdown
a(href='#', class="dropdown-toggle", data-toggle="dropdown") 下载
b.caret
@@ -31,7 +31,6 @@ mixin nav(hostParam, cdnPayRootParam, cdnPayVersionParam)
a(href='#{hostParam}/en/faq.html') FAQ
li
a(href='#{hostParam}/handbook/en/basics/release-note/v5-upgrade-guide') V5 Upgrade Guide
span.new new
li#nav-download.dropdown
a(href='#', class="dropdown-toggle", data-toggle="dropdown") Download
b.caret
@@ -74,18 +74,6 @@ npm run release
cd ${currWorkingDir}
echo "Build examples done."

# Build handbook
echo "Build handbook ..."
if [ ! -d "${handbookProjectDir}" ]; then
echo "Directory ${handbookProjectDir} DOES NOT exists."
exit 1
fi
cd ${handbookProjectDir}
npm run build:${envType}
rm -rf ${websiteTargetDir}/handbook
cp -R ${handbookProjectDir}/dist ${websiteTargetDir}/handbook
echo "Build handbook done."

# Build SPA pages.
cd ${thisScriptDir}
node releasePages.js
@@ -97,16 +85,18 @@ node bin/build.js --env ${envType}
cd ${currWorkingDir}
echo "Build www done."


if [[ "${envType}" = "echartsjs" ]]; then
cd ${wwwProjectDir}
echo "zip echarts-www.zip ..."
if [ -f echarts-www.zip ]; then
rm echarts-www.zip
fi
zip -r -q echarts-www.zip release
echo "zip echarts-www.zip done."
cd ${currWorkingDir}
# Build handbook after www page build.
# handbook needs fetch nav page.
echo "Build handbook ..."
if [ ! -d "${handbookProjectDir}" ]; then
echo "Directory ${handbookProjectDir} DOES NOT exists."
exit 1
fi
cd ${handbookProjectDir}
npm run build:${envType}
rm -rf ${websiteTargetDir}/handbook
cp -R ${handbookProjectDir}/dist ${websiteTargetDir}/handbook
echo "Build handbook done."


echo "echarts-www release done for ${envType}"

0 comments on commit dcd269c

Please sign in to comment.