-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: DanRoscigno <[email protected]>
- Loading branch information
1 parent
da4c086
commit 5e92ef1
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|