mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-02-01 16:39:42 +00:00
[build] 4.3.15
This commit is contained in:
parent
a2b8eae8c4
commit
0bef31951c
@ -1,6 +1,6 @@
|
||||

|
||||
|
||||
# docsify <small>4.3.14</small>
|
||||
# docsify <small>4.3.15</small>
|
||||
|
||||
> A magical documentation site generator.
|
||||
|
||||
|
||||
@ -3182,7 +3182,7 @@ function scrollTo (el) {
|
||||
.begin();
|
||||
}
|
||||
|
||||
function highlight () {
|
||||
function highlight (path) {
|
||||
if (!enableScrollEvent) { return }
|
||||
var sidebar = getNode('.sidebar');
|
||||
var anchors = findAll('.anchor');
|
||||
@ -3203,7 +3203,7 @@ function highlight () {
|
||||
}
|
||||
}
|
||||
if (!last) { return }
|
||||
var li = nav[last.getAttribute('data-id')];
|
||||
var li = nav[getNavKey(path, last.getAttribute('data-id'))];
|
||||
|
||||
if (!li || li === active) { return }
|
||||
|
||||
@ -3246,17 +3246,17 @@ function scrollActiveSidebar (router) {
|
||||
if (href !== '/') {
|
||||
var ref = router.parse(href);
|
||||
var id = ref.query.id;
|
||||
var path = ref.path;
|
||||
if (id) { href = getNavKey(path, id); }
|
||||
var path$1 = ref.path;
|
||||
if (id) { href = getNavKey(path$1, id); }
|
||||
}
|
||||
|
||||
if (href) { nav[decodeURIComponent(href)] = li; }
|
||||
}
|
||||
|
||||
if (isMobile) { return }
|
||||
|
||||
off('scroll', highlight);
|
||||
on('scroll', highlight);
|
||||
var path = router.getCurrentPath();
|
||||
off('scroll', function () { return highlight(path); });
|
||||
on('scroll', function () { return highlight(path); });
|
||||
on(sidebar, 'mouseover', function () {
|
||||
hoverOver = true;
|
||||
});
|
||||
@ -3990,7 +3990,7 @@ initGlobalAPI();
|
||||
/**
|
||||
* Version
|
||||
*/
|
||||
Docsify.version = '4.3.14';
|
||||
Docsify.version = '4.3.15';
|
||||
|
||||
/**
|
||||
* 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="
|
||||
}
|
||||
},
|
||||
"version": "4.3.14"
|
||||
"version": "4.3.15"
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "docsify-server-renderer",
|
||||
"version": "4.3.14",
|
||||
"version": "4.3.15",
|
||||
"description": "docsify server renderer",
|
||||
"author": {
|
||||
"name": "qingwei-li",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user