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 2021/02/22 00:25:33 UTC

[skywalking-website] branch master updated: Fix docs.js (#223)

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 7cfc933  Fix docs.js (#223)
7cfc933 is described below

commit 7cfc933f0d4f2f82b7d23cff5be6db095cb5b294
Author: Juntao Zhang <jt...@163.com>
AuthorDate: Mon Feb 22 08:25:28 2021 +0800

    Fix docs.js (#223)
---
 docs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs.js b/docs.js
index 34837b5..4165c6e 100644
--- a/docs.js
+++ b/docs.js
@@ -128,7 +128,7 @@ async function traverseDocsList(result) {
         if (commitId) {
           const docName = repo === 'skywalking' ? 'main' : repo;
           const localPath = `/content/docs/${docName}/${version}`;
-          const menuFileName = `${docName}${version}`.replace(/v|\./g, '_');
+          const menuFileName = `${docName}${version}`.replace(/\-|v|\./g, '_');
           docsInfo.push({localPath, repoUrl, commitId})
 
           tpl += `{{ if in .File.Path "${localPath.split('/content/')[1]}" }}