Skip to content

Commit

Permalink
add verions 2.5 in English and Chinese
Browse files Browse the repository at this point in the history
Signed-off-by: DanRoscigno <[email protected]>
  • Loading branch information
DanRoscigno committed Oct 11, 2023
1 parent 9d0e4e6 commit ebc5a4c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 11 additions & 2 deletions _IGNORE/testbuild
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export ORGANIZATION_NAME=danroscigno
export PROJECT_NAME=docusaurusv3
export PROJECT_NAME=doc
export DEPLOYMENT_BRANCH=gh-pages

export WORKINGDIR=/Users/droscign/GitHub/Docusaurus/starrocks
export WORKINGDIR=/Users/droscign/GitHub/doc/

cd $WORKINGDIR
mkdir -p temp-en
Expand All @@ -22,6 +22,11 @@ rm -rf ${WORKINGDIR}/versioned_docs/version-3.0
mkdir -p ${WORKINGDIR}/versioned_docs/version-3.0
cp -r docs/* ${WORKINGDIR}/versioned_docs/version-3.0

git checkout branch-2.5
rm -rf ${WORKINGDIR}/versioned_docs/version-2.5
mkdir -p ${WORKINGDIR}/versioned_docs/version-2.5
cp -r docs/* ${WORKINGDIR}/versioned_docs/version-2.5

cd ${WORKINGDIR}/temp-zh
gh repo clone StarRocks/docs.zh-cn
cd docs.zh-cn
Expand All @@ -36,6 +41,10 @@ rm -rf ${WORKINGDIR}/i18n/zh/docusaurus-plugin-content-docs/version-3.0/
mkdir -p ${WORKINGDIR}/i18n/zh/docusaurus-plugin-content-docs/version-3.0
cp -r * ${WORKINGDIR}/i18n/zh/docusaurus-plugin-content-docs/version-3.0/

git checkout 2.5
rm -rf ${WORKINGDIR}/i18n/zh/docusaurus-plugin-content-docs/version-2.5/
mkdir -p ${WORKINGDIR}/i18n/zh/docusaurus-plugin-content-docs/version-2.5
cp -r * ${WORKINGDIR}/i18n/zh/docusaurus-plugin-content-docs/version-2.5/

echo "cleanup before running yarn build"
cd ${WORKINGDIR}
Expand Down
3 changes: 3 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const config = {
'3.0': {
banner: 'none'
},
'2.5': {
banner: 'none'
},
},
},
theme: {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
"3.1",
"3.0"
"3.0",
"2.5"
]

0 comments on commit ebc5a4c

Please sign in to comment.