Bläddra i källkod

添加部分笔记

seamong 7 år sedan
förälder
incheckning
b2ae5290c6

+ 4 - 0
README.md

@@ -0,0 +1,4 @@
+#介绍
+项目模板地址:[gitbook](https://github.com/GitbookIO/gitbook)
+
+本文档参考了gitbook官方的`GitBook Toolchain Documentation`,因为该文档的`theme`和`plugins`搭配的很合理,就拿来用作个人知识载体的基石.

+ 20 - 9
book.js

@@ -1,23 +1,34 @@
-var pkg = require('./package.json');
+var pkg = require("./package.json");
 
 module.exports = {
     // Documentation for GitBook is stored under "docs"
-    root: './doc/',
-    title: '代码收集',
+    root: "./doc/",
+    title: "代码收集",
 
     // Enforce use of GitBook v3
-    gitbook: '3.1.1',
+    gitbook: "3.1.1",
 
     // Use the "official" theme
-    plugins: ['theme-official@2.1.1', '-sharing', '-fontsettings', 'sitemap'],
+    plugins: [
+        "theme-official@2.1.1",
+        "-sharing",
+        "-fontsettings",
+        "sitemap",
+        "-search",
+        "search-pro",
+    ],
 
     variables: {
-        version: pkg.version
+        version: pkg.version,
     },
 
     pluginsConfig: {
         sitemap: {
-            hostname: 'https://toolchain.gitbook.com'
-        }
-    }
+            hostname: "https://toolchain.gitbook.com",
+        },
+        "search-pro": {
+            cutWordLib: "nodejieba",
+            defineWord: ["小需求", "基础建设"],
+        },
+    },
 };

+ 0 - 2
doc/FAQ/faq.md

@@ -1,2 +0,0 @@
-# FAQ
-

+ 0 - 2
doc/Getting/README.md

@@ -1,2 +0,0 @@
-# About this documentation
-

+ 0 - 2
doc/Getting/setup.md

@@ -1,2 +0,0 @@
-# Installation and Setup
-

+ 2 - 0
doc/JavaScript/data_type.md

@@ -0,0 +1,2 @@
+# 数据类型
+

+ 2 - 0
doc/JavaScript/demo/README.md

@@ -0,0 +1,2 @@
+# 案例
+

+ 3 - 2
doc/README.md

