From 7ddfd64c70b3960f0a4b71dc289d93e380341dd3 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Nov 2025 15:15:15 +0800 Subject: [PATCH 1/7] Add redirect to MEXC API documentation in layout.erb --- source/layouts/layout.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 8e286d6..37d80f6 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -29,6 +29,11 @@ under the License. + + + <% if current_page.data.key?('meta') %> <% current_page.data.meta.each do |meta| %> Date: Thu, 20 Nov 2025 15:17:30 +0800 Subject: [PATCH 2/7] Update redirect URLs in layout.erb for MEXC API documentation --- source/layouts/layout.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 37d80f6..89bf6e9 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -29,9 +29,9 @@ under the License. - + <% if current_page.data.key?('meta') %> From 28d7a276d1cc53a5d5e2594b31836569fcca440d Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Nov 2025 16:28:18 +0800 Subject: [PATCH 3/7] chore: change to v3 --- .github/workflows/build.yml | 2 +- .github/workflows/deploy.yml | 6 +++--- .github/workflows/dev_deploy.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba682bd..c109a8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 68cdab1..011db72 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy on: push: - branches: [ 'broker_en' ] + branches: [ 'broker_cn' ] jobs: deploy: @@ -20,7 +20,7 @@ jobs: with: ruby-version: ${{ env.ruby-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} @@ -40,7 +40,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - destination_dir: broker_en + destination_dir: broker_cn publish_dir: ./build keep_files: true diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index 198640a..8b08d0a 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -35,7 +35,7 @@ jobs: with: ruby-version: ${{ env.ruby-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} From c9362dda005c43dfc5620872d03f62e5d3765694 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Nov 2025 17:18:03 +0800 Subject: [PATCH 4/7] chore: upgrade actions/cache to v4 in build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c109a8b..b179e4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} From a19d285cf1449f6f4ad2bda17e868a0507d0ade7 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Nov 2025 17:19:03 +0800 Subject: [PATCH 5/7] chore: downgrade actions/cache to v3 in build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b179e4f..c109a8b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} - - uses: actions/cache@v4 + - uses: actions/cache@v3 with: path: vendor/bundle key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} From bf640cbbecf825df0bf41738a7c2ba6db9fd4ce0 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Nov 2025 17:20:57 +0800 Subject: [PATCH 6/7] chore: upgrade actions/checkout to v3 in build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c109a8b..ebbaa7d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: ruby-version: [3.1] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: From 8bb08e1eb4ba26915ea98df2097b955707a20a75 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 20 Nov 2025 17:32:08 +0800 Subject: [PATCH 7/7] revert --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 011db72..086b799 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy on: push: - branches: [ 'broker_cn' ] + branches: [ 'broker_en' ] jobs: deploy: @@ -40,7 +40,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - destination_dir: broker_cn + destination_dir: broker_en publish_dir: ./build keep_files: true