You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/01 08:10:21 UTC

[echarts-doc] branch master updated: tweak nav

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

shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git


The following commit(s) were added to refs/heads/master by this push:
     new b419269  tweak nav
b419269 is described below

commit b419269d68befcc272d4cb9fb0f3598af388fb3c
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 1 16:10:15 2021 +0800

    tweak nav
---
 src/App.vue | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 81c799d..c2cf214 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -11,13 +11,15 @@
                     :class="{'selected': shared.docType === 'api'}"
                 >{{$t('nav.API')}}</a>
                 <a
-                    :href="'tutorial.html'"
-                    :class="{'selected': shared.docType === 'tutorial'}"
-                >{{$t('nav.tutorial')}}</a>
-                <a
                     :href="'option-gl.html'"
                     :class="{'selected': shared.docType === 'option-gl'}"
                 >{{$t('nav.optionGL')}}</a>
+                <!-- TODO Not use handbook link here?-->
+                <a
+                    :href="`https://echarts.apache.org/handbook/${shared.locale}/get-started`"
+                    :class="{'selected': shared.docType === 'tutorial', 'handbook-link': true}"
+                    target="blank"
+                >{{$t('nav.tutorial')}}</a>
             </div>
             <Search></Search>
             <DocNav></DocNav>
@@ -139,6 +141,14 @@ export default {
                 &.selected {
                     border-top: 3px solid #B03A5B;
                 }
+
+                &.handbook-link {
+                    color: #337ab7;
+
+                    &:hover {
+                        text-decoration: underline;
+                    }
+                }
             }
         }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org