From bfdb06725645a0073c1fff53c8c29c73beebd1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 15 Apr 2024 16:28:32 -0300 Subject: [PATCH 1/8] Update build-docs.yml --- .github/workflows/build-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index ca979f10418..0e21e99e83e 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -1,6 +1,8 @@ name: Build docs on PR merge on: + pull_request: + types: [opened, reopened, synchronize] push: branches: - master From 7928fd84f53f0f2d4d29b6c60fd16da056c4c402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 15 Apr 2024 17:00:01 -0300 Subject: [PATCH 2/8] Update build-docs.yml --- .github/workflows/build-docs.yml | 33 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 0e21e99e83e..63474d81df7 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -26,14 +26,14 @@ jobs: with: node-version: "18" - - uses: actions/cache@v3 - with: - path: | - ${{ github.workspace }}/**/.cache - key: | - ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} +# - uses: actions/cache@v3 +# with: +# path: | +# ${{ github.workspace }}/**/.cache +# key: | +# ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} +# restore-keys: | +# ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} - name: Set Git config run: | @@ -45,7 +45,7 @@ jobs: git fetch git checkout build git pull - git merge --no-ff master -m "Auto-merge main back to build" +# git merge --no-ff master -m "Auto-merge main back to build" - name: Install dependencies and build run: | @@ -53,16 +53,17 @@ jobs: yarn yarn docusaurus clear yarn build - yarn crowdin:upload +# yarn crowdin:upload - name: Commit build run: | - git add -f ./website/build ./website/.docusaurus ./website/i18n - if git commit -m "add new build";then - git push - else - echo "Nothing to commit" - fi + echo "ok" +# git add -f ./website/build ./website/.docusaurus ./website/i18n +# if git commit -m "add new build";then +# git push +# else +# echo "Nothing to commit" +# fi env: NODE_OPTIONS: --max-old-space-size=8192 CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} From f1d6ab43f751468f208fea060c3c9afea640c4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 15 Apr 2024 17:16:00 -0300 Subject: [PATCH 3/8] Update build-docs.yml --- .github/workflows/build-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 63474d81df7..e520f0439f8 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -24,7 +24,7 @@ jobs: fetch-depth: "0" - uses: actions/setup-node@v2 with: - node-version: "18" + node-version: "20" # - uses: actions/cache@v3 # with: From a68e21580c256f77aea1e23f9df89bc3ca9100b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Mon, 15 Apr 2024 17:39:03 -0300 Subject: [PATCH 4/8] Update build-docs.yml --- .github/workflows/build-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index e520f0439f8..6e1c8b18dac 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -65,5 +65,5 @@ jobs: # echo "Nothing to commit" # fi env: - NODE_OPTIONS: --max-old-space-size=8192 +# NODE_OPTIONS: --max-old-space-size=8192 CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} From edc6e9fab6079a96746d9619785e8ac38e799cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Tue, 16 Apr 2024 11:19:45 -0300 Subject: [PATCH 5/8] Update docusaurus.config.js --- website/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index cc6c6b69606..5d0b4d26fad 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -272,7 +272,7 @@ const config = { }, i18n: { defaultLocale: 'en', - locales: ['en', 'ko', 'vi', 'zh-CN'], + locales: ['en', 'ko', 'vi'], localeConfigs: { 'zh-CN': { label: '简体中文', From f1dedb0c997d7c8ba5e47e476c07be9e594f8f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Tue, 16 Apr 2024 11:35:06 -0300 Subject: [PATCH 6/8] Update docusaurus.config.js --- website/docusaurus.config.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 5d0b4d26fad..b55d84e938e 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -273,10 +273,6 @@ const config = { i18n: { defaultLocale: 'en', locales: ['en', 'ko', 'vi'], - localeConfigs: { - 'zh-CN': { - label: '简体中文', - }, }, }, }; From e1d029068e5057f5e17ffd76e47a973d865b5b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Tue, 16 Apr 2024 11:45:13 -0300 Subject: [PATCH 7/8] Update docusaurus.config.js --- website/docusaurus.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index b55d84e938e..5d0b4d26fad 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -273,6 +273,10 @@ const config = { i18n: { defaultLocale: 'en', locales: ['en', 'ko', 'vi'], + localeConfigs: { + 'zh-CN': { + label: '简体中文', + }, }, }, }; From 34219a24343f5a82769fd74427fcdc85b62c66ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Parrino?= Date: Tue, 16 Apr 2024 11:47:38 -0300 Subject: [PATCH 8/8] Update build-docs.yml --- .github/workflows/build-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 6e1c8b18dac..5067e362f08 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -50,6 +50,7 @@ jobs: - name: Install dependencies and build run: | cd website + curl https://raw.githubusercontent.com/near/docs/bucanero-patch-1/website/docusaurus.config.js > docusaurus.config.js yarn yarn docusaurus clear yarn build