{"id":208,"date":"2018-03-05T22:38:42","date_gmt":"2018-03-05T14:38:42","guid":{"rendered":"http:\/\/www.luodonggan.com\/wordpress\/?p=208"},"modified":"2018-03-12T17:20:27","modified_gmt":"2018-03-12T09:20:27","slug":"gitbook%e7%9a%84%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"http:\/\/8.152.216.154:8081\/?p=208","title":{"rendered":"GitBook\u7684\u4f7f\u7528\u8bf4\u660e"},"content":{"rendered":"<ul class=\"lemmaWgt-lemmaTitle lemmaWgt-lemmaTitle- list-paddingleft-2\" style=\"margin-bottom: 10px; padding: 0px; width: 700px; font-family: arial, tahoma, &quot;Microsoft Yahei&quot;, \u5b8b\u4f53, sans-serif; color: rgb(51, 51, 51); font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<li>\n<h1 style=\"margin: 0px 10px 0px 0px; padding: 0px; font-size: 34px; display: inline; line-height: 1.15; font-weight: 400; vertical-align: sub;\">GitBook<\/h1>\n<p>&nbsp;<\/p>\n<\/li>\n<\/ul>\n<p>GitBook \u662f\u4e00\u4e2a\u57fa\u4e8e Node.js \u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4f7f\u7528&nbsp;<a target=\"_blank\" href=\"https:\/\/baike.baidu.com\/item\/Github\" style=\"color: rgb(19, 110, 194); text-decoration: none;\">Github<\/a>\/Git \u548c&nbsp;<a target=\"_blank\" href=\"https:\/\/baike.baidu.com\/item\/Markdown\" style=\"color: rgb(19, 110, 194); text-decoration: none;\">Markdown<\/a>&nbsp;\u6765\u5236\u4f5c\u7cbe\u7f8e\u7684\u7535\u5b50\u4e66\uff0cGitBook \u5e76\u975e\u5173\u4e8e&nbsp;<a target=\"_blank\" href=\"https:\/\/baike.baidu.com\/item\/Git\/12647237\" data-lemmaid=\"12647237\" style=\"color: rgb(19, 110, 194); text-decoration: none;\">Git<\/a>&nbsp;\u7684\u6559\u7a0b\u3002<\/p>\n<p><\/p>\n<h1 id=\"articleHeader0\" style=\"box-sizing: border-box; font-size: 2.25em; margin: 0px; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">\u7b80\u4ecb<\/h1>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.5em;\">GitBook \u662f\u4e00\u4e2a\u57fa\u4e8e Node.js \u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4f7f\u7528 Github\/Git \u548c Markdown \u6765\u5236\u4f5c\u7cbe\u7f8e\u7684\u7535\u5b50\u4e66\u3002GitBook\u652f\u6301\u8f93\u51fa\u4ee5\u4e0b\u51e0\u79cd\u6587\u6863\u683c\u5f0f<\/p>\n<ul style=\"box-sizing: border-box; margin-top: 1.5em; margin-left: 3em; padding-left: 0px;\" class=\" list-paddingleft-2\">\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u9759\u6001\u7ad9\u70b9\uff1aGitBook\u9ed8\u8ba4\u8f93\u51fa\u8be5\u79cd\u683c\u5f0f<\/p>\n<\/li>\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">PDF\uff1a\u9700\u8981\u5b89\u88c5gitbook-pdf\u4f9d\u8d56<\/p>\n<\/li>\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">eBook\uff1a\u9700\u8981\u5b89\u88c5ebook-convert<\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">Gitbook\u4f7f\u7528\u6307\u5357\uff1a<a href=\"https:\/\/dunwu.gitbooks.io\/gitbook-notes\/\" _src=\"https:\/\/dunwu.gitbooks.io\/gitbook-notes\/\">https:\/\/dunwu.gitbooks.io\/gitbook-notes\/<\/a> <\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/www.chengweiyang.cn\/gitbook\/index.html\" _src=\"http:\/\/www.chengweiyang.cn\/gitbook\/index.html\">http:\/\/www.chengweiyang.cn\/gitbook\/index.html<\/a><\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\"><span class=\"img-wrap\" style=\"box-sizing: border-box;\"><img data-src=\"\/img\/bVyKyI\" src=\"https:\/\/segmentfault.com\/img\/bVyKyI\" style=\"box-sizing: border-box; border: 1px solid rgb(221, 221, 221); vertical-align: middle; max-width: 100%; position: static !important; padding: 3px; cursor: pointer; display: inline;\"\/><\/span><\/p>\n<h1 id=\"articleHeader1\" style=\"box-sizing: border-box; font-size: 2.25em; margin: 1.5em 0px 0px; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">\u51c6\u5907\u5b89\u88c5<\/h1>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u5728\u4f7f\u7528GitBook \u4e4b\u524d, \u6211\u4eec\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e9b\u5fc5\u987b\u7684\u5de5\u5177\uff0cNode.js\u3001GitBook\u3001GitBook Editor\u3001Git\u7248\u672c\u63a7\u5236\u5668\u3002<\/p>\n<\/blockquote>\n<h2 id=\"articleHeader2\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">Node.js<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">Node.js \u662f\u4e00\u4e2a\u57fa\u4e8eChrome JavaScript \u8fd0\u884c\u65f6\u5efa\u7acb\u7684\u4e00\u4e2a\u5e73\u53f0\uff0c \u7528\u6765\u65b9\u4fbf\u5730\u642d\u5efa\u5feb\u901f\u7684\uff0c \u6613\u4e8e\u6269\u5c55\u7684\u7f51\u7edc\u5e94\u7528\u00b7 Node.js \u501f\u52a9\u4e8b\u4ef6\u9a71\u52a8\uff0c \u975e\u963b\u585e I\/O \u6a21\u578b\u53d8\u5f97\u8f7b\u91cf\u548c\u9ad8\u6548\uff0c \u975e\u5e38\u9002\u5408 run across distributed devices \u7684 data-intensive \u7684\u5b9e\u65f6\u5e94\u7528\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">1\u3001win\u4e0b\u5b89\u88c5Node.js<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u76f4\u63a5\u5230nodejs\u5b98\u7f51\u4e0b\u8f7d\uff0c\u7b80\u5355\u5b89\u88c5\u5373\u53ef\uff0c\u6b64\u5904\u4e0d\u518d\u7ec6\u8ff0\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">2\u3001\u68c0\u6d4b\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">node -v \/\/\u663e\u793av4.1.1<\/p>\n<\/blockquote>\n<h2 id=\"articleHeader3\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">GitBook<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">GitBook \u662f\u4e00\u4e2a\u57fa\u4e8e Node.js \u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4f7f\u7528 Github\/Git \u548c Markdown \u6765\u5236\u4f5c\u7cbe\u7f8e\u7684\u7535\u5b50\u4e66\u3002\u901a\u8fc7Node.js\u547d\u4ee4\u5b89\u88c5GitBook<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">1\u3001NMP\u5b89\u88c5Gitbook<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">npm install gitbook -g<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">2\u3001\u5b89\u88c5gitbook CLI<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.5em;\">\u60f3\u5728\u7cfb\u7edf\u4e0a\u7684\u4efb\u4f55\u5730\u65b9\u7684gitbook\u547d\u4ee4\uff0c\u9700\u8981\u5b89\u88c5\u201cgitbook CLI\u201d\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 0px;\">\/\/\u5b89\u88c5\u547d\u4ee4<br style=\"box-sizing: border-box;\"\/>npm install -g gitbook-cli<br style=\"box-sizing: border-box;\"\/>\/\/\u5378\u8f7d\u547d\u4ee4<br style=\"box-sizing: border-box;\"\/>npm uninstall -g gitbook<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">3\u3001\u68c0\u9a8c\u4e0b\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">gitbook -V \/\/\u663e\u793a0.4.2<\/p>\n<\/blockquote>\n<h2 id=\"articleHeader4\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">Git<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">Git\u662f\u4e00\u6b3e\u514d\u8d39\u3001\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u654f\u6377\u9ad8\u6548\u5730\u5904\u7406\u4efb\u4f55\u6216\u5c0f\u6216\u5927\u7684\u9879\u76ee\u3002\u57fa\u672c\u5b89\u88c5\u8bf7\u70b9\u51fb\u5b89\u88c5\u6559\u7a0b\u3002\u5982\u679c\u4e0d\u9700\u8981\u4eceGitHub\u66f4\u65b0\u4e66\u5230\u672c\u5730\u518d\u7f16\u8bd1\uff0c\u5219\u53ef\u4ee5\u4e0d\u5b89\u88c5Git\u3002<\/p>\n<\/blockquote>\n<h2 id=\"articleHeader5\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">GitBookEditor<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.5em;\">GitBook\u5b98\u65b9\u5ba2\u6237\u7aef\u7f16\u8f91\u5668\uff0c\u652f\u6301Win\u3001Linux\u3001Mac\u7cfb\u7edf\u3002\u8bf7\u70b9\u51fb\u4e0b\u8f7dGitBookEditor\u3002\u4f7f\u7528\u8be5\u7f16\u8f91\u5668\u53ef\u4ee5\u5feb\u901f\u7684\u521b\u5efa\u3001\u7f16\u8f91GitBook\u3002\u5b89\u88c5\u5177\u6709\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ul style=\"box-sizing: border-box; margin-top: 1.5em; margin-left: 3em; padding-left: 0px;\" class=\" list-paddingleft-2\">\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u89e3\u538b\u4e0b\u8f7d\u5305 gitbook-editor-4.2.1-windows-ia32.zip<\/p>\n<\/li>\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u8fd0\u884cGitBook Editor Setup.exe\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5<\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<h1 id=\"articleHeader6\" style=\"box-sizing: border-box; font-size: 2.25em; margin: 1.5em 0px 0px; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">\u57fa\u672c\u4f7f\u7528<\/h1>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.5em;\">GitBook \u5927\u81f4\u5206\u4e3a\u4e24\u79cd\u4f7f\u7528\u65b9\u5f0f\uff0c\u5373\u79bb\u7ebf\u548c\u5728\u7ebf\u3002\u6700\u7b80\u5355\u7684\u4f7f\u7528\u65b9\u5f0f\u662f\u4f7f\u7528GitBook Editor\u7f16\u8f91GitBook \uff0c\u7136\u540e\u4f7f\u7528\u76f8\u5173\u547d\u4ee4\u7f16\u8bd1\u6210\u529fHTML\u3002\u5f53\u7136\u8fd8\u6709\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f<\/p>\n<ul style=\"box-sizing: border-box; margin-top: 1.5em; margin-left: 3em; padding-left: 0px;\" class=\" list-paddingleft-2\">\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u4f7f\u7528\u547d\u4ee4\u521b\u5efa\u57fa\u672cGitBook<\/p>\n<\/li>\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u4f7f\u7528\u7f51\u9875\u5728\u7ebf\u7f16\u8f91\u5668\u521b\u5efa\u3001\u7f16\u8f91GitBook\u3002<\/p>\n<\/li>\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u4f7f\u7528itBookEditor\u5ba2\u6237\u7aef\u521b\u5efa\u3001\u7f16\u8f91GitBook\u3002<\/p>\n<\/li>\n<\/ul>\n<\/blockquote>\n<h2 id=\"articleHeader7\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">gitBookEditor<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u4f7f\u7528\u5ba2\u6237\u7aef\u65b9\u5f0f\uff0c\u652f\u6301\u5728\u7ebf\u548c\u672c\u5730\u4e24\u79cd\u65b9\u5f0f\u521b\u5efa\u3001\u7f16\u8f91GitBook\uff0c\u518d\u6267\u884c\u76f8\u5173\u547d\u4ee4\u7f16\u8bd1\u6210HTML\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6bd4\u8f83\u65b9\u4fbf\uff0c\u63a8\u8350\u4f7f\u7528\u3002\u4ee5\u672c\u5730\u521b\u5efa\u4e66\u7c4d\u4e3a\u4f8b<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">1\u3001gitBookEditor\u5ba2\u6237\u7aef\u57fa\u672c\u4f7f\u7528<\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\"><span class=\"img-wrap\" style=\"box-sizing: border-box;\"><img data-src=\"\/img\/bVyKz5\" src=\"https:\/\/segmentfault.com\/img\/bVyKz5\" style=\"box-sizing: border-box; border: 1px solid rgb(221, 221, 221); vertical-align: middle; max-width: 100%; position: static !important; padding: 3px; cursor: pointer; display: inline;\"\/><\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\"><span class=\"img-wrap\" style=\"box-sizing: border-box;\"><img data-src=\"\/img\/bVyKz9\" src=\"https:\/\/segmentfault.com\/img\/bVyKz9\" style=\"box-sizing: border-box; border: 1px solid rgb(221, 221, 221); vertical-align: middle; max-width: 100%; position: static !important; padding: 3px; cursor: pointer; display: inline;\"\/><\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">2\u3001\u4f7f\u7528\u547d\u4ee4\u5bf9\u5df2\u7ecf\u521b\u5efa\u7684Book\u8fdb\u884c\u7f16\u8bd1<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u627e\u5230\u9700\u8981\u7f16\u8bd1\u7684\u4e66\u7c4d\u6240\u5728\u76ee\u5f55\uff0c\u6267\u884cgitbook serve \u547d\u4ee4,\u5728\u672c\u7535\u8111\u7684\u9ed8\u8ba4\u8def\u5f84\u4e3aC:UsersQGYGitBookLibraryImportgitbooksimpletutorial\uff0c\u5982\u56fe\u6240\u793a<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\"><span class=\"img-wrap\" style=\"box-sizing: border-box;\"><img data-src=\"\/img\/bVyKAb\" src=\"https:\/\/segmentfault.com\/img\/bVyKAb\" style=\"box-sizing: border-box; border: 1px solid rgb(221, 221, 221); vertical-align: middle; max-width: 100%; position: static !important; padding: 3px; cursor: pointer; display: inline;\"\/><\/span><\/p>\n<h1 id=\"articleHeader8\" style=\"box-sizing: border-box; font-size: 2.25em; margin: 1.5em 0px 0px; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">\u9ad8\u7ea7\u6269\u5c55<\/h1>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u638c\u63e1\u4e86\u201c\u57fa\u672c\u4f7f\u7528\u201d\uff0c\u4f46\u6709\u65f6\u5019\u60f3\u8981gitBook\u66f4\u7f8e\u89c2\uff0c\u6216\u8005\u66f4\u7b26\u5408\u6211\u4eec\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u5219\u901a\u8fc7book.json\u914d\u7f6e\u8fdb\u884c\u81ea\u5b9a\u4e49\u3001\u4ee5\u53ca\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684\u63d2\u4ef6\u7b49\u3002<\/p>\n<\/blockquote>\n<h2 id=\"articleHeader9\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">Book.json\u914d\u7f6e<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">GitBook \u5728\u7f16\u8bd1\u4e66\u7c4d\u7684\u65f6\u5019\u4f1a\u8bfb\u53d6\u4e66\u7c4d\u6e90\u7801\u9876\u5c42\u76ee\u5f55\u4e2d\u7684 book.js \u6216\u8005 book.json\uff0c\u8fd9\u91cc\u4ee5 book.json \u4e3a\u4f8b\uff0c\u53c2\u8003 GitBook \u6587\u6863 \u53ef\u4ee5\u77e5\u9053\uff0cbook.json \u652f\u6301\u5982\u4e0b\u914d\u7f6e<\/p>\n<\/blockquote>\n<pre class=\"hljs clojure\" style=\"box-sizing: border-box; overflow: auto; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; padding: 1em; margin-bottom: 1.5em; line-height: 1.45; word-break: break-all; word-wrap: break-word; border: none; border-radius: 4px; max-height: 35em; position: relative; margin-top: 0px !important;\">{\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u6837\u5f0f\u98ce\u683c\u914d\u7f6e\u683c\u5f0f&nbsp;&nbsp;&nbsp;&nbsp;&quot;styles&quot;:&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;website&quot;:&nbsp;&quot;styles\/website.css&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;ebook&quot;:&nbsp;&quot;styles\/ebook.css&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;pdf&quot;:&nbsp;&quot;styles\/pdf.css&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;mobi&quot;:&nbsp;&quot;styles\/mobi.css&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;epub&quot;:&nbsp;&quot;styles\/epub.css&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},\r\n\r\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u63d2\u4ef6\u5b89\u88c5\u914d\u7f6e\u683c\u5f0f&nbsp;&nbsp;&nbsp;&nbsp;&quot;plugins&quot;:&nbsp;[&quot;myplugin&quot;],&nbsp;&nbsp;&nbsp;&nbsp;&quot;pluginsConfig&quot;:&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;myPlugin&quot;:&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;message&quot;:&nbsp;&quot;Hello&nbsp;World&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;\r\n}<\/pre>\n<h2 id=\"articleHeader10\" style=\"box-sizing: border-box; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; margin: 1.5em 0px 0px; font-size: 1.75em; border-bottom: 1px solid rgb(238, 238, 238); padding-bottom: 10px;\">\u81ea\u5b9a\u4e49\u63d2\u4ef6\u6269\u5c55<\/h2>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u63d2\u4ef6\u662f\u6269\u5c55GitBook\u529f\u80fd\u6700\u597d\u7684\u65b9\u6cd5\u3002\u4f7f\u5f97GitBook\u529f\u80fd\u66f4\u52a0\u5f3a\u5927\uff0c\u4f8b\u5982\uff0c\u628a\u6570\u5b66\u516c\u5f0f\u663e\u793a\u652f\u6301\uff0c\u8ddf\u8e2a\u56de\u8bbf\u4f7f\u7528\u8c37\u6b4c\u89e3\u6790\uff0c\u2026\u4ee5toggle-chapters\u63d2\u4ef6\u4e3a\u4f8b<br style=\"box-sizing: border-box;\"\/>toggle-chapters \u63d2\u4ef6\u7684\u6548\u679c\u662f\u9ed8\u8ba4\u53ea\u5728\u76ee\u5f55\u5bfc\u822a\u4e2d\u663e\u793a\u7ae0\u7684\u6807\u9898\uff0c\u800c\u4e0d\u4f1a\u663e\u793a\u5c0f\u8282\u7684\u6807\u9898\uff0c\u70b9\u51fb\u6bcf\u4e00\u7ae0\u6216\u8005\u6bcf\u4e00\u8282\u4f1a\u663e\u793a\u5f53\u524d\u7ae0\u6216\u8282\u7684\u5b50\u76ee\u5f55\uff0c\u5982\u679c\u6709\u7684\u8bdd\uff0c\u4f46\u662f\u540c\u65f6\u4f1a\u6536\u8d77\u5176\u5b83\u4e4b\u524d\u5c55\u5f00\u7684\u7ae0\u8282\u3002\u6240\u4ee5\uff0c\u4e2a\u4eba\u8ba4\u4e3a\u4e0d\u662f\u975e\u5e38\u5b9e\u7528\uff0c\u56e0\u4e3a\u8fd9\u6837\u5b50\u7528\u6237\u4e0d\u80fd\u5feb\u901f\u8df3\u8f6c\u5230\u6ca1\u6709\u5c55\u5f00\u7684\u7ae0\u8282\uff01<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e00\u3001\u641c\u7d22\u3001\u5b89\u88c5\u63d2\u4ef6\u65b9\u5f0f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">1\u3001\u7f16\u8f91\u5668\u65b9\u5f0f\uff08\u6ca1\u6210\u529f\uff09<\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\"><span class=\"img-wrap\" style=\"box-sizing: border-box;\"><img data-src=\"\/img\/bVyKAo\" src=\"https:\/\/segmentfault.com\/img\/bVyKAo\" style=\"box-sizing: border-box; border: 1px solid rgb(221, 221, 221); vertical-align: middle; max-width: 100%; position: static !important; padding: 3px; cursor: pointer; display: inline;\"\/><\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">2\u3001\u901a\u8fc7GitHub\u65b9\u5f0f<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 1.5em 0px; font-size: 1em; border-left: 2px solid rgb(0, 154, 97); background: rgb(246, 246, 246); color: rgb(85, 85, 85);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">www.plugins.gitbook.com<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">3\u3001node.js\u547d\u4ee4\u65b9\u5f0f<\/p>\n<ul style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; margin-left: 3em; padding-left: 0px;\" class=\" list-paddingleft-2\">\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u9ed8\u8ba4\u5b89\u88c5\u5728\u4ee5\u4e0b\u8def\u5f84<\/p>\n<\/li>\n<\/ul>\n<pre class=\"hljs taggerscript\" style=\"box-sizing: border-box; overflow: auto; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; padding: 1em; margin-bottom: 1.5em; line-height: 1.45; word-break: break-all; word-wrap: break-word; border: none; border-radius: 4px; max-height: 35em; position: relative; margin-top: 0px !important;\">C:\\Users\\QGY\\AppData\\Roaming\\npm\\node_modules<\/pre>\n<ul style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; margin-left: 3em; padding-left: 0px;\" class=\" list-paddingleft-2\">\n<li>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\u628a\u63d2\u4ef6\u6587\u4ef6\u5939\u590d\u5236\u5230<\/p>\n<\/li>\n<\/ul>\n<pre class=\"hljs sql\" style=\"box-sizing: border-box; overflow: auto; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; padding: 1em; margin-bottom: 1.5em; line-height: 1.45; word-break: break-all; word-wrap: break-word; border: none; border-radius: 4px; max-height: 35em; position: relative; margin-top: 0px !important;\">npm&nbsp;install&nbsp;gitbook-plugin-toggle-chapters&nbsp;--save-dev<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em;\">\u4e8c\u3001\u901a\u8fc7Book.json\u914d\u7f6e\u63d2\u4ef6<\/p>\n<pre class=\"hljs xquery\" style=\"box-sizing: border-box; overflow: auto; font-family: &quot;Source Code Pro&quot;, Consolas, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 0.93em; padding: 1em; margin-bottom: 1.5em; line-height: 1.45; word-break: break-all; word-wrap: break-word; border: none; border-radius: 4px; max-height: 35em; position: relative; margin-top: 0px !important;\">&quot;plugins&quot;:&nbsp;[&quot;toggle-chapters&quot;],&nbsp;&nbsp;&nbsp;&nbsp;&quot;pluginsConfig&quot;:&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;myPlugin&quot;:&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;message&quot;:&nbsp;&quot;Hello&nbsp;World&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/pre>\n<ul class=\"article-operation list-inline pull-left list-paddingleft-2\" style=\"list-style-type: none;\">\n<li>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000005859901\" style=\"box-sizing: border-box; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(153, 153, 153); text-decoration: none; outline: 0px; font-size: 13px;\">2016\u5e7407\u670803\u65e5\u53d1\u5e03<\/a><\/p>\n<\/li>\n<\/ul>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitBook &nbsp; GitBook \u662f\u4e00\u4e2a\u57fa\u4e8e Node.js \u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4f7f\u7528&nbsp;Gi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":209,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/208"}],"collection":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":1,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":210,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/210"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/media\/209"}],"wp:attachment":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}