Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 8efaf09

Browse files
egoistznck
authored andcommitted
Upgrade to docute 3 (#76)
1 parent e825bb7 commit 8efaf09

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function lang_version(lang) {
3030
return version
3131
}
3232

33-
self.$config = {
33+
docute.init({
3434
repo: 'vuejs/rollup-plugin-vue',
3535
'edit-link': 'https://github.com/vuejs/rollup-plugin-vue/edit/master/docs',
3636

@@ -44,9 +44,9 @@ self.$config = {
4444
docsearch({
4545
apiKey: '7792597613e997afeb0b75a206ca0c5a',
4646
indexName: 'rollup-plugin-vue',
47-
tags: ['en', 'v2.2', 'v2.3']
47+
tags: ['en', 'v2.2', 'v2.3'],
48+
url: 'https://vuejs.github.io/rollup-plugin-vue'
4849
})
49-
],
50+
]
5051

51-
url: 'https://vuejs.github.io/rollup-plugin-vue'
52-
}
52+
})

docs/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<meta name="twitter:card" content="summary_large_image" />
1818
<meta name="twitter:site" content="@vuejs" />
1919

20-
<link rel="stylesheet" href="https://unpkg.com/docute/dist/docute.css">
20+
<link rel="stylesheet" href="https://unpkg.com/docute@3/dist/docute.css">
2121
</head>
2222
<body>
2323
<!-- don't remove this part start -->
2424
<div id="app"></div>
25-
<script src="https://unpkg.com/docute/plugins/docsearch.js"></script>
25+
<script src="https://unpkg.com/docute@3/plugins/docsearch.js"></script>
26+
<script src="https://unpkg.com/docute@3/docute.js"></script>
2627
<script src="./config.js"></script>
27-
<script src="https://unpkg.com/docute/dist/docute.js"></script>
2828
<!-- don't remove this part end -->
2929
</body>
3030
</html>

0 commit comments

Comments
 (0)