@@ -1,3 +1,4 @@
-# Introduction
+#介绍
+项目模板地址:[gitbook](https://github.com/GitbookIO/gitbook)
 
-参考项目地址:[gitbook](https://github.com/GitbookIO/gitbook)
+本文档参考了gitbook官方的`GitBook Toolchain Documentation`,因为该文档的`theme`和`plugins`搭配的很合理,就拿来用作个人知识载体的基石.

+ 25 - 8
doc/SUMMARY.md

@@ -1,14 +1,31 @@
 # Summary
 
-## Getting Started
-* [About this documentation](README.md)
-* [Installation and Setup](setup/setup.md)
+## 介绍
+* [关于本文档](../README.md)
 
-## Getting
-* [About this documentation](Getting/README.md)
-* [Installation and Setup](Getting/setup.md)
+## JavaScript
+* [案例](JavaScript/demo/README.md)
+* [数据类型](JavaScript/data_type.md)
+
+## vue
+* [router](vue/router/README.md)
+    * [路由懒加载](vue/router/lazy_loading.md)
+
+## ubuntu
+* [服务器生存指南](ubuntu/serves/README.md)
+    * [ftp 之路](ubuntu/serves/0_ftp.md)
+    * [nginx 之路](ubuntu/serves/1_nginx.md)
+    * [mysql 之路](ubuntu/serves/2_mysql.md)
+    * [mysql 之路指令](ubuntu/serves/2_mysql.md#指令合集)
+    * [WordPress 之路](ubuntu/serves/3_WordPress.md)
+    * [GRUN 之路](ubuntu/serves/4_GRUN.md)
+    * [L2TP Client 之路](ubuntu/serves/5_L2TP_Client.md)
+* [常用指令](ubuntu/instruction.md)
+
+## GIT
+* [git 命令](./git/git.md)
 
 -----
-* [FAQ](FAQ/faq.md)
-* [Examples](Examples/examples.md)
+* [FAQ](other/faq.md)
+* [Examples](other/examples.md)
 

+ 5 - 5
doc/_layouts/website/page.html

@@ -1,13 +1,13 @@
 {% extends template.self %}
 
 {% block header_nav %}
-<a href="https://github.com/GitbookIO/gitbook/blob/master/docs/{{ file.path }}" target="_blank" class="btn btn-link pull-right hidden-xs">
-    <i class="octicon octicon-mark-github"></i> Edit on GitHub
+<a href="https://github.com/seamong/myBlogs/blob/master/doc/{{ file.path }}" target="_blank" class="btn btn-link pull-right hidden-xs">
+    <i class="octicon octicon-mark-github"></i> 在GitHub编辑本页
 </a>
 <a href="{{ "faq.md"|resolveFile }}" class="btn btn-link pull-right hidden-xs">
     F.A.Q
 </a>
-<a href="https://github.com/GitbookIO/gitbook/blob/master/CHANGES.md" target="_blank" class="btn btn-link pull-right hidden-xs">
+<a href="https://github.com/seamong/myBlogs/README.md" target="_blank" class="btn btn-link pull-right hidden-xs">
     {{ book.version }}
 </a>
 {% endblock %}
@@ -17,10 +17,10 @@
 <hr>
 <div class="btn-group btn-group-justified">
     {% if page.previous and page.previous.path %}
-    <a class="btn" href="{{ page.previous.path|resolveFile }}"><b>Previous:</b> {{ page.previous.title }}</a>
+    <a class="btn" href="{{ page.previous.path|resolveFile }}"><b>上一页:</b> {{ page.previous.title }}</a>
     {% endif %}
     {% if page.next and page.next.path %}
-    <a class="btn" href="{{ page.next.path|resolveFile }}"><b>Next:</b> {{ page.next.title }}</a>
+    <a class="btn" href="{{ page.next.path|resolveFile }}"><b>下一页:</b> {{ page.next.title }}</a>
     {% endif %}
 </div>
 {% endblock %}

+ 39 - 0
doc/git/git.md

@@ -0,0 +1,39 @@
+# git命令
+
+ 添加远程仓库
+```bash
+git remote add origin git@github.com:seamong/gitbook
+```
+ 本地创建远程分支
+```bash
+git push origin <本地分支>:<远程分支>
+```
+ 本地删除远程分支
+```bash
+git push origin :<远程分支>
+```
+ 本地分支绑定远程分支
+```bash
+git branch --set-upstream-to=origin/<远程分支> <本地分支>
+```
+ 创建本地分支
+```bash
+git checkout -b <本地分支>
+```
+ 删除本地分支
+```bash
+git branch -D <本地分支>
+```
+配置ssh
+```bash
+ssh-keygen -t rsa -b 4096 -C "****@****.****"
+```
+添加远程仓库
+```bash
+git remote add origin https://github.com/**/**.git
+git push -u origin master
+```
+回退一次版本(强制)
+```
+git reset --hard HEAD^
+```

+ 0 - 0
doc/Examples/examples.md → doc/other/examples.md


+ 1 - 0
doc/other/faq.md

@@ -0,0 +1 @@
+# F.A.Q

+ 0 - 2
doc/setup/setup.md

@@ -1,2 +0,0 @@
-# Installation and Setup
-

+ 10 - 0
doc/ubuntu/instruction.md

@@ -0,0 +1,10 @@
+# 常用指令
+
+### linux修改文件所属用户和组
+#### 使用`chown`命令可以修改文件或目录所属的用户:
+* 命令:`chown` 用户 目录或文件名
+* 例如:`chown qq /home/qq`  (把home目录下的qq目录的拥有者改为qq用户)
+
+#### 使用`chgrp`命令可以修改文件或目录所属的组:
+* 命令:`chgrp` 组 目录或文件名
+* 例如:`chgrp qq /home/qq`  (把home目录下的qq目录的所属组改为qq组)

+ 70 - 0
doc/ubuntu/serves/0_ftp.md

@@ -0,0 +1,70 @@
+### 安装vsftp
+```
+sudo apt-get update
+sudo apt-get install vsftpd
+```
+### 创建ftp文件夹
+```
+sudo mkdir  *ftp文件夹*
+```
+### 更改文件夹权限
+```
+sudo  chmod -R 777 *ftp文件夹*
+```
+### 创建FTP用户
+```
+# 创建用户并指定目录
+sudo useradd -d *ftp文件夹*/ 用户名
+# 设置ftp用户的密码
+sudo passwd ftp用户名
+```
+### 设置相关配置
+```
+sudo vim /etc/vsftpd.conf
+
+# 添加如下内容
+userlist_deny=NO
+userlist_enable=YES
+# 允许登录的用户
+userlist_file=/etc/allowed_users
+seccomp_sandbox=NO
+# 允许访问的文件夹
+local_root=*ftp文件夹*
+local_enable=YES
+write_enable=YES
+# 使用utf8
+utf8_filesystem=YES
+```
+### 修改 /etc/pam.d/vsftpd
+```
+sudo vim /etc/pam.d/vsftpd
+# 在auth required pam_shells.so前加#
+```
+### 操作命令
+```
+# 启动停止重启服务
+sudo /etc/init.d/vsftpd start
+sudo /etc/init.d/vsftpd stop
+sudo /etc/init.d/vsftpd restart
+# 查看服务状态
+service vsftpd status
+```
+### 访问ftp服务器
+```
+# bash 访问
+sudo ftp 127.0.0.1
+# 浏览器访问
+ftp://127.0.0.1
+# 或者
+ftp//localhost  
+```
+#### 注意点
+> 1.服务器需要设置安全策略组权限
+> 2.ftp文件夹注意设置权限
+
+
+
+
+##### 参考
+[最简单靠谱的vsftpd安装指南(Ubuntu16.04)](http://www.jianshu.com/p/b66066a70cd4)<br/>
+[Ubuntu 16.04 安装ftp服务器传输文件](http://www.cnblogs.com/xuanxufeng/p/6235494.html)

+ 41 - 0
doc/ubuntu/serves/1_nginx.md

@@ -0,0 +1,41 @@
+### 说明
+> 安装nginx,是为了方便安装wordpress;
+> 所以在安装过程中,将nginx的站点路径设置指向wordPress所在目录。
+
+### 安装nginx
+```
+sudo apt-get install nginx
+```
+### 配置nginx
+```
+# 进入编辑模式
+sudo vim /etc/nginx/sites-available/default
+# 将default中内容改为以下内容
+  # include snippets/snakeoil.conf;
+  root /var/www/html;
+  # Add index.php to the list if you are using PHP
+  # index index.html index.htm index.nginx-debian.html;
+   index index.php
+   location ~ \.php$ {
+      include snippets/fastcgi-php.conf;
+      #
+      #       # With php7.0-cgi alone:
+      #       fastcgi_pass 127.0.0.1:9000;
+      #       # With php7.0-fpm:
+      fastcgi_pass unix:/run/php/php7.0-fpm.sock;
+    }
+# 保存退出
+```
+### 运行nginx
+```
+# 配置快捷启动方式
+sudo vim /etc/init.d/nginx //创建启动脚本
+sudo chmod a+x /etc/init.d/nginx //增加执行权限
+# 启动-停止-重启
+sudo /etc/init.d/nginx start //启动
+sudo /etc/init.d/nginx stop //停止
+sudo /etc/init.d/nginx restart //重启
+```
+
+#### 参考文章
+[Ubuntu下Nginx安装](http://www.jianshu.com/p/7cb1a824333e)

+ 44 - 0
doc/ubuntu/serves/2_mysql.md

@@ -0,0 +1,44 @@
+### 安装mysql
+```
+# 检查系统是否已经安装mysql
+which mysql  # /user/bin/mysql
+# 安装mysql # 安装时根据安装提示设置相关mysql
+sudo apt-get install mysql-server mysql-client
+# 测试是否安装成功
+sudo netstat -tap | grep mysql
+# 登录mysql
+mysql -u root -p
+# 设置密码
+mysqladmin -u root password "new_password";
+```
+### 登录
+```
+mysql -u 用户名 -p
+Enter password: 输入密码
+```
+### 操控数据库
+```
+以下命令需要登录mysql之后,才能执行
+# 显示所有数据库
+show databases;
++--------------------+
+| Database           |
++--------------------+
+| information_schema |
+| WP                 |
+| mysql              |
+| performance_schema |
+| sys                |
++--------------------+
+5 rows in set (0.00 sec)
+
+# 创建数据库
+create database 数据库名
+# 删除数据库
+drop database 数据库名
+```
+### 参考
+> [MySQL 教程](http://www.runoob.com/mysql/mysql-tutorial.html)
+>[Ubuntu 16.04 mysql安装配置](http://www.jianshu.com/p/3111290b87f4) 
+
+#指令合集

+ 10 - 0
doc/ubuntu/serves/3_WordPress.md

@@ -0,0 +1,10 @@
+# WordPress之路
+
+> [安装mysql](./mysql配置.md)<br/>
+> [安装ftp](./ftp配置.md)<br/>
+> [安装nginx](./nginx配置.md)<br/>
+>[ubuntu 16.04 LTS下php环境配置](https://segmentfault.com/a/1190000005786808)
+
+接下来开始WP的安装了
+首先下载源代码
+wget https://cn.wordpress.org/wordpress-4.8.1-zh_CN.tar.gz

+ 64 - 0
doc/ubuntu/serves/4_GRUN.md

@@ -0,0 +1,64 @@
+# GRUN之路
+
+编辑
+```bash
+#进入GRUN
+sudo vim /etc/default/grub
+# 在文件中。将相关内容设置为如下内容
+GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
+GRUB_CMDLINE_LINUX="acpi=off"
+```
+保存修改&配置到系统
+```
+sudo update-grup
+```
+apci=off
+> 禁用部分设备硬件,提高系统响应速度。特别是使用HHD作为系统盘的情况下。效果显著
+
+nomodeset
+> 最新的内核已经把视频模式设置嵌入内核中,所以所有显卡硬件程序的指定时钟和寄存器当图形服务器启动时在内核进行而不是图形设备运行,这使得我们在启动时可以看到不闪的和高分辨率的好看的启动界面,但是,在某些视频卡它不能正常工作而现实黑屏,增加nomodeset参数则告诉内核不要加载显卡而用BIOS模式直到图形界面运行<hr/>
+The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.
+
+quiet
+> 内核启动时候简化提示信息
+
+splash
+> 启动的时候使用图形化的进度条代替init的字符输出过程
+
+详细代码
+```bash
+# If you change this file, run 'update-grub' afterwards to update
+# /boot/grub/grub.cfg.
+# For full documentation of the options in this file, see:
+#   info -f grub -n 'Simple configuration'
+
+GRUB_DEFAULT=0
+GRUB_HIDDEN_TIMEOUT=0
+GRUB_HIDDEN_TIMEOUT_QUIET=true
+GRUB_TIMEOUT=10
+GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
+GRUB_CMDLINE_LINUX_DEFAULT="quiet"
+GRUB_CMDLINE_LINUX="acpi=on"
+
+# Uncomment to enable BadRAM filtering, modify to suit your needs
+# This works with Linux (no patch required) and with any kernel that obtains
+# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
+#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal
+# note that you can use only modes which your graphic card supports via VBE
+# you can see them in real GRUB with the command `vbeinfo'
+#GRUB_GFXMODE=640x480
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Uncomment to disable generation of recovery mode menu entries
+#GRUB_DISABLE_RECOVERY="true"
+
+# Uncomment to get a beep at grub start
+#GRUB_INIT_TUNE="480 440 1"
+```

+ 21 - 0
doc/ubuntu/serves/5_L2TP_Client.md

@@ -0,0 +1,21 @@
+# L2TP Client之路
+
+### 添加源
+```bash
+sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
+```
+### 更新缓存
+```bash
+sudo apt-get update
+```
+### 安装network-manager-l2tp
+```bash
+sudo apt install network-manager-l2tp
+```
+### 安装UI
+```bash
+sudo apt install network-manager-l2tp-gnome
+```
+### 配置
+配置网关:***,***,***,***<br/>
+设置用户名: ***

+ 2 - 0
doc/ubuntu/serves/README.md

@@ -0,0 +1,2 @@
+# 服务器生存指南
+

+ 2 - 0
doc/vue/router/README.md

@@ -0,0 +1,2 @@
+# router
+#路由懒加载

+ 3 - 0
doc/vue/router/lazy_loading.md

@@ -0,0 +1,3 @@
+# 路由懒加载
+
+loading

+ 451 - 0
index.html

@@ -0,0 +1,451 @@
+
+<!DOCTYPE HTML>
+<html lang="" >
+    <head>
+        <meta charset="UTF-8">
+        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
+        <title>关于本文档 · 代码收集</title>
+        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+        <meta name="description" content="">
+        <meta name="generator" content="GitBook 3.1.1">
+        
+        
+        
+    
+    <link rel="stylesheet" href="blogs/gitbook/style.css">
+
+    
+            
+                
+                <link rel="stylesheet" href="blogs/gitbook/gitbook-plugin-search-pro/search.css">
+                
+            
+                
+                <link rel="stylesheet" href="blogs/gitbook/gitbook-plugin-highlight/website.css">
+                
+            
+        
+
+    
+
+    
+        
+    
+        
+    
+        
+    
+        
+    
+        
+    
+        
+    
+
+        
+    
+    
+    <meta name="HandheldFriendly" content="true"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="blogs/gitbook/images/apple-touch-icon-precomposed-152.png">
+    <link rel="shortcut icon" href="blogs/gitbook/images/favicon.ico" type="image/x-icon">
+
+
+    
+    <link rel="next" href="blogs/JavaScript/demo/" />
+    
+    
+    <link rel="prev" href="blogs/" />
+    
+
+    </head>
+    <body>
+        
+<div class="gb-page-wrapper">
+    <header class="gb-page-header">
+        <div class="container">
+        
+            
+<div id="book-search-input" role="search">
+    <input type="text" placeholder="Type to search" />
+</div>
+
+
+            <a href="blogs" class="logo">
+                <img src="blogs/gitbook/images/logo/128.png">
+                <h1>代码收集</h1>
+            </a>
+
+            
+
+            
+<a href="https://github.com/seamong/myBlogs/blob/master/doc/../README.md" target="_blank" class="btn btn-link pull-right hidden-xs">
+    <i class="octicon octicon-mark-github"></i> 在GitHub编辑本页
+</a>
+<a href="blogs/faq.md" class="btn btn-link pull-right hidden-xs">
+    F.A.Q
+</a>
+<a href="https://github.com/seamong/myBlogs/README.md" target="_blank" class="btn btn-link pull-right hidden-xs">
+    1.0.0
+</a>
+
+        
+        </div>
+    </header>
+
+    <div class="gb-page-body">
+        <div class="gb-page-inner">
+            <div class="container">
+                <div class="row">
+                    <div class="col-md-3">
+                        
+
+
+
+    
+    <div class="panel panel-default">
+        
+        <div class="panel-heading">
+            <h3 class="panel-title">介绍</h3>
+        </div>
+        
+
+        <div class="list-group">
+            
+    
+        
+        <a href="blogs/" class="list-group-item ">
+        
+
+            
+
+            
+
+            Introduction
+
+        
+        </a>
+        
+
+        
+    
+        
+        <a href="./" class="list-group-item active">
+        
+
+            
+
+            
+
+            关于本文档
+
+        
+        </a>
+        
+
+        
+    
+
+        </div>
+    </div>
+    
+    <div class="panel panel-default">
+        
+        <div class="panel-heading">
+            <h3 class="panel-title">JavaScript</h3>
+        </div>
+        
+
+        <div class="list-group">
+            
+    
+        
+        <a href="blogs/JavaScript/demo/" class="list-group-item ">
+        
+
+            
+
+            
+
+            案例
+
+        
+        </a>
+        
+
+        
+    
+        
+        <a href="blogs/JavaScript/data_type.html" class="list-group-item ">
+        
+
+            
+
+            
+
+            数据类型
+
+        
+        </a>
+        
+
+        
+    
+
+        </div>
+    </div>
+    
+    <div class="panel panel-default">
+        
+        <div class="panel-heading">
+            <h3 class="panel-title">vue</h3>
+        </div>
+        
+
+        <div class="list-group">
+            
+    
+        
+        <a href="blogs/vue/router/" class="list-group-item ">
+        
+
+            
+
+            
+            <i class="octicon octicon-chevron-right"></i>
+            
+
+            router
+
+        
+        </a>
+        
+
+        
+    
+
+        </div>
+    </div>
+    
+    <div class="panel panel-default">
+        
+        <div class="panel-heading">
+            <h3 class="panel-title">ubuntu</h3>
+        </div>
+        
+
+        <div class="list-group">
+            
+    
+        
+        <a href="blogs/ubuntu/serves/" class="list-group-item ">
+        
+
+            
+
+            
+            <i class="octicon octicon-chevron-right"></i>
+            
+
+            服务器生存指南
+
+        
+        </a>
+        
+
+        
+    
+        
+        <a href="blogs/ubuntu/instruction.html" class="list-group-item ">
+        
+
+            
+
+            
+
+            常用指令
+
+        
+        </a>
+        
+
+        
+    
+
+        </div>
+    </div>
+    
+    <div class="panel panel-default">
+        
+        <div class="panel-heading">
+            <h3 class="panel-title">GIT</h3>
+        </div>
+        
+
+        <div class="list-group">
+            
+    
+        
+        <a href="blogs/git/git.html" class="list-group-item ">
+        
+
+            
+
+            
+
+            git 命令
+
+        
+        </a>
+        
+
+        
+    
+
+        </div>
+    </div>
+    
+    <div class="panel panel-default">
+        
+
+        <div class="list-group">
+            
+    
+        
+        <a href="blogs/other/faq.html" class="list-group-item ">
+        
+
+            
+
+            
+
+            FAQ
+
+        
+        </a>
+        
+
+        
+    
+        
+        <a href="blogs/other/examples.html" class="list-group-item ">
+        
+
+            
+
+            
+
+            Examples
+
+        
+        </a>
+        
+
+        
+    
+
+        </div>
+    </div>
+    
+
+
+
+                    </div>
+                    <div class="col-md-9">
+                        
+<div id="book-search-results">
+    <div class="search-noresults">
+    
+                            
+
+                            <div class="gb-markdown book-page-inner">
+                                <h1 id="&#x4ECB;&#x7ECD;">&#x4ECB;&#x7ECD;</h1>
+<p>&#x9879;&#x76EE;&#x6A21;&#x677F;&#x5730;&#x5740;:<a href="https://github.com/GitbookIO/gitbook" target="_blank">gitbook</a></p>
+<p>&#x672C;&#x6587;&#x6863;&#x53C2;&#x8003;&#x4E86;gitbook&#x5B98;&#x65B9;&#x7684;<code>GitBook Toolchain Documentation</code>,&#x56E0;&#x4E3A;&#x8BE5;&#x6587;&#x6863;&#x7684;<code>theme</code>&#x548C;<code>plugins</code>&#x642D;&#x914D;&#x7684;&#x5F88;&#x5408;&#x7406;,&#x5C31;&#x62FF;&#x6765;&#x7528;&#x4F5C;&#x4E2A;&#x4EBA;&#x77E5;&#x8BC6;&#x8F7D;&#x4F53;&#x7684;&#x57FA;&#x77F3;.</p>
+
+                            </div>
+                            
+<hr>
+<div class="btn-group btn-group-justified">
+    
+    <a class="btn" href="blogs/"><b>上一页:</b> Introduction</a>
+    
+    
+    <a class="btn" href="blogs/JavaScript/demo/"><b>下一页:</b> 案例</a>
+    
+</div>
+
+                        
+    </div>
+    <div class="search-results">
+        <div class="has-results">
+            
+            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
+            <ul class="search-results-list"></ul>
+            
+        </div>
+        <div class="no-results">
+            
+            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
+            
+        </div>
+    </div>
+</div>
+
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+
+    <footer class="gb-page-footer">
+        <div class="container">
+            <ul class="menu">
+                <li class="pull-right">
+                    <span class="service-info">Copyright GitBook 2018</span>
+                </li>
+                <li>
+                    <a href="#">Return to the top</a>
+                </li>
+                <li>
+                    <a href="#">Updated May 30th 18</a>
+                </li>
+            </ul>
+        </div>
+    </footer>
+</div>
+
+<script src="blogs/gitbook/gitbook.js"></script>
+
+    
+    <script src="blogs/gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
+    
+
+    
+    <script src="blogs/gitbook/gitbook-plugin-search-pro/search.js"></script>
+    
+
+    
+    <script src="blogs/gitbook/gitbook-plugin-livereload/plugin.js"></script>
+    
+
+    
+    <script src="blogs/gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
+    
+
+    
+    <script src="blogs/gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
+    
+
+<script>
+(function() {
+    gitbook.page.hasChanged({"page":{"title":"关于本文档","level":"1.2","depth":1,"next":{"title":"案例","level":"2.1","depth":1,"path":"JavaScript/demo/README.md","ref":"JavaScript/demo/README.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-official@2.1.1","-sharing","-fontsettings","sitemap","-search","search-pro","livereload"],"root":"./doc/","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"},"pluginsConfig":{"sitemap":{"hostname":"https://toolchain.gitbook.com"},"search-pro":{"cutWordLib":"nodejieba","defineWord":["小需求","基础建设"]},"livereload":{},"highlight":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-official":{},"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":{"version":"1.0.0"},"title":"代码收集","gitbook":"3.1.1"},"file":{"path":"../README.md","mtime":"2018-05-30T06:33:38.105Z","type":"markdown"},"gitbook":{"version":"3.1.1","time":"2018-05-30T06:34:08.869Z"},"basePath":"blogs","book":{"language":""}});
+})();
+</script>
+
+        
+    </body>
+</html>
+

+ 8 - 2
package.json

@@ -4,8 +4,14 @@
   "description": "",
   "main": "book.js",
   "dependencies": {
-    "gitbook-plugin-sitemap": "^1.2.0",
-    "gitbook-plugin-theme-official": "^2.1.1"
+    "gitbook-plugin-fontsettings": "2.0.0",
+    "gitbook-plugin-highlight": "2.0.2",
+    "gitbook-plugin-livereload": "0.0.1",
+    "gitbook-plugin-lunr": "1.2.0",
+    "gitbook-plugin-search": "2.2.1",
+    "gitbook-plugin-search-pro": "^2.0.2",
+    "gitbook-plugin-sharing": "1.0.2",
+    "gitbook-plugin-theme-default": "1.0.7"
   },
   "devDependencies": {},
   "scripts": {

+ 61 - 0
yarn.lock

@@ -0,0 +1,61 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+gitbook-plugin-fontsettings@2.0.0:
+  version "2.0.0"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-fontsettings/download/gitbook-plugin-fontsettings-2.0.0.tgz#835f900ae3dd111086fe7ed4425ee3de024861ab"
+
+gitbook-plugin-highlight@2.0.2:
+  version "2.0.2"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-highlight/download/gitbook-plugin-highlight-2.0.2.tgz#02650720ab594c799b9451785960fe417cad8046"
+  dependencies:
+    highlight.js "9.2.0"
+
+gitbook-plugin-livereload@0.0.1:
+  version "0.0.1"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-livereload/download/gitbook-plugin-livereload-0.0.1.tgz#c0c9dc6f55f82fc24f97532b25287abbbb416b96"
+
+gitbook-plugin-lunr@1.2.0:
+  version "1.2.0"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-lunr/download/gitbook-plugin-lunr-1.2.0.tgz#f3e80ec76512fbdb75eb0524aa82b8dff12a50ab"
+  dependencies:
+    gitbook-plugin-search "*"
+    html-entities "1.2.0"
+    lunr "0.5.12"
+
+gitbook-plugin-search-pro@^2.0.2:
+  version "2.0.2"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-search-pro/download/gitbook-plugin-search-pro-2.0.2.tgz#7ce76e8f65c2044489b9c692736b23f81fe6a1f2"
+  dependencies:
+    html-entities "1.2.0"
+
+gitbook-plugin-search@*, gitbook-plugin-search@2.2.1:
+  version "2.2.1"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-search/download/gitbook-plugin-search-2.2.1.tgz#6d25b5a776990fa98fdfdfa37de331f78e0f6b13"
+
+gitbook-plugin-sharing@1.0.2:
+  version "1.0.2"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-sharing/download/gitbook-plugin-sharing-1.0.2.tgz#532b3af96fafba977ad3c047122642f1eeac6e81"
+  dependencies:
+    lodash "^3.10.1"
+
+gitbook-plugin-theme-default@1.0.7:
+  version "1.0.7"
+  resolved "http://registry.npm.taobao.org/gitbook-plugin-theme-default/download/gitbook-plugin-theme-default-1.0.7.tgz#51f71fbca74a261054e9e9d141c42167afefce88"
+
+highlight.js@9.2.0:
+  version "9.2.0"
+  resolved "http://registry.npm.taobao.org/highlight.js/download/highlight.js-9.2.0.tgz#0d4ef61279c4067da55edf8976f1b9f28f69f202"
+
+html-entities@1.2.0:
+  version "1.2.0"
+  resolved "http://registry.npm.taobao.org/html-entities/download/html-entities-1.2.0.tgz#41948caf85ce82fed36e4e6a0ed371a6664379e2"
+
+lodash@^3.10.1:
+  version "3.10.1"
+  resolved "http://registry.npm.taobao.org/lodash/download/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
+
+lunr@0.5.12:
+  version "0.5.12"
+  resolved "http://registry.npm.taobao.org/lunr/download/lunr-0.5.12.tgz#a2f6b7d7801cbe2ccb1696da67f1f7788f89e0c8"