[build] 4.3.15

This commit is contained in:
qingwei.li 2017-10-20 12:55:29 +08:00
commit 0bef31951c
5 changed files with 13 additions and 13 deletions

View file

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

View file

@ -3182,7 +3182,7 @@ function scrollTo (el) {
.begin(); .begin();
} }
function highlight () { function highlight (path) {
if (!enableScrollEvent) { return } if (!enableScrollEvent) { return }
var sidebar = getNode('.sidebar'); var sidebar = getNode('.sidebar');
var anchors = findAll('.anchor'); var anchors = findAll('.anchor');
@ -3203,7 +3203,7 @@ function highlight () {
} }
} }
if (!last) { return } if (!last) { return }
var li = nav[last.getAttribute('data-id')]; var li = nav[getNavKey(path, last.getAttribute('data-id'))];
if (!li || li === active) { return } if (!li || li === active) { return }
@ -3246,17 +3246,17 @@ function scrollActiveSidebar (router) {
if (href !== '/') { if (href !== '/') {
var ref = router.parse(href); var ref = router.parse(href);
var id = ref.query.id; var id = ref.query.id;
var path = ref.path; var path$1 = ref.path;
if (id) { href = getNavKey(path, id); } if (id) { href = getNavKey(path$1, id); }
} }
if (href) { nav[decodeURIComponent(href)] = li; } if (href) { nav[decodeURIComponent(href)] = li; }
} }
if (isMobile) { return } if (isMobile) { return }
var path = router.getCurrentPath();
off('scroll', highlight); off('scroll', function () { return highlight(path); });
on('scroll', highlight); on('scroll', function () { return highlight(path); });
on(sidebar, 'mouseover', function () { on(sidebar, 'mouseover', function () {
hoverOver = true; hoverOver = true;
}); });
@ -3990,7 +3990,7 @@ initGlobalAPI();
/** /**
* Version * Version
*/ */
Docsify.version = '4.3.14'; Docsify.version = '4.3.15';
/** /**
* Run Docsify * Run Docsify

4
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.3.14" "version": "4.3.15"
} }

View file

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