Skip to content

Commit

Permalink
Merge pull request #25 from DanRoscigno/add-version-2.5
Browse files Browse the repository at this point in the history
add verions 2.5 in English and Chinese
  • Loading branch information
DanRoscigno authored Oct 11, 2023
2 parents 9d0e4e6 + 8ac0e2b commit 6b8868d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
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 6b8868d

Please sign in to comment.