Skip to content

Commit

Permalink
[fix] fix docs build bug (apache#9293)
Browse files Browse the repository at this point in the history
After this PR apache#9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
  • Loading branch information
morningman authored and minghong.zhou committed May 6, 2022
1 parent ce18ea9 commit d1da5cb
Show file tree
Hide file tree
Showing 359 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ jobs:
- name: Build docs
run: |
cd docs && npm install && npm run build
cd docs && /bin/bash build_help_zip.sh && export NODE_OPTIONS="--max-old-space-size=4096" && npm install && npm run build
2 changes: 1 addition & 1 deletion docs/.vuepress/sidebar/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ module.exports = [
},
{
title: "SQL Reference",
directoryPath: "sql-reference-v2/",
directoryPath: "sql-reference/",
initialOpenGroupIndex: -1,
children: [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/sidebar/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ module.exports = [
},
{
title: "SQL手册",
directoryPath: "sql-reference-v2/",
directoryPath: "sql-reference/",
initialOpenGroupIndex: -1,
children: [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/build_help_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ROOT=`cd "$ROOT"; pwd`
BUILD_DIR=build
HELP_DIR=contents
HELP_ZIP_FILE=help-resource.zip
SQL_REF_DOC_DIR=zh-CN/sql-reference/
SQL_REF_DOC_DIR=zh-CN/sql-manual/

cd $ROOT
rm -rf $BUILD_DIR $HELP_DIR $HELP_ZIP_FILE
Expand Down
Loading

0 comments on commit d1da5cb

Please sign in to comment.