Skip to content

Commit

Permalink
Add edit on github
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Apr 7, 2024
1 parent c6b21af commit 499b8d6
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
</head>

<body>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>

<div id="app">Loading VocalShaper document...</div>

<script>
var num = 0;
mermaid.initialize({ startOnLoad: false });
Expand Down Expand Up @@ -69,15 +79,21 @@
}
}
},

plugins: [
EditOnGithubPlugin.create(
'https://github.com/Do-sth-sharp/VocalShaper-Doc/blob/main/',
null,
function (file) {
if (file.indexOf('zh-CN') > -1) {
return '在GitHub上编辑'
} else {
return 'Edit on GitHub'
}
})
],
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
</body>

</html>

0 comments on commit 499b8d6

Please sign in to comment.