diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0884dfe7ad..7b7059fa62 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -50,6 +50,14 @@ jobs: mkdir -p ../versioned_docs/version-3.0 cp -r docs/* ../versioned_docs/version-3.0 + - name: process English 2.5 + run: | + cd /home/runner/work/doc/doc/temp-en + git checkout branch-2.5 + rm -rf ../versioned_docs/version-2.5 + mkdir -p ../versioned_docs/version-2.5 + cp -r docs/* ../versioned_docs/version-2.5 + - name: process Chinese 3.1 run: | cd /home/runner/work/doc/doc/temp-zh @@ -66,6 +74,14 @@ jobs: mkdir -p ../i18n/zh/docusaurus-plugin-content-docs/version-3.0 cp -r * ../i18n/zh/docusaurus-plugin-content-docs/version-3.0/ + - name: process Chinese 2.5 + run: | + cd /home/runner/work/doc/doc/temp-zh + git checkout 2.5 + rm -rf ../i18n/zh/docusaurus-plugin-content-docs/version-2.5/ + mkdir -p ../i18n/zh/docusaurus-plugin-content-docs/version-2.5 + cp -r * ../i18n/zh/docusaurus-plugin-content-docs/version-2.5/ + - name: cleanup before running yarn build run: | cd /home/runner/work/doc/doc diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 679a490c03..b2fe1607fd 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -45,6 +45,14 @@ jobs: mkdir -p ../versioned_docs/version-3.0 cp -r docs/* ../versioned_docs/version-3.0 + - name: process English 2.5 + run: | + cd /home/runner/work/doc/doc/temp-en + git checkout branch-2.5 + rm -rf ../versioned_docs/version-2.5 + mkdir -p ../versioned_docs/version-2.5 + cp -r docs/* ../versioned_docs/version-2.5 + - name: process Chinese 3.1 run: | cd /home/runner/work/doc/doc/temp-zh @@ -61,6 +69,14 @@ jobs: mkdir -p ../i18n/zh/docusaurus-plugin-content-docs/version-3.0 cp -r * ../i18n/zh/docusaurus-plugin-content-docs/version-3.0/ + - name: process Chinese 2.5 + run: | + cd /home/runner/work/doc/doc/temp-zh + git checkout 2.5 + rm -rf ../i18n/zh/docusaurus-plugin-content-docs/version-2.5/ + mkdir -p ../i18n/zh/docusaurus-plugin-content-docs/version-2.5 + cp -r * ../i18n/zh/docusaurus-plugin-content-docs/version-2.5/ + - name: cleanup before running yarn build run: | cd /home/runner/work/doc/doc diff --git a/_IGNORE/testbuild b/_IGNORE/testbuild index 64217356e9..3da9075ee1 100755 --- a/_IGNORE/testbuild +++ b/_IGNORE/testbuild @@ -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 @@ -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 @@ -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} diff --git a/docusaurus.config.js b/docusaurus.config.js index 42601b3dc5..92d2c87483 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -64,6 +64,9 @@ const config = { '3.0': { banner: 'none' }, + '2.5': { + banner: 'none' + }, }, }, theme: { diff --git a/versions.json b/versions.json index 510a617768..8fd260b8c1 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ [ "3.1", - "3.0" + "3.0", + "2.5" ]