add edit on github in md

This commit is contained in:
刘河 2019-12-14 16:14:49 +08:00
parent 12c101a122
commit fcb3864558

View File

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