Add docsearch plugin from agolia

This commit is contained in:
Jakub Juszczak
2017-04-06 11:05:50 +02:00
parent 2ab4cacf12
commit 7e7e5d0028
4 changed files with 18 additions and 3 deletions

View File

@@ -34,7 +34,12 @@ If you're looking for v1 check this [branch](https://github.com/apertureless/vue
Simply run `yarn add vue-chartjs chart.js`
Or if you want to use it directly in the browser add `https://unpkg.com/vue-chartjs@2.6.0/dist/vue-chartjs.full.min.js` to your scripts. See [Codepen](https://codepen.io/apertureless/pen/vxWbqB?editors=1010)
Or if you want to use it directly in the browser add
```html
<script src="https://unpkg.com/vue-chartjs@2.6.0/dist/vue-chartjs.full.min.js"></script>
```
to your scripts. See [Codepen](https://codepen.io/apertureless/pen/vxWbqB?editors=1010)
## Explanation of Different Builds
There are three different entry points. It depends on which build setup do you have. The dependencies are bundled or required as a peerDependency.

View File

@@ -30,6 +30,15 @@ docute.init({
]
},
plugins: [
evanyou()
evanyou(),
docsearch({
apiKey: 'b3544f7387612693644777553675d56a',
indexName: 'vue-chartjs',
// algolia docsearch allows you to search with tag filter
tags: ['english', 'de'],
// this plugin does require a url too
// where docsearch fetches contents
url: 'https://vue-chartjs.org'
})
],
})

View File

@@ -1,5 +1,5 @@
---
search: deutsch
search: de
---
# vue-chartjs

View File

@@ -12,6 +12,7 @@
<div id="app"></div>
<script src="https://unpkg.com/docute-evanyou"></script>
<script src="https://unpkg.com/docute/dist/docute.js"></script>
<script src="https://unpkg.com/docute/plugins/docsearch.js"></script>
<script src="./config.js"></script>
<!-- don't remove this part end -->