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 0af7610ca6b1f77b1e4e5a1c218ef9969d434fdb
Author: ken.lj <[email protected]>
AuthorDate: Thu Aug 13 15:48:56 2020 +0800

    fix mkdocs config
---
 mkdocs_en.yml                     | 4 ++--
 mkdocs_zh.yml                     | 3 ++-
 overrides/partials/tabs-item.html | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/mkdocs_en.yml b/mkdocs_en.yml
index 0af2f9c..39fdca4 100644
--- a/mkdocs_en.yml
+++ b/mkdocs_en.yml
@@ -6,7 +6,7 @@ site_description: >-
 docs_dir: 'en-us'
 
 nav:
-  - "Home": 'docs/index.md'
+  - "Home": 'index.md'
   - "Docs":
     - "2.7":
       - "User's Guide":
@@ -206,7 +206,7 @@ extra:
       link: https://linkedin.com/in/squidfunk/
     - icon: fontawesome/brands/instagram
       link: https://instagram.com/squidfunk
-
+  docs_key: 'Docs'
 # Extensions
 markdown_extensions:
   - markdown.extensions.admonition
diff --git a/mkdocs_zh.yml b/mkdocs_zh.yml
index 6f8a0f0..14a02b2 100644
--- a/mkdocs_zh.yml
+++ b/mkdocs_zh.yml
@@ -4,6 +4,7 @@ edit_uri: edit/master/zh-cn/
 site_description: >-
   Apache Dubbo™ 是一款微服务框架(Microservices Framework),它提供高性能 RPC 
通信、服务发现、流量管理等服务治理能力,为你提供构建大规模微服务集群所需的全套解决方案。
 docs_dir: 'zh-cn'
+
 nav:
   - "首页": 'index.md'
   - "文档":
@@ -225,7 +226,7 @@ extra:
       link: https://linkedin.com/in/squidfunk/
     - icon: fontawesome/brands/instagram
       link: https://instagram.com/squidfunk
-
+  docs_key: '文档'
 # Extensions
 markdown_extensions:
   - markdown.extensions.admonition
diff --git a/overrides/partials/tabs-item.html 
b/overrides/partials/tabs-item.html
index 89ad541..ead385a 100755
--- a/overrides/partials/tabs-item.html
+++ b/overrides/partials/tabs-item.html
@@ -40,7 +40,7 @@
 <!-- Main navigation item with nested items -->
 {% elif nav_item.children and nav_item.children | length > 0 %}
   {% set title = title | default(nav_item.title) %}
-  {% if nav_item.title == 'Docs' %}
+  {% if nav_item.title == config.extra.docs_key %}
     <li class="md-tabs__item">{{nav_item.title}}
       <ul class="md-tabs__list">
         {% for versions_nav_item in nav_item.children %}

Reply via email to