Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add verions 2.5 in English and Chinese #25

Merged
merged 3 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
Loading