Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gitbook-plugin-tree

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-tree - npm Package Compare versions

Comparing version
0.0.34
to
0.3.5
+7
-0
book/plugin.js

@@ -19,4 +19,11 @@ require(["gitbook"], function(gitbook) {

var items = $('.summary li');
items.removeClass('active');
items.each(function(i, item) {
var $item = $(item);
//高亮当前项
var path = ($item.attr('data-path') || '').toLowerCase();
if (location.href.toString().toLowerCase().indexOf(path) > -1) {
$item.addClass('active');
}
//
item.childList = $item.children('ul');

@@ -23,0 +30,0 @@ item.hasChildList = item.childList.length > 0;

+1
-1

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "0.0.34",
"version": "0.3.5",
"engines": {

@@ -8,0 +8,0 @@ "gitbook": "*"