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) !== '.') { 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 %}
- +