Browse Source

add edit on github in md

刘河 5 years ago
parent
commit
fcb3864558
1 changed files with 8 additions and 2 deletions
  1. 8 2
      docs/index.html

+ 8 - 2
docs/index.html

@@ -11,7 +11,10 @@
 </head>
 <body>
 <div id="app"></div>
+<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
+
 <script>
+
     window.$docsify = {
         name: '',
         repo: '',
@@ -24,13 +27,16 @@
             paths: 'auto',
             placeholder: "搜索",
             hideOtherSidebarContent: true, // whether or not to hide other sidebar content
-        }
+        },
+        plugins: [
+            EditOnGithubPlugin.create("https://github.com/cnlh/nps/tree/master/docs/", "", "在github上编辑"),
+        ]
+
     }
 </script>
 <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
 <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
 <script src="//unpkg.com/docsify-copy-code"></script>
 
-
 </body>
 </html>