[build] 4.6.8

This commit is contained in:
qingwei.li 2018-03-06 11:58:40 +08:00
parent bfd0d18e48
commit 4c91fbc7cb
5 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
![logo](_media/icon.svg) ![logo](_media/icon.svg)
# docsify <small>4.6.7</small> # docsify <small>4.6.8</small>
> A magical documentation site generator. > A magical documentation site generator.

View File

@ -3015,7 +3015,11 @@ Compiler.prototype.compileEmbed = function compileEmbed (href, title) {
if (config.include) { if (config.include) {
if (!isAbsolutePath(href)) { if (!isAbsolutePath(href)) {
href = getPath(this.contentBase, href); href = getPath(
this.contentBase,
getParentPath(this.router.getCurrentPath()),
href
);
} }
var media; var media;
@ -3168,7 +3172,7 @@ Compiler.prototype._initRenderer = function _initRenderer () {
} }
if (!isAbsolutePath(href)) { if (!isAbsolutePath(href)) {
url = getPath(contentBase, href); url = getPath(contentBase, getParentPath(router.getCurrentPath()), href);
} }
return ("<img src=\"" + url + "\"data-origin=\"" + href + "\" alt=\"" + text + "\"" + attrs + ">") return ("<img src=\"" + url + "\"data-origin=\"" + href + "\" alt=\"" + text + "\"" + attrs + ">")
@ -4569,7 +4573,7 @@ initGlobalAPI();
/** /**
* Version * Version
*/ */
Docsify.version = '4.6.7'; Docsify.version = '4.6.8';
/** /**
* Run Docsify * Run Docsify

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -37,5 +37,5 @@
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ=" "integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
} }
}, },
"version": "4.6.7" "version": "4.6.8"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "docsify-server-renderer", "name": "docsify-server-renderer",
"version": "4.6.7", "version": "4.6.8",
"description": "docsify server renderer", "description": "docsify server renderer",
"author": { "author": {
"name": "qingwei-li", "name": "qingwei-li",