Skip to content

Commit 4c91fbc

Browse files
committed
[build] 4.6.8
1 parent bfd0d18 commit 4c91fbc

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

docs/_coverpage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](_media/icon.svg)
22

3-
# docsify <small>4.6.7</small>
3+
# docsify <small>4.6.8</small>
44

55
> A magical documentation site generator.
66

lib/docsify.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -3015,7 +3015,11 @@ Compiler.prototype.compileEmbed = function compileEmbed (href, title) {
30153015

30163016
if (config.include) {
30173017
if (!isAbsolutePath(href)) {
3018-
href = getPath(this.contentBase, href);
3018+
href = getPath(
3019+
this.contentBase,
3020+
getParentPath(this.router.getCurrentPath()),
3021+
href
3022+
);
30193023
}
30203024

30213025
var media;
@@ -3168,7 +3172,7 @@ Compiler.prototype._initRenderer = function _initRenderer () {
31683172
}
31693173

31703174
if (!isAbsolutePath(href)) {
3171-
url = getPath(contentBase, href);
3175+
url = getPath(contentBase, getParentPath(router.getCurrentPath()), href);
31723176
}
31733177

31743178
return ("<img src=\"" + url + "\"data-origin=\"" + href + "\" alt=\"" + text + "\"" + attrs + ">")
@@ -4569,7 +4573,7 @@ initGlobalAPI();
45694573
/**
45704574
* Version
45714575
*/
4572-
Docsify.version = '4.6.7';
4576+
Docsify.version = '4.6.8';
45734577

45744578
/**
45754579
* Run Docsify

lib/docsify.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.6.7",
3+
"version": "4.6.8",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",

0 commit comments

Comments
 (0)