Skip to content

Commit 9dfd7c5

Browse files
committed
add edit on github btn
1 parent 70b9b20 commit 9dfd7c5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
1010
</head>
1111
<body>
12+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
13+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
14+
<script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>
15+
1216
<nav>
1317
<a href="#/en/">
1418
<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/uk.png" alt="uk">
@@ -26,13 +30,14 @@
2630
repo: 'https://github.com/flowci/flow-core-x',
2731
loadSidebar: true,
2832
themeColor: '#5C53C4FF',
33+
homepage: '/en/README.md',
2934
alias: {
3035
'/_sidebar.md': '/en/_sidebar.md'
31-
}
36+
},
37+
plugins: [
38+
EditOnGithubPlugin.create('https://github.com/flowci/docs/tree/develop/', null, 'Edit on GitHub')
39+
]
3240
}
3341
</script>
34-
<!-- Docsify v4 -->
35-
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
36-
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
3742
</body>
3843
</html>

0 commit comments

Comments
 (0)