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

ningjiang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/servicecomb-website.git

commit e81e999746e852428b90c292279bb24d73e21ac6
Author: Willem Jiang <[email protected]>
AuthorDate: Mon Nov 18 09:59:46 2019 +0800

    Publish the website
---
 content/cn/developers/sonarcloud-how-to/index.html | 16 ++++++++++++++--
 content/developers/sonarcloud-how-to/index.html    | 18 +++++++++++++++---
 content/feed.xml                                   |  2 +-
 3 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/content/cn/developers/sonarcloud-how-to/index.html 
b/content/cn/developers/sonarcloud-how-to/index.html
index c9c5b3c..c7c21e0 100644
--- a/content/cn/developers/sonarcloud-how-to/index.html
+++ b/content/cn/developers/sonarcloud-how-to/index.html
@@ -471,7 +471,11 @@
 <nav class="toc">
     <!-- <header><h4 class="nav__title"><i class="fa fa-file-text"></i> 
在本页上</h4></header> -->
 <ul class="toc__menu" id="markdown-toc">
-  <li><a href="#步骤" id="markdown-toc-步骤">步骤</a></li>
+  <li><a href="#步骤" id="markdown-toc-步骤">步骤</a>    <ul>
+      <li><a href="#关于浅克隆" id="markdown-toc-关于浅克隆">关于浅克隆</a></li>
+      <li><a href="#关于pr" id="markdown-toc-关于pr">关于PR</a></li>
+    </ul>
+  </li>
   <li><a href="#参考资料" id="markdown-toc-参考资料">参考资料</a></li>
 </ul>
 
@@ -490,7 +494,15 @@
   <li>根据SonarCloud中的指示修改你的<code 
class="highlighter-rouge">.travis.yml</code></li>
 </ol>
 
-<p>注意:</p>
+<h3 id="关于浅克隆">关于浅克隆</h3>
+
+<p>Travis<a 
href="https://docs.travis-ci.com/user/customizing-the-build/#git-clone-depth";>默认使用浅克隆</a>,而
 SonarCloud需要commit信息,因此你需要禁用浅克隆:</p>
+
+<div class="language-yaml highlighter-rouge"><div class="highlight"><pre 
class="highlight"><code><span class="na">git</span><span class="pi">:</span>
+  <span class="na">depth</span><span class="pi">:</span> <span 
class="no">false</span>
+</code></pre></div></div>
+
+<h3 id="关于pr">关于PR</h3>
 
 <p>因为Travis不支持在PR中启用SonarCloud集成,因此你需要对构建脚本做类似下面的改动:</p>
 
diff --git a/content/developers/sonarcloud-how-to/index.html 
b/content/developers/sonarcloud-how-to/index.html
index b321526..347b6fe 100644
--- a/content/developers/sonarcloud-how-to/index.html
+++ b/content/developers/sonarcloud-how-to/index.html
@@ -437,7 +437,11 @@
 <nav class="toc">
     <!-- <header><h4 class="nav__title"><i class="fa fa-file-text"></i> On 
This Page</h4></header> -->
 <ul class="toc__menu" id="markdown-toc">
-  <li><a href="#steps" id="markdown-toc-steps">Steps</a></li>
+  <li><a href="#steps" id="markdown-toc-steps">Steps</a>    <ul>
+      <li><a href="#about-shallow-clone" 
id="markdown-toc-about-shallow-clone">About Shallow Clone</a></li>
+      <li><a href="#about-pr" id="markdown-toc-about-pr">About PR</a></li>
+    </ul>
+  </li>
   <li><a href="#references" id="markdown-toc-references">References</a></li>
 </ul>
 
@@ -456,9 +460,17 @@
   <li>Follow the SonarCloud instructions modify project’s <code 
class="highlighter-rouge">.travis.yml</code></li>
 </ol>
 
-<p>Notice:</p>
+<h3 id="about-shallow-clone">About Shallow Clone</h3>
 
-<p>Because Travis doesn’t support SonarCloud in PR build, you should modify 
your build script like this:</p>
+<p>Travis <a 
href="https://docs.travis-ci.com/user/customizing-the-build/#git-clone-depth";>use
 shallow clone by default</a>, and SonarCloud needs commit information, so you 
need to disable shallow clone:</p>
+
+<div class="language-yaml highlighter-rouge"><div class="highlight"><pre 
class="highlight"><code><span class="na">git</span><span class="pi">:</span>
+  <span class="na">depth</span><span class="pi">:</span> <span 
class="no">false</span>
+</code></pre></div></div>
+
+<h3 id="about-pr">About PR</h3>
+
+<p>Travis doesn’t support SonarCloud in PR build, you should modify your build 
script like this:</p>
 
 <div class="language-bash highlighter-rouge"><div class="highlight"><pre 
class="highlight"><code><span class="nb">echo</span> <span 
class="s2">"TRAVIS_PULL_REQUEST=</span><span 
class="nv">$TRAVIS_PULL_REQUEST</span><span class="s2">"</span>
 <span class="k">if</span> <span class="o">[</span> <span 
class="s2">"</span><span class="nv">$TRAVIS_PULL_REQUEST</span><span 
class="s2">"</span> <span class="o">==</span> <span class="s2">"false"</span> 
<span class="o">]</span><span class="p">;</span> <span class="k">then
diff --git a/content/feed.xml b/content/feed.xml
index 64bf5d4..cdef211 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?><feed 
xmlns="http://www.w3.org/2005/Atom"; ><generator uri="https://jekyllrb.com/"; 
version="3.8.5">Jekyll</generator><link href="/feed.xml" rel="self" 
type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" 
/><updated>2019-11-15T17:10:47+08:00</updated><id>/feed.xml</id><title 
type="html">Apache ServiceComb</title><subtitle>The homepage of 
ServiceComb</subtitle><author><name>{&quot;name&quot;=&gt;nil, 
&quot;avatar&quot;=&gt;&quot [...]
+<?xml version="1.0" encoding="utf-8"?><feed 
xmlns="http://www.w3.org/2005/Atom"; ><generator uri="https://jekyllrb.com/"; 
version="3.8.5">Jekyll</generator><link href="/feed.xml" rel="self" 
type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" 
/><updated>2019-11-18T09:58:24+08:00</updated><id>/feed.xml</id><title 
type="html">Apache ServiceComb</title><subtitle>The homepage of 
ServiceComb</subtitle><author><name>{&quot;name&quot;=&gt;nil, 
&quot;avatar&quot;=&gt;&quot [...]
 
 &lt;ul&gt;
   &lt;li&gt;&lt;a 
href=&quot;https://lists.apache.org/thread.html/062cf6e67add1061aad3b106543842a8ac95959da8cd45bf2f88d597@%3Cdev.servicecomb.apache.org%3E&quot;&gt;Donation
 acceptance vote&lt;/a&gt;&lt;/li&gt;

Reply via email to