{"id":51,"date":"2024-09-09T22:26:59","date_gmt":"2024-09-09T14:26:59","guid":{"rendered":"http:\/\/cux.cn\/?p=51"},"modified":"2024-09-09T22:26:59","modified_gmt":"2024-09-09T14:26:59","slug":"docsify%ef%bc%8c%e4%b8%80%e4%b8%aa%e7%a5%9e%e5%a5%87%e7%9a%84%e6%96%87%e6%a1%a3%e7%bd%91%e7%ab%99%e7%94%9f%e6%88%90%e5%99%a8","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=51","title":{"rendered":"docsify\uff0c\u4e00\u4e2a\u795e\u5947\u7684\u6587\u6863\u7f51\u7ad9\u751f\u6210\u5668"},"content":{"rendered":"<blockquote><p>\u65e0\u8bba\u60a8\u662f\u5f00\u53d1\u8005\u3001\u5199\u4f5c\u7231\u597d\u8005\u8fd8\u662f\u4f01\u4e1a\u7528\u6237\uff0cDocsify\u90fd\u80fd\u5e2e\u52a9\u60a8\u8f7b\u677e\u521b\u5efa\u6f02\u4eae\u3001\u6613\u4e8e\u6d4f\u89c8\u548c\u7ba1\u7406\u7684\u6587\u6863\u7f51\u7ad9\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u754c\u9762\u548c\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u4f7f\u60a8\u80fd\u591f\u4ee5\u6700\u5c0f\u7684\u52aa\u529b\u6784\u5efa\u9ad8\u5ea6\u53ef\u5b9a\u5236\u7684\u6587\u6863\u7f51\u7ad9\u3002docsify \u53ef\u4ee5\u5feb\u901f\u5e2e\u4f60\u751f\u6210\u6587\u6863\u7f51\u7ad9\u3002\u4e0d\u540c\u4e8e GitBook\u3001Hexo \u7684\u5730\u65b9\u662f\u5b83\u4e0d\u4f1a\u751f\u6210\u9759\u6001\u7684 .html \u6587\u4ef6\uff0c\u5982\u679c\u53ea\u662f\u90e8\u7f72\u6587\u6863\u7c7b\u7684\u7f51\u7ad9\u7684\u8bdd\uff0c\u90e8\u7f72\u8fd9\u4e2a\u4f1a\u6bd4\u90e8\u7f72WordPress\u7b49\u66f4\u4e3a\u7b80\u5355\u548c\u7701\u8d44\u6e90\u3002<\/p><\/blockquote>\n<p><strong>\u8bdd\u4e0d\u591a\u8bf4\uff0c\u6211\u4eec\u6765\u4e86\u89e3\u4e86\u89e3docsify\uff0c\u5b98\u65b9\u7f51\u7ad9\u5982\u4e0b\u00a0<code>https:\/\/docsify.js.org\/#\/zh-cn\/?id=docsify<\/code>\u00a0\u53ef\u4ee5\u5728linux\uff0cmac\uff0cWindows\u4e0a\u6765\u4f7f\u7528\uff0c\u4eca\u5929\u6f14\u793a\u7528Windows\u4f5c\u4e3a\u6f14\u793a\uff0c\u6b65\u9aa4\u90fd\u662f\u4e00\u6837\u7684<\/strong><\/p>\n<ol>\n<li>\u9996\u5148\u786e\u4fdd\u7535\u8111\u4e0a\u5b89\u88c5\u4e86node \u548cnpm \u5982\u679c\u6ca1\u5b89\u88c5\u7684\u8bdd\uff0c\u5b89\u88c5\u4e00\u4e0b\u5373\u53ef\uff0c\u5f88\u7b80\u5355<\/li>\n<li>\u5728\u5b89\u88c5\u597d\u4ee5\u4e0a2\u4e2a\u540e\u3002\u6211\u4eec\u5168\u5c40\u5b89\u88c5docsify-cli \u3002\u8f93\u5165\u547d\u4ee4\u00a0<code>npm i docsify-cli -g<\/code>\u00a0\u7b49\u5f85\u5b89\u88c5\u5b8c\u6bd5\u5373\u53ef<\/li>\n<li>\u5728\u7535\u8111\u4e0a\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\uff0c\u6211\u4eec\u6765\u8fd9\u4e2a\u76ee\u5f55\u91cc\u53bb\u5199\u6211\u4eec\u7684\u6587\u6863\uff0c\u6bd4\u5982\u6211\u8fd9\u91cc\u7684\u76ee\u5f55\u5c31\u662f docsify \u3002 \u901a\u8fc7cmd \u8fdb\u5165\u5f53\u524d\u8def\u5f84\u4e0b\uff0c\u6267\u884c\u547d\u4ee4\uff1a\u00a0<code>docsify init .\/<\/code>\u00a0\u4e4b\u540e\uff0c\u4ed6\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u62103\u4e2a\u6587\u4ef6\u3002\u5206\u522b\u662f index.html\uff08\u9875\u9762\u7684\u5165\u53e3\u6587\u4ef6\uff09, readme.md\uff08\u6e32\u67d3\u5185\u5bb9\uff09\u548c .nojekyll\uff08\u7528\u4e8e\u7ec4\u7ec7github pages\u5ffd\u7565\u6389\u4e0b\u5212\u7ebf\u5f00\u5934\u7684\u6587\u4ef6\uff09 \uff0c\u6b64\u65f6\u6211\u4eec\u53ea\u9700\u8981\u66f4\u6539readme\u91cc\u7684\u5185\u5bb9\u5c31\u53ef\u4ee5\u66f4\u65b0\u6587\u6863\u5185\u5bb9\u4e86 \u3002<\/li>\n<li>\u9875\u9762\u6709\u4e86\uff0c\u6211\u4eec\u60f3\u8fdb\u884c\u672c\u5730\u9884\u89c8\uff0c\u8f93\u5165\u00a0<code>docsify serve .\/<\/code>\u00a0docsify \u5c31\u4f1a\u5728\u672c\u5730\u542f\u52a8\u4e00\u4e2a\u670d\u52a1\u5668\uff0cListening at\u00a0http:\/\/localhost:3000\u00a0\u5f53\u9875\u9762\u8f93\u51fa\u8fd9\u6837\u7684\u5185\u5bb9\u65f6\u5019\uff0c\u6211\u4eec\u6d4f\u89c8\u5668\u8bbf\u95ee\uff1a\u00a0<code>http:\/\/localhost:3000<\/code>\u00a0\u5c31\u53ef\u4ee5\u770b\u5230\u6587\u6863\u6548\u679c\u4e86\u3002<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10762\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918025959919.png\" width=\"1368\" height=\"721\" alt=\"20240918025959919\" title=\"20240918025959919\" \/><\/li>\n<li>\u8bbe\u7f6e\u5c01\u9762\uff1a\u6211\u4eec\u53ea\u9700\u8981\u6253\u5f00index.html\u91cc\u3002\u91cc\u9762\u65b0\u589e\u914d\u7f6e\u5373\u53ef\u00a0<code>coverpage: true<\/code>\u00a0\u6b64\u65f6\u518d\u6b21\u8fdb\u884c\u6587\u6863\u9884\u89c8\u5c31\u4f1a\u53d1\u73b0\u6709\u4e86\u4e00\u4e2a\u6e10\u53d8\u8272\u7684\u5c01\u9762<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10763\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030000856.png\" width=\"2113\" height=\"967\" alt=\"20240918030000856\" title=\"20240918030000856\" \/>\n<pre><code class=\"lang-html\">&lt;script&gt;\n window.$docsify = {\n   name: '',\n   repo: '',\n   coverpage: true\n }<\/code><\/pre>\n<\/li>\n<li>\u5f53\u7136\u4e86\uff0c\u5c01\u9762\u4e0a\u6211\u4eec\u4e5f\u60f3\u5199\u4e00\u4e9b\u5185\u5bb9\u6216\u8005\u81ea\u5df1\u81ea\u5b9a\u4e49\u7684\u56fe\u7247\uff0c\u4e5f\u5f88\u7b80\u5355\uff0c\u6211\u4eec\u5728\u6839\u76ee\u5f55\uff0c\u4e5f\u5c31\u662f docsify \u4e0b\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u662f\u00a0<code>_coverpage.md<\/code>\u00a0\u91cc\u9762\u7528markdown\u7684\u683c\u5f0f\u8fdb\u884c\u5199\u4f60\u60f3\u8f93\u5165\u7684\u4ecb\u7ecd \u4ee5\u53ca\u5c01\u9762\u56fe\u7247\u3002\u4f8b\u5982\u6211\u7684\u6548\u679c\u5982\u4e0b\uff1a<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10764\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240918030005955.png\" width=\"1468\" height=\"1058\" alt=\"20240918030005955\" title=\"20240918030005955\" \/><\/li>\n<\/ol>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"lang-wiki\">&lt;!-- _coverpage.md --&gt;\n\n\n![logo](_media\/windows.png)\n\n# docsify &lt;small&gt;3.5&lt;\/small&gt;\n\n&gt; \u4e00\u4e2a\u795e\u5947\u7684\u6587\u6863\u7f51\u7ad9\u751f\u6210\u5668\u3002\n\n- \u7b80\u5355\u3001\u8f7b\u4fbf (\u538b\u7f29\u540e ~21kB)\n- \u65e0\u9700\u751f\u6210 html \u6587\u4ef6\n- \u4f17\u591a\u4e3b\u9898\n\n[GitHub](https:\/\/github.com\/docsifyjs\/docsify\/)\n[Get Started](#docsify)<\/code><\/pre>\n<p><strong>\u5982\u679c\u4f60\u60f3\u652f\u6301\u81ea\u5b9a\u4e49\u80cc\u666f\uff0c\u591a\u4e2a\u5c01\u9762\uff0c\u4ee5\u53ca\u5b9a\u5236\u5bfc\u822a\u680f\u4ec0\u4e48\u7684\uff0cdocsify\u90fd\u662f\u652f\u6301\u7684\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docsify.js.org\/#\/zh-cn\/\u00a0\u7b80\u5355\uff0c\u8f7b\u91cf\uff0c\u975e\u5e38\u597d\u7528 \u3002\u4f60\u53ef\u4ee5\u5c06\u4f60\u672c\u5730\u5199\u597d\u7684\u6587\u6863\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668\u6216\u8005 github pages\u4e0a\uff0c\u6765\u8ba9\u522b\u4eba\u8bbf\u95ee\uff0c\u603b\u4f53\u6765\u8bf4\uff0c\u975e\u5e38\u63a8\u8350\uff0c\u5f88\u597d\u7528<\/strong><\/p>\n<p><strong>\u521b\u4f5c\u4e0d\u6613\uff0c\u5982\u679c\u60a8\u89c9\u5f97\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\uff0c\u4e0d\u59a8\u7ed9\u6211\u70b9\u4e2a\u8d5e\uff0c\u8fd9\u5c06\u662f\u6211\u7ee7\u7eed\u5206\u4eab\u4f18\u8d28\u5185\u5bb9\u7684\u52a8\u529b<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e0\u8bba\u60a8\u662f\u5f00\u53d1\u8005\u3001\u5199\u4f5c\u7231\u597d\u8005\u8fd8\u662f\u4f01\u4e1a\u7528\u6237\uff0cDocsify\u90fd\u80fd\u5e2e\u52a9\u60a8\u8f7b\u677e\u521b\u5efa\u6f02\u4eae\u3001\u6613\u4e8e\u6d4f\u89c8\u548c\u7ba1\u7406\u7684\u6587\u6863\u7f51\u7ad9\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u754c\u9762\u548c\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u4f7f\u60a8\u80fd\u591f\u4ee5\u6700\u5c0f\u7684\u52aa\u529b\u6784\u5efa\u9ad8\u5ea6\u53ef\u5b9a\u5236\u7684\u6587\u6863\u7f51\u7ad9\u3002docsify \u53ef\u4ee5\u5feb\u901f\u5e2e\u4f60\u751f\u6210\u6587\u6863\u7f51\u7ad9\u3002\u4e0d\u540c\u4e8e G&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141,136],"tags":[252],"topic":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-tools-soft","category-136","tag-252"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}