Skip to content

Commit

Permalink
move to separate workflow
Browse files Browse the repository at this point in the history
Signed-off-by: DanRoscigno <[email protected]>
  • Loading branch information
DanRoscigno committed Oct 17, 2023
1 parent da4c086 commit 5e92ef1
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,82 @@ name: Link check
on:
workflow_dispatch:

- uses: actions/checkout@v3
with:
repository: starrocks/starrocks
fetch-depth: 0
path: ./temp-en

- uses: actions/checkout@v3
with:
repository: starrocks/docs.zh-cn
fetch-depth: 0
path: ./temp-zh

- name: process English 3.1
run: |
cd /home/runner/work/doc/doc/temp-en
git checkout branch-3.1
rm -rf ../versioned_docs/version-3.1
mkdir -p ../versioned_docs/version-3.1
cp -r docs/* ../versioned_docs/version-3.1
- name: process English 3.0
run: |
cd /home/runner/work/doc/doc/temp-en
git checkout branch-3.0
rm -rf ../versioned_docs/version-3.0
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
git checkout 3.1
rm -rf ../i18n/zh/docusaurus-plugin-content-docs/version-3.1/
mkdir -p ../i18n/zh/docusaurus-plugin-content-docs/version-3.1
cp -r * ../i18n/zh/docusaurus-plugin-content-docs/version-3.1/
- name: process Chinese 3.0
run: |
cd /home/runner/work/doc/doc/temp-zh
git checkout 3.0
rm -rf ../i18n/zh/docusaurus-plugin-content-docs/version-3.0/
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
rm -rf temp-en
rm -rf temp-zh
find . -type f -name TOC.md | xargs rm
rm i18n/zh/docusaurus-plugin-content-docs/*/README.md
rm versioned_docs/version-*/README.md
find versioned_docs -type f -name "StarRocks_intro.md" -print0 -exec cp _IGNORE/_StarRocks_intro_English.mdx "{}" \;
find i18n/zh/docusaurus-plugin-content-docs -type f -name "StarRocks_intro.md" -print0 -exec cp _IGNORE/_StarRocks_intro_Chinese.mdx "{}" \;
find versioned_docs -type d -name quick_start -print0 -exec cp _IGNORE/index_pages/English/quick_start.mdx "{}" \;
find i18n/zh/docusaurus-plugin-content-docs -type d -name quick_start -print0 -exec cp _IGNORE/index_pages/Chinese/quick_start.mdx "{}" \;
_IGNORE/add_missing_english_files.sh
_IGNORE/add_chinese_sidebar.sh
_IGNORE/add_english_sidebar.sh
- name: Link Check on Chinese docs
id: lychee
uses: lycheeverse/[email protected]
Expand Down

0 comments on commit 5e92ef1

Please sign in to comment.