This is an automated email from the ASF dual-hosted git repository. liujun pushed a commit to branch mkdocs in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
commit 9bff0181dbbd275b6e2b6ba9d46f714b2a04813c Author: ken.lj <[email protected]> AuthorDate: Thu Oct 22 17:46:03 2020 +0800 revert en_us to en-us --- .github/workflows/deploy.yml | 4 ++-- material/partials/language-change.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f4b073a..63c2eab 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,8 +21,8 @@ jobs: mkdocs-redirects>=1.0 mkdocs --version echo "removing previous static files from ./output" && rm -rf ./output - mkdocs build -f mkdocs_en.yml -d ./output/en_us && mkdocs build -f mkdocs_zh.yml -d ./output/zh_cn - mkdir deploy-dist && cp -R img ./output/zh_cn/ && cp -R img ./output/en_us/ && cp -R ./output/* deploy-dist/ + mkdocs build -f mkdocs_en.yml -d ./output/en-us && mkdocs build -f mkdocs_zh.yml -d ./output/zh-cn + mkdir deploy-dist && cp -R img ./output/zh-cn/ && cp -R img ./output/en-us/ && cp -R ./output/* deploy-dist/ - name: Deploy uses: peaceiris/[email protected] env: diff --git a/material/partials/language-change.html b/material/partials/language-change.html index 2dcd04c..0b782b3 100644 --- a/material/partials/language-change.html +++ b/material/partials/language-change.html @@ -9,10 +9,10 @@ translate.addEventListener('click', changeHref, false); function changeHref() { if (window.location.href.search('en-us') !== -1) { - var changeHref = window.location.href.replace('en_us', 'zh_cn'); + var changeHref = window.location.href.replace('en-us', 'zh-cn'); } else { - var changeHref = window.location.href.replace('zh_cn', 'en_us'); + var changeHref = window.location.href.replace('zh-cn', 'en-us'); } window.location.href = changeHref }
