You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/11/14 01:31:39 UTC

[skywalking-website] branch master updated: add an anchor for demo button (#534)

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

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
     new a1eddd5c03 add an anchor for demo button (#534)
a1eddd5c03 is described below

commit a1eddd5c0313e97f148c288d1e0789db91451c7b
Author: Juntao Zhang <71...@qq.com>
AuthorDate: Mon Nov 14 09:31:32 2022 +0800

    add an anchor for demo button (#534)
---
 content/_index.html                             | 2 +-
 themes/docsy/layouts/partials/scripts-home.html | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/content/_index.html b/content/_index.html
index 1de6d4b435..0a042fe543 100644
--- a/content/_index.html
+++ b/content/_index.html
@@ -13,7 +13,7 @@ linkTitle = "Apache SkyWalking"
                 <i class="iconfont icon-github icon-skywalking"></i>
             </a>
         </h1>
-        <div class="desc">
+        <div class="desc" id="demo">
             Application performance monitor tool for distributed systems, especially designed for
             microservices, cloud native and container-based (Kubernetes) architectures.
         </div>
diff --git a/themes/docsy/layouts/partials/scripts-home.html b/themes/docsy/layouts/partials/scripts-home.html
index 4c38d86ba2..290a596773 100644
--- a/themes/docsy/layouts/partials/scripts-home.html
+++ b/themes/docsy/layouts/partials/scripts-home.html
@@ -1,5 +1,7 @@
 <script>
   initUISwiper();
+  openDemoDropdown();
+
   function initUISwiper() {
     new Swiper('.ui-swiper-container', {
       loop: true,
@@ -13,4 +15,10 @@
       },
     });
   }
+
+  function openDemoDropdown() {
+    if (location.hash === '#demo') {
+      $('.btn-demo').trigger('click')
+    }
+  }
 </script>