renzheng 3 ani în urmă
părinte
comite
678a719f90

+ 20 - 5
_book/cooperation.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -396,7 +411,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"协作流程","level":"1.3","depth":1,"next":{"title":"设计规范","level":"1.3.1","depth":2,"path":"cooperation/design.md","ref":"./cooperation/design.md","articles":[]},"previous":{"title":"协作信息","level":"1.2","depth":1,"path":"info.md","ref":"info.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"cooperation.md","mtime":"2022-03-24T09:39:08.193Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":".","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"协作流程","level":"1.3","depth":1,"next":{"title":"设计规范","level":"1.3.1","depth":2,"path":"cooperation/design.md","ref":"./cooperation/design.md","articles":[]},"previous":{"title":"协作信息","level":"1.2","depth":1,"path":"info.md","ref":"info.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"cooperation.md","mtime":"2022-03-24T09:39:08.193Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":".","book":{"language":""}});
         });
     </script>
 </div>
@@ -406,6 +421,10 @@
     <script src="gitbook/theme.js"></script>
     
         
+        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -422,10 +441,6 @@
         
     
         
-        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

Fișier diff suprimat deoarece este prea mare
+ 15 - 0
_book/cooperation/design.html


+ 20 - 5
_book/cooperation/dev.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -393,7 +408,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"开发规范","level":"1.3.2","depth":2,"next":{"title":"测试规范","level":"1.3.3","depth":2,"path":"cooperation/test.md","ref":"./cooperation/test.md","articles":[]},"previous":{"title":"设计规范","level":"1.3.1","depth":2,"path":"cooperation/design.md","ref":"./cooperation/design.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"cooperation/dev.md","mtime":"2022-03-24T07:17:57.411Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"开发规范","level":"1.3.2","depth":2,"next":{"title":"测试规范","level":"1.3.3","depth":2,"path":"cooperation/test.md","ref":"./cooperation/test.md","articles":[]},"previous":{"title":"设计规范","level":"1.3.1","depth":2,"path":"cooperation/design.md","ref":"./cooperation/design.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"cooperation/dev.md","mtime":"2022-03-24T07:17:57.411Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -403,6 +418,10 @@
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -419,10 +438,6 @@
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

Fișier diff suprimat deoarece este prea mare
+ 15 - 0
_book/cooperation/devops.html


+ 20 - 5
_book/cooperation/test.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -377,7 +392,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"测试规范","level":"1.3.3","depth":2,"next":{"title":"运维规范","level":"1.3.4","depth":2,"path":"cooperation/devops.md","ref":"./cooperation/devops.md","articles":[]},"previous":{"title":"开发规范","level":"1.3.2","depth":2,"path":"cooperation/dev.md","ref":"./cooperation/dev.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"cooperation/test.md","mtime":"2022-03-24T09:22:56.671Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"测试规范","level":"1.3.3","depth":2,"next":{"title":"运维规范","level":"1.3.4","depth":2,"path":"cooperation/devops.md","ref":"./cooperation/devops.md","articles":[]},"previous":{"title":"开发规范","level":"1.3.2","depth":2,"path":"cooperation/dev.md","ref":"./cooperation/dev.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"cooperation/test.md","mtime":"2022-03-24T09:22:56.671Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -387,6 +402,10 @@
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -403,10 +422,6 @@
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

+ 20 - 5
_book/devtools.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="res/remove_publish.css">
+        
     
         
     
@@ -82,8 +88,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -437,7 +452,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"开发工具","level":"1.5","depth":1,"previous":{"title":"运维资料","level":"1.4.5","depth":2,"path":"share/devops.md","ref":"./share/devops.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"devtools.md","mtime":"2022-03-23T06:54:48.793Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":".","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"开发工具","level":"1.5","depth":1,"previous":{"title":"运维资料","level":"1.4.5","depth":2,"path":"share/devops.md","ref":"./share/devops.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"devtools.md","mtime":"2022-03-23T06:54:48.793Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":".","book":{"language":""}});
         });
     </script>
 </div>
@@ -447,6 +462,10 @@
     <script src="gitbook/theme.js"></script>
     
         
+        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -463,10 +482,6 @@
         
     
         
-        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

+ 29 - 0
_book/gitbook/gitbook-plugin-chapter-fold/chapter-fold.css

@@ -0,0 +1,29 @@
+.book .book-summary .chapter > .articles {
+	overflow: hidden;
+	max-height: 0px;
+}
+
+.book .book-summary .chapter.expanded > .articles {
+	max-height: 9999px;
+}
+
+.book .book-summary .exc-trigger {
+	position: absolute;
+  	left: 12px;
+  	top: 12px;
+}
+
+.book .book-summary ul.summary li a,
+.book .book-summary ul.summary li span {
+	padding-left: 30px;
+}
+
+.book .book-summary .exc-trigger:before {
+  	content: "\f105";
+}
+
+.book .book-summary .expanded > a .exc-trigger:before,
+.book .book-summary .expanded > span .exc-trigger:before {
+	content: "\f107";
+}
+

+ 67 - 0
_book/gitbook/gitbook-plugin-chapter-fold/chapter-fold.js

@@ -0,0 +1,67 @@
+require(['gitbook', 'jQuery'], function(gitbook, $) {
+  var TOGGLE_CLASSNAME = 'expanded',
+      CHAPTER = '.chapter',
+      ARTICLES = '.articles',
+      TRIGGER_TEMPLATE = '<i class="exc-trigger fa"></i>',
+      LS_NAMESPACE = 'expChapters';
+  var init = function () {
+    // adding the trigger element to each ARTICLES parent and binding the event
+    var chapterLink = $(ARTICLES).parent(CHAPTER).children('a');
+    chapterLink.append($(TRIGGER_TEMPLATE));
+    chapterLink.on('click', function (e) {
+      e.preventDefault();
+      //e.stopPropagation();
+      toggle($(e.target).closest(CHAPTER));
+    });  
+
+    expand(lsItem());
+    //expand current selected chapter with it's parents
+    collapse($(CHAPTER));
+    var activeChapter = $(CHAPTER + '.active');
+    expand(activeChapter);
+    expand(activeChapter.parents(CHAPTER));
+  } 
+  //on page.change will happend the function.
+
+  var toggle = function ($chapter) {
+    if ($chapter.hasClass('expanded')) {
+      collapse($chapter);
+    } else {
+      expand($chapter);
+      //$chapter.addClass('active').siblings().removeClass('active');
+    }
+  }
+  var collapse = function ($chapter) {
+    if ($chapter.length && $chapter.hasClass(TOGGLE_CLASSNAME)) {
+      $chapter.removeClass(TOGGLE_CLASSNAME);
+      lsItem($chapter);
+    }
+  }
+  var expand = function ($chapter) {
+    if ($chapter.length && !$chapter.hasClass(TOGGLE_CLASSNAME)) {
+      $chapter.addClass(TOGGLE_CLASSNAME);
+      lsItem($chapter);
+    }
+  }
+  var lsItem = function () {
+    var map = JSON.parse(localStorage.getItem(LS_NAMESPACE)) || {}
+    if (arguments.length) {
+      var $chapters = arguments[0];
+      $chapters.each(function (index, element) {
+        var level = $(this).data('level');
+        var value = $(this).hasClass(TOGGLE_CLASSNAME);
+        map[level] = value;
+      })
+      localStorage.setItem(LS_NAMESPACE, JSON.stringify(map));
+    } else {
+      return $(CHAPTER).map(function(index, element){
+        if (map[$(this).data('level')]) {
+          return this;
+        }
+      })
+    }
+  }
+  gitbook.events.bind('page.change', function() {
+    init()
+  }); 
+});

+ 0 - 90
_book/gitbook/gitbook-plugin-sharing/buttons.js

@@ -1,90 +0,0 @@
-require(['gitbook', 'jquery'], function(gitbook, $) {
-    var SITES = {
-        'facebook': {
-            'label': 'Facebook',
-            'icon': 'fa fa-facebook',
-            'onClick': function(e) {
-                e.preventDefault();
-                window.open('http://www.facebook.com/sharer/sharer.php?s=100&p[url]='+encodeURIComponent(location.href));
-            }
-        },
-        'twitter': {
-            'label': 'Twitter',
-            'icon': 'fa fa-twitter',
-            'onClick': function(e) {
-                e.preventDefault();
-                window.open('http://twitter.com/home?status='+encodeURIComponent(document.title+' '+location.href));
-            }
-        },
-        'google': {
-            'label': 'Google+',
-            'icon': 'fa fa-google-plus',
-            'onClick': function(e) {
-                e.preventDefault();
-                window.open('https://plus.google.com/share?url='+encodeURIComponent(location.href));
-            }
-        },
-        'weibo': {
-            'label': 'Weibo',
-            'icon': 'fa fa-weibo',
-            'onClick': function(e) {
-                e.preventDefault();
-                window.open('http://service.weibo.com/share/share.php?content=utf-8&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));
-            }
-        },
-        'instapaper': {
-            'label': 'Instapaper',
-            'icon': 'fa fa-instapaper',
-            'onClick': function(e) {
-                e.preventDefault();
-                window.open('http://www.instapaper.com/text?u='+encodeURIComponent(location.href));
-            }
-        },
-        'vk': {
-            'label': 'VK',
-            'icon': 'fa fa-vk',
-            'onClick': function(e) {
-                e.preventDefault();
-                window.open('http://vkontakte.ru/share.php?url='+encodeURIComponent(location.href));
-            }
-        }
-    };
-
-
-
-    gitbook.events.bind('start', function(e, config) {
-        var opts = config.sharing;
-
-        // Create dropdown menu
-        var menu = $.map(opts.all, function(id) {
-            var site = SITES[id];
-
-            return {
-                text: site.label,
-                onClick: site.onClick
-            };
-        });
-
-        // Create main button with dropdown
-        if (menu.length > 0) {
-            gitbook.toolbar.createButton({
-                icon: 'fa fa-share-alt',
-                label: 'Share',
-                position: 'right',
-                dropdown: [menu]
-            });
-        }
-
-        // Direct actions to share
-        $.each(SITES, function(sideId, site) {
-            if (!opts[sideId]) return;
-
-            gitbook.toolbar.createButton({
-                icon: site.icon,
-                label: site.text,
-                position: 'right',
-                onClick: site.onClick
-            });
-        });
-    });
-});

+ 20 - 5
_book/index.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="res/remove_publish.css">
+        
     
         
     
@@ -82,8 +88,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -389,7 +404,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"协作信息","level":"1.2","depth":1,"path":"info.md","ref":"info.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"README.md","mtime":"2022-03-23T07:14:35.655Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":".","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"协作信息","level":"1.2","depth":1,"path":"info.md","ref":"info.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"README.md","mtime":"2022-03-23T07:14:35.655Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":".","book":{"language":""}});
         });
     </script>
 </div>
@@ -399,6 +414,10 @@
     <script src="gitbook/theme.js"></script>
     
         
+        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -415,10 +434,6 @@
         
     
         
-        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

Fișier diff suprimat deoarece este prea mare
+ 15 - 0
_book/info.html


+ 7 - 0
_book/res/remove_publish.css

@@ -0,0 +1,7 @@
+.gitbook-link {
+    display: none !important;
+}
+
+li:nth-of-type(3) {
+    display: none !important;
+}

+ 20 - 5
_book/share/devops.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -381,7 +396,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"运维资料","level":"1.4.5","depth":2,"next":{"title":"开发工具","level":"1.5","depth":1,"path":"devtools.md","ref":"devtools.md","articles":[]},"previous":{"title":"前端相关资料","level":"1.4.4","depth":2,"path":"share/web.md","ref":"./share/web.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"share/devops.md","mtime":"2022-03-24T08:50:43.461Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"运维资料","level":"1.4.5","depth":2,"next":{"title":"开发工具","level":"1.5","depth":1,"path":"devtools.md","ref":"devtools.md","articles":[]},"previous":{"title":"前端相关资料","level":"1.4.4","depth":2,"path":"share/web.md","ref":"./share/web.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"share/devops.md","mtime":"2022-03-24T08:50:43.461Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -391,6 +406,10 @@
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -407,10 +426,6 @@
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

+ 20 - 5
_book/share/golang.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -427,7 +442,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"golang相关资料","level":"1.4.2","depth":2,"next":{"title":"前端基础","level":"1.4.3","depth":2,"path":"share/webbase.md","ref":"./share/webbase.md","articles":[]},"previous":{"title":"windows下nodejs和npm的安装","level":"1.4.1","depth":2,"path":"share/nodejs.md","ref":"./share/nodejs.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"share/golang.md","mtime":"2022-03-24T08:50:41.571Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"golang相关资料","level":"1.4.2","depth":2,"next":{"title":"前端基础","level":"1.4.3","depth":2,"path":"share/webbase.md","ref":"./share/webbase.md","articles":[]},"previous":{"title":"windows下nodejs和npm的安装","level":"1.4.1","depth":2,"path":"share/nodejs.md","ref":"./share/nodejs.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"share/golang.md","mtime":"2022-03-24T08:50:41.571Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -437,6 +452,10 @@
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -453,10 +472,6 @@
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

Fișier diff suprimat deoarece este prea mare
+ 15 - 0
_book/share/nodejs.html


+ 20 - 5
_book/share/share.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -430,7 +445,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"经验分享","level":"1.4","depth":1,"next":{"title":"windows下nodejs和npm的安装","level":"1.4.1","depth":2,"path":"share/nodejs.md","ref":"./share/nodejs.md","articles":[]},"previous":{"title":"运维规范","level":"1.3.4","depth":2,"path":"cooperation/devops.md","ref":"./cooperation/devops.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"share/share.md","mtime":"2022-03-24T08:50:46.223Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"经验分享","level":"1.4","depth":1,"next":{"title":"windows下nodejs和npm的安装","level":"1.4.1","depth":2,"path":"share/nodejs.md","ref":"./share/nodejs.md","articles":[]},"previous":{"title":"运维规范","level":"1.3.4","depth":2,"path":"cooperation/devops.md","ref":"./cooperation/devops.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"share/share.md","mtime":"2022-03-24T08:50:46.223Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -440,6 +455,10 @@
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -456,10 +475,6 @@
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

+ 20 - 5
_book/share/web.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -394,7 +409,7 @@
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"前端相关资料","level":"1.4.4","depth":2,"next":{"title":"运维资料","level":"1.4.5","depth":2,"path":"share/devops.md","ref":"./share/devops.md","articles":[]},"previous":{"title":"前端基础","level":"1.4.3","depth":2,"path":"share/webbase.md","ref":"./share/webbase.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"share/web.md","mtime":"2022-03-24T08:08:38.213Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"前端相关资料","level":"1.4.4","depth":2,"next":{"title":"运维资料","level":"1.4.5","depth":2,"path":"share/devops.md","ref":"./share/devops.md","articles":[]},"previous":{"title":"前端基础","level":"1.4.3","depth":2,"path":"share/webbase.md","ref":"./share/webbase.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"share/web.md","mtime":"2022-03-24T08:08:38.213Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -404,6 +419,10 @@
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -420,10 +439,6 @@
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

+ 20 - 5
_book/share/webbase.html

@@ -25,6 +25,10 @@
                 
             
                 
+                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
+                
+            
+                
                 <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                 
             
@@ -38,6 +42,8 @@
 
     
         
+        <link rel="stylesheet" href="../res/remove_publish.css">
+        
     
         
     
@@ -84,8 +90,17 @@
 <ul class="summary">
     
     
+    
+        
+        <li>
+            <a href="/index.html" target="_blank" class="custom-link">Home</a>
+        </li>
+    
+    
 
     
+    <li class="divider"></li>
+    
 
     
         
@@ -601,7 +616,7 @@ WebStorm &gt; Setting &gt; Tools &gt; File Watcher
     <script>
         var gitbook = gitbook || [];
         gitbook.push(function() {
-            gitbook.page.hasChanged({"page":{"title":"前端基础","level":"1.4.3","depth":2,"next":{"title":"前端相关资料","level":"1.4.4","depth":2,"path":"share/web.md","ref":"./share/web.md","articles":[]},"previous":{"title":"golang相关资料","level":"1.4.2","depth":2,"path":"share/golang.md","ref":"./share/golang.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["emphasize","-highlight","tbfed-pagefooter"],"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"}},"file":{"path":"share/webbase.md","mtime":"2022-03-24T08:03:24.296Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T09:39:16.300Z"},"basePath":"..","book":{"language":""}});
+            gitbook.page.hasChanged({"page":{"title":"前端基础","level":"1.4.3","depth":2,"next":{"title":"前端相关资料","level":"1.4.4","depth":2,"path":"share/web.md","ref":"./share/web.md","articles":[]},"previous":{"title":"golang相关资料","level":"1.4.2","depth":2,"path":"share/golang.md","ref":"./share/golang.md","articles":[]},"dir":"ltr"},"config":{"plugins":["emphasize","-highlight","tbfed-pagefooter","chapter-fold","-sharing"],"styles":{"website":"./res/remove_publish.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"jianyu360","modify_label":"修改时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"emphasize":{},"chapter-fold":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sidebar":{"Home":"/index.html"}},"gitbook":"*"},"file":{"path":"share/webbase.md","mtime":"2022-03-24T08:03:24.296Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-25T02:35:04.686Z"},"basePath":"..","book":{"language":""}});
         });
     </script>
 </div>
@@ -611,6 +626,10 @@ WebStorm &gt; Setting &gt; Tools &gt; File Watcher
     <script src="../gitbook/theme.js"></script>
     
         
+        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
+        
+    
+        
         <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
         
     
@@ -627,10 +646,6 @@ WebStorm &gt; Setting &gt; Tools &gt; File Watcher
         
     
         
-        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
-        
-    
-        
         <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
         
     

+ 10 - 2
book.json

@@ -4,12 +4,20 @@
         "ebook": "styles/ebook.css",
         "pdf": "styles/pdf.css",
         "mobi": "styles/mobi.css",
-        "epub": "styles/epub.css"
+        "epub": "styles/epub.css",
+	"website": "./res/remove_publish.css"
+     },
+    "links":{
+        "sidebar":{
+	  "Home":"/index.html"
+	}
      },
     "plugins": [
       "emphasize",
       "-highlight",
-      "tbfed-pagefooter"
+      "tbfed-pagefooter",
+      "chapter-fold",
+      "-sharing"
       ],
     "pluginsConfig": {
         "tbfed-pagefooter": {

+ 4 - 0
node_modules/gitbook-plugin-chapter-fold/.npmignore

@@ -0,0 +1,4 @@
+package.json
+README 
+CHANGELOG
+LICENSE / LICENCE

+ 39 - 0
node_modules/gitbook-plugin-chapter-fold/README.md

@@ -0,0 +1,39 @@
+#Chapter fold for GitBook
+==============
+
+Extended from the **expandable-chapters** plugin, and make a little modify. Thx for the original author.  
+Tiny change to the expandable-chapters plugin from https://github.com/DomainDrivenArchitecture/ to use smaller arrows.  
+
+### Anything Change?
+
+Modify the feature of the chapter links, make the links could be clicked to fold or expand their content.  
+And add a new feature in order to keep the last chapter which the user browses at last time.  
+
+### How to use it?
+
+Add it to your `book.json` configuration:
+
+```
+{
+    plugins: ["chapter-fold"]
+}
+```
+
+Install your plugins using:
+
+```
+$ gitbook install
+```
+
+### Configuration
+
+There is _no_ configuration needed at the moment, can be left empty.
+
+```
+{
+	"pluginsConfig": {
+		"chapter-fold":{}
+	}
+}
+```
+

+ 29 - 0
node_modules/gitbook-plugin-chapter-fold/book/chapter-fold.css

@@ -0,0 +1,29 @@
+.book .book-summary .chapter > .articles {
+	overflow: hidden;
+	max-height: 0px;
+}
+
+.book .book-summary .chapter.expanded > .articles {
+	max-height: 9999px;
+}
+
+.book .book-summary .exc-trigger {
+	position: absolute;
+  	left: 12px;
+  	top: 12px;
+}
+
+.book .book-summary ul.summary li a,
+.book .book-summary ul.summary li span {
+	padding-left: 30px;
+}
+
+.book .book-summary .exc-trigger:before {
+  	content: "\f105";
+}
+
+.book .book-summary .expanded > a .exc-trigger:before,
+.book .book-summary .expanded > span .exc-trigger:before {
+	content: "\f107";
+}
+

+ 67 - 0
node_modules/gitbook-plugin-chapter-fold/book/chapter-fold.js

@@ -0,0 +1,67 @@
+require(['gitbook', 'jQuery'], function(gitbook, $) {
+  var TOGGLE_CLASSNAME = 'expanded',
+      CHAPTER = '.chapter',
+      ARTICLES = '.articles',
+      TRIGGER_TEMPLATE = '<i class="exc-trigger fa"></i>',
+      LS_NAMESPACE = 'expChapters';
+  var init = function () {
+    // adding the trigger element to each ARTICLES parent and binding the event
+    var chapterLink = $(ARTICLES).parent(CHAPTER).children('a');
+    chapterLink.append($(TRIGGER_TEMPLATE));
+    chapterLink.on('click', function (e) {
+      e.preventDefault();
+      //e.stopPropagation();
+      toggle($(e.target).closest(CHAPTER));
+    });  
+
+    expand(lsItem());
+    //expand current selected chapter with it's parents
+    collapse($(CHAPTER));
+    var activeChapter = $(CHAPTER + '.active');
+    expand(activeChapter);
+    expand(activeChapter.parents(CHAPTER));
+  } 
+  //on page.change will happend the function.
+
+  var toggle = function ($chapter) {
+    if ($chapter.hasClass('expanded')) {
+      collapse($chapter);
+    } else {
+      expand($chapter);
+      //$chapter.addClass('active').siblings().removeClass('active');
+    }
+  }
+  var collapse = function ($chapter) {
+    if ($chapter.length && $chapter.hasClass(TOGGLE_CLASSNAME)) {
+      $chapter.removeClass(TOGGLE_CLASSNAME);
+      lsItem($chapter);
+    }
+  }
+  var expand = function ($chapter) {
+    if ($chapter.length && !$chapter.hasClass(TOGGLE_CLASSNAME)) {
+      $chapter.addClass(TOGGLE_CLASSNAME);
+      lsItem($chapter);
+    }
+  }
+  var lsItem = function () {
+    var map = JSON.parse(localStorage.getItem(LS_NAMESPACE)) || {}
+    if (arguments.length) {
+      var $chapters = arguments[0];
+      $chapters.each(function (index, element) {
+        var level = $(this).data('level');
+        var value = $(this).hasClass(TOGGLE_CLASSNAME);
+        map[level] = value;
+      })
+      localStorage.setItem(LS_NAMESPACE, JSON.stringify(map));
+    } else {
+      return $(CHAPTER).map(function(index, element){
+        if (map[$(this).data('level')]) {
+          return this;
+        }
+      })
+    }
+  }
+  gitbook.events.bind('page.change', function() {
+    init()
+  }); 
+});

+ 12 - 0
node_modules/gitbook-plugin-chapter-fold/index.js

@@ -0,0 +1,12 @@
+module.exports = {
+    // Extend website resources and html
+    website: {
+        assets: "./book",
+        js: [
+            "chapter-fold.js"
+        ],
+        css: [
+            "chapter-fold.css"
+        ]
+    }
+};

+ 85 - 0
node_modules/gitbook-plugin-chapter-fold/package.json

@@ -0,0 +1,85 @@
+{
+  "_args": [
+    [
+      {
+        "name": "gitbook-plugin-chapter-fold",
+        "raw": "gitbook-plugin-chapter-fold@0.0.4",
+        "rawSpec": "0.0.4",
+        "scope": null,
+        "spec": "0.0.4",
+        "type": "version"
+      },
+      "D:\\project\\BaseService\\docCentor"
+    ]
+  ],
+  "_from": "gitbook-plugin-chapter-fold@0.0.4",
+  "_id": "gitbook-plugin-chapter-fold@0.0.4",
+  "_inCache": true,
+  "_installable": true,
+  "_location": "/gitbook-plugin-chapter-fold",
+  "_nodeVersion": "8.9.4",
+  "_npmOperationalInternal": {
+    "host": "s3://npm-registry-packages",
+    "tmp": "tmp/gitbook-plugin-chapter-fold_0.0.4_1529402331863_0.19505579298587006"
+  },
+  "_npmUser": {
+    "email": "crazypad@qq.com",
+    "name": "coco9420"
+  },
+  "_npmVersion": "4.6.1",
+  "_phantomChildren": {},
+  "_requested": {
+    "name": "gitbook-plugin-chapter-fold",
+    "raw": "gitbook-plugin-chapter-fold@0.0.4",
+    "rawSpec": "0.0.4",
+    "scope": null,
+    "spec": "0.0.4",
+    "type": "version"
+  },
+  "_requiredBy": [
+    "#USER"
+  ],
+  "_resolved": "https://registry.npmjs.org/gitbook-plugin-chapter-fold/-/gitbook-plugin-chapter-fold-0.0.4.tgz",
+  "_shasum": "dcd5a21f80bcbc98c088419774c397ae6d4463ef",
+  "_shrinkwrap": null,
+  "_spec": "gitbook-plugin-chapter-fold@0.0.4",
+  "_where": "D:\\project\\BaseService\\docCentor",
+  "author": {
+    "name": "Colin"
+  },
+  "bugs": {
+    "url": "https://github.com/ColinCollins/gitbook-plugin-chapter-fold/issues"
+  },
+  "dependencies": {},
+  "description": "This is the fold plugin, extended from the expandable chapter plugin.",
+  "devDependencies": {},
+  "directories": {},
+  "dist": {
+    "fileCount": 6,
+    "shasum": "dcd5a21f80bcbc98c088419774c397ae6d4463ef",
+    "tarball": "https://registry.npmjs.org/gitbook-plugin-chapter-fold/-/gitbook-plugin-chapter-fold-0.0.4.tgz",
+    "unpackedSize": 4555
+  },
+  "engines": {
+    "gitbook": ">=1.0.0"
+  },
+  "gitHead": "523aa84802ccbeabfae13d66c3dda66b4961b72f",
+  "homepage": "https://github.com/ColinCollins/gitbook-plugin-chapter-fold",
+  "license": "Apache 2",
+  "main": "index.js",
+  "maintainers": [
+    {
+      "email": "crazypad@qq.com",
+      "name": "coco9420"
+    }
+  ],
+  "name": "gitbook-plugin-chapter-fold",
+  "optionalDependencies": {},
+  "readme": "ERROR: No README data found!",
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/ColinCollins/gitbook-plugin-chapter-fold.git"
+  },
+  "scripts": {},
+  "version": "0.0.4"
+}

+ 7 - 0
res/remove_publish.css

@@ -0,0 +1,7 @@
+.gitbook-link {
+    display: none !important;
+}
+
+li:nth-of-type(3) {
+    display: none !important;
+}

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff