You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by zh...@apache.org on 2021/08/27 02:38:44 UTC

[skywalking-website] branch master updated: Update docs.js

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

zhangjuntao 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 11d615e  Update docs.js
11d615e is described below

commit 11d615e1b200b76b6f90036877e68a2801198d8a
Author: Juntao Zhang <71...@qq.com>
AuthorDate: Fri Aug 27 10:38:41 2021 +0800

    Update docs.js
---
 docs.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs.js b/docs.js
index 2aefc9a..66544e2 100644
--- a/docs.js
+++ b/docs.js
@@ -160,7 +160,7 @@ async function traverseDocsList(result) {
           }
           const docName = repo === 'skywalking' ? 'main' : repo;
           const localPath = `/content/docs/${docName}/${version}`;
-          const menuFileName = `${docName}${version}`.replace(/\-|v|\./g, '_');
+          const menuFileName = `${docName.replace(/\-|\./g, '_')}${version.replace(/\-|v|\./g, '_')}`;
           docsInfo.push({localPath, repoUrl, commitId, date, docName, version})
 
           tpl += `{{ if in .File.Path "${localPath.split('/content/')[1]}" }}
@@ -241,4 +241,4 @@ function loadYaml(filePath) {
       resolve(result)
     });
   })
-}
\ No newline at end of file
+}