From 3a5673730a60dcd46093ba34ff667677a21e650b Mon Sep 17 00:00:00 2001 From: Yujing Zheng Date: Tue, 1 Jul 2025 19:49:18 +0800 Subject: [PATCH] try to have the correct prefix --- .github/workflows/deploy-to-gh-pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml index 91b767e54..601d0950a 100644 --- a/.github/workflows/deploy-to-gh-pages.yml +++ b/.github/workflows/deploy-to-gh-pages.yml @@ -37,6 +37,9 @@ jobs: # Temporarily modify the default locale to English sed -i 's/defaultLocale: '\''zh'\''/defaultLocale: '\''en'\''/' docusaurus.config.js + # replace default en search locale + sed -i '/searchParameters: {}/i \ replaceSearchResultPathname: {\n from: "\/en\/",\n to: "\/",\n },' docusaurus.config.js + # Uncomment and update Algolia search path for GitHub Pages deployment sed -i '/{ type: '\''localeDropdown'\'', position: '\''right'\'' }/d' docusaurus.config.js sed -i -e "s/defaultLocale: 'zh'/defaultLocale: 'en'/" -e "s/locales: \['zh', 'en'\]/locales: \['en'\]/" -e 's|coscene.cn|coscene.io|g' docusaurus.config.js