[build] 4.3.15
This commit is contained in:
parent
a2b8eae8c4
commit
0bef31951c
5 changed files with 13 additions and 13 deletions
|
|
@ -1,6 +1,6 @@
|
||||||

|

|
||||||
|
|
||||||
# docsify <small>4.3.14</small>
|
# docsify <small>4.3.15</small>
|
||||||
|
|
||||||
> A magical documentation site generator.
|
> A magical documentation site generator.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
4
lib/docsify.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -37,5 +37,5 @@
|
||||||
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
"integrity": "sha1-6DWIAbhrg7F1YNTjw4LXrvIQCUQ="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": "4.3.14"
|
"version": "4.3.15"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue