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 2023/01/27 22:11:39 UTC

[skywalking-website] branch master updated: Fix letter case in file path (#563)

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 f10f2f303c6 Fix letter case in file path (#563)
f10f2f303c6 is described below

commit f10f2f303c691dbc370072409c16bc24ed2391cb
Author: Juntao Zhang <71...@qq.com>
AuthorDate: Sat Jan 28 06:11:34 2023 +0800

    Fix letter case in file path (#563)
---
 doc.sh  | 10 +++++-----
 docs.js |  3 ++-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/doc.sh b/doc.sh
index 16c09d37d93..8b94ecd40c2 100755
--- a/doc.sh
+++ b/doc.sh
@@ -20,7 +20,7 @@ fi
 
 mkdir ./${repo}
 cd ./${repo}
-if [ "$commitId" = "Next" ]; then
+if [ "$commitId" = "next" ]; then
   git clone --depth=1 ${repoUrl} .
 else
   git init
@@ -29,10 +29,10 @@ else
   git reset --hard FETCH_HEAD
 fi
 
-if [ -d "../../${localPath}" ]; then
-  rm -rf ../../${localPath}
+if [ -d "../..${localPath}" ]; then
+  rm -rf ../..${localPath}
 fi
-mkdir -p ../../${localPath}
-cp -rf ./docs/* ../../${localPath}
+mkdir -p ../..${localPath}
+cp -rf ./docs/* ../..${localPath}
 cp ./docs/menu.yml ../../data/docSidebar/${menuFileName}.yml
 
diff --git a/docs.js b/docs.js
index dbc7200f080..87cdc4e64b5 100644
--- a/docs.js
+++ b/docs.js
@@ -7,7 +7,7 @@ const {execSync} = require('child_process');
 const {promises} = fs;
 const docConfig = './data/docs.yml';
 const layoutTemplateFile = '/themes/docsy/layouts/projectDoc/baseof.html';
-const NEXT = 'Next';
+const NEXT = 'next';
 
 init();
 
@@ -148,6 +148,7 @@ async function traverseDocsList(result) {
         const {repo, repoUrl, docs, description, icon} = item;
         if (!repoUrl) continue;
         let {version, commitId} = doc;
+        version = version.toLowerCase();
         commitId = commitId || version;
         const docName = repo === 'skywalking' ? 'main' : repo;
         const localPath = `/content/docs/${docName}/${version}`;