From 1ba9d0c41481f6576538e23999bd2f998a565894 Mon Sep 17 00:00:00 2001 From: "carlos.guo" Date: Thu, 28 Jan 2016 10:48:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=9C=A8=E5=8D=87?= =?UTF-8?q?=E7=BA=A7tnpm=E6=97=B6spm=20doc=E5=91=BD=E4=BB=A4=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改tnpm的spm doc失效问题 --- lib/doc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/doc.js b/lib/doc.js index a76a6b0c..f014c773 100755 --- a/lib/doc.js +++ b/lib/doc.js @@ -258,6 +258,9 @@ function generateCode(cwd, pkg) { deps.forEach(function(dep) { if (dep === pkg.name) return; var rDep = dep; + if(~rDep.indexOf(pkg.name)){ + rDep = './' + rDep.substr(pkg.name.length); + } if (isRelative(rDep)) { rDep = path.relative('./_site/', rDep); if (rDep.charAt(0) !== '.') { From 72ea71af1d57568fdbf7c4a05fe4a88f54e8b7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=BB=E4=BE=8D?= Date: Tue, 15 Mar 2016 14:29:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E7=89=88?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/theme/templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/theme/templates/layout.html b/lib/theme/templates/layout.html index ee6ae42c..659860ce 100755 --- a/lib/theme/templates/layout.html +++ b/lib/theme/templates/layout.html @@ -19,7 +19,7 @@ {%- block afterstyle %}{% endblock %} - +
{%- block body %}