Skip to content

Commit 0bef319

Browse files
committed
[build] 4.3.15
1 parent a2b8eae commit 0bef319

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

docs/_coverpage.md

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

3-
# docsify <small>4.3.14</small>
3+
# docsify <small>4.3.15</small>
44

55
> A magical documentation site generator.
66

lib/docsify.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,7 @@ function scrollTo (el) {
31823182
.begin();
31833183
}
31843184

3185-
function highlight () {
3185+
function highlight (path) {
31863186
if (!enableScrollEvent) { return }
31873187
var sidebar = getNode('.sidebar');
31883188
var anchors = findAll('.anchor');
@@ -3203,7 +3203,7 @@ function highlight () {
32033203
}
32043204
}
32053205
if (!last) { return }
3206-
var li = nav[last.getAttribute('data-id')];
3206+
var li = nav[getNavKey(path, last.getAttribute('data-id'))];
32073207

32083208
if (!li || li === active) { return }
32093209

@@ -3246,17 +3246,17 @@ function scrollActiveSidebar (router) {
32463246
if (href !== '/') {
32473247
var ref = router.parse(href);
32483248
var id = ref.query.id;
3249-
var path = ref.path;
3250-
if (id) { href = getNavKey(path, id); }
3249+
var path$1 = ref.path;
3250+
if (id) { href = getNavKey(path$1, id); }
32513251
}
32523252

32533253
if (href) { nav[decodeURIComponent(href)] = li; }
32543254
}
32553255

32563256
if (isMobile) { return }
3257-
3258-
off('scroll', highlight);
3259-
on('scroll', highlight);
3257+
var path = router.getCurrentPath();
3258+
off('scroll', function () { return highlight(path); });
3259+
on('scroll', function () { return highlight(path); });
32603260
on(sidebar, 'mouseover', function () {
32613261
hoverOver = true;
32623262
});
@@ -3990,7 +3990,7 @@ initGlobalAPI();
39903990
/**
39913991
* Version
39923992
*/
3993-
Docsify.version = '4.3.14';
3993+
Docsify.version = '4.3.15';
39943994

39953995
/**
39963996
* Run Docsify

lib/docsify.min.js

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/docsify-server-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docsify-server-renderer",
3-
"version": "4.3.14",
3+
"version": "4.3.15",
44
"description": "docsify server renderer",
55
"author": {
66
"name": "qingwei-li",

0 commit comments

Comments
 (0)