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

tison pushed a commit to branch dev
in repository 
https://gitbox.apache.org/repos/asf/incubator-streampark-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new 5f60fea  [Fix] Use locale dropdown provided by framework
5f60fea is described below

commit 5f60fea074c530492505003a67c0d07bae416329
Author: tison <[email protected]>
AuthorDate: Tue May 7 09:24:54 2024 +0800

    [Fix] Use locale dropdown provided by framework
    
    See
    https://docusaurus.io/docs/api/themes/configuration#navbar-locale-dropdown.
    
    This closes
    https://github.com/apache/incubator-streampark-website/issues/369.
    
    Signed-off-by: tison <[email protected]>
---
 docusaurus.config.js | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index e7c41ca..32d13b4 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -233,22 +233,8 @@ const config = {
             position: "right",
           },
           {
-            type: 'dropdown',
-            html:
-              '<svg class="locale_menu" viewBox="0 0 14 13" fill="none" 
xmlns="http://www.w3.org/2000/svg";>\n' +
-              '<path d="M6.95 12.6496L9.75 5.26628H11.0333L13.8333 
12.6496H12.55L11.9 10.7663H8.91667L8.25 12.6496H6.95ZM9.28333 
9.69961H11.5L10.4167 6.64961H10.3667L9.28333 9.69961ZM2.08333 10.7996L1.21667 
9.93294L4.33333 6.83294C3.94444 6.39961 3.60556 5.95228 3.31667 5.49094C3.02778 
5.03005 2.77222 4.54405 2.55 4.03294H3.83333C4.02222 4.41072 4.22222 4.74672 
4.43333 5.04094C4.64444 5.33561 4.89444 5.64405 5.18333 5.96628C5.63889 5.47739 
6.01667 4.97472 6.31667 4.45828C6.61667 3.94139  [...]
-              '</svg>',
+            type: 'localeDropdown',
             position: 'right',
-            items: [
-              {
-                label: 'English',
-                to: '/en',
-              },
-              {
-                label: '简体中文',
-                to: '/zh-CN',
-              },
-            ],
           },
         ],
       },

Reply via email to