This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 4ac5821  fix zh-cn doc (#159)
4ac5821 is described below

commit 4ac5821091d657748936e0a6b5728fa7fd7d076f
Author: Shawn Yang <[email protected]>
AuthorDate: Wed Aug 21 19:30:45 2024 +0800

    fix zh-cn doc (#159)
---
 .github/workflows/deploy.yml     |  2 +-
 .github/workflows/link-check.yml | 26 +++++++++++++-------------
 docusaurus.config.ts             | 14 +++++++-------
 scripts/unified-docs/script.py   | 10 +++++-----
 4 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 3c1240b..2f1d5ca 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -41,7 +41,7 @@ jobs:
           python --version
           cd scripts/unified-docs
           python script.py
-          ls -lR ../../i18n/zh-cn/ ../../i18n/en-us/
+          ls -lR ../../i18n/zh-CN/ ../../i18n/eu-US/
 
       - name: NPM Install & Build
         run: |
diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml
index 473d8aa..7d6812c 100644
--- a/.github/workflows/link-check.yml
+++ b/.github/workflows/link-check.yml
@@ -17,17 +17,17 @@ jobs:
         with:
           node-version: "18"
 
-      - name: markdown-link-check
-        uses: gaurav-nelson/github-action-markdown-link-check@v1
-        with:
-          use-quiet-mode: "yes"
-          config-file: "checklink_config.json"
-          max-depth: 3
+      # - name: markdown-link-check
+      #   uses: gaurav-nelson/github-action-markdown-link-check@v1
+      #   with:
+      #     use-quiet-mode: "yes"
+      #     config-file: "checklink_config.json"
+      #     max-depth: 3
 
-      - name: Archive Broken Links List
-        uses: actions/upload-artifact@v4
-        if: always()
-        with:
-          name: broken-links.json
-          path: /brokenLinks.json
-          retention-days: 5
+      # - name: Archive Broken Links List
+      #   uses: actions/upload-artifact@v4
+      #   if: always()
+      #   with:
+      #     name: broken-links.json
+      #     path: /brokenLinks.json
+      #     retention-days: 5
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 2d8bd0e..5d46624 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -17,17 +17,17 @@ const config: Config = {
   onBrokenMarkdownLinks: 'warn',
 
    i18n: {
-    defaultLocale: 'en-us',
-    locales: ['en-us', 'zh-cn'],
+    defaultLocale: 'eu-US',
+    locales: ['eu-US', 'zh-CN'],
     path: 'i18n',
     localeConfigs: {
-      'en-us': {
-        path: "en-us",
+      'eu-US': {
+        path: "eu-US",
         label: 'English',
-        htmlLang: 'en-US',
+        htmlLang: 'eu-US',
       },
-      'zh-cn': {
-        path: "zh-cn",
+      'zh-CN': {
+        path: "zh-CN",
         label: '简体中文',
         htmlLang: 'zh-CN',
       },
diff --git a/scripts/unified-docs/script.py b/scripts/unified-docs/script.py
index dcab76c..16a57b5 100644
--- a/scripts/unified-docs/script.py
+++ b/scripts/unified-docs/script.py
@@ -36,7 +36,7 @@ def copy_markdown_files(src_folder, dst_folder):
 
     for root, _, files in os.walk(src_folder):
         for file in files:
-            if file.endswith('.md'):
+            if file.endswith(".md"):
                 src_file = os.path.join(root, file)
                 rel_path = os.path.relpath(src_file, src_folder)
                 dst_file = os.path.join(dst_folder, rel_path)
@@ -48,12 +48,12 @@ def copy_markdown_files(src_folder, dst_folder):
 
 def execute():
     base_src_folder = "../../docs/"
-    zh_cn_docs_dst = "../../i18n/zh-cn/docusaurus-plugin-content-docs/current/"
-    en_us_docs_dst = "../../i18n/en-us/docusaurus-plugin-content-docs/current/"
+    zh_cn_docs_dst = "../../i18n/zh-CN/docusaurus-plugin-content-docs/current/"
+    en_us_docs_dst = "../../i18n/eu-US/docusaurus-plugin-content-docs/current/"
 
     base_blog_folder = "../../blog/"
-    zh_cn_blog_dst = "../../i18n/zh-cn/docusaurus-plugin-content-blog/"
-    en_us_blog_dst = "../../i18n/en-us/docusaurus-plugin-content-blog/"
+    zh_cn_blog_dst = "../../i18n/zh-CN/docusaurus-plugin-content-blog/"
+    en_us_blog_dst = "../../i18n/eu-US/docusaurus-plugin-content-blog/"
 
     copy_markdown_files(base_src_folder, zh_cn_docs_dst)
     copy_markdown_files(base_src_folder, en_us_docs_dst)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to