mirror of
				https://github.com/KevinMidboe/vue-chartjs.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	✨ Add docsearch plugin from agolia
This commit is contained in:
		| @@ -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` | 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 | ## 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. | There are three different entry points. It depends on which build setup do you have. The dependencies are bundled or required as a peerDependency. | ||||||
|   | |||||||
| @@ -30,6 +30,15 @@ docute.init({ | |||||||
|     ] |     ] | ||||||
|   }, |   }, | ||||||
|   plugins: [ |   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' | ||||||
|  |     }) | ||||||
|   ], |   ], | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| --- | --- | ||||||
| search: deutsch | search: de | ||||||
| --- | --- | ||||||
|  |  | ||||||
| # vue-chartjs | # vue-chartjs | ||||||
|   | |||||||
| @@ -12,6 +12,7 @@ | |||||||
|   <div id="app"></div> |   <div id="app"></div> | ||||||
|   <script src="https://unpkg.com/docute-evanyou"></script> |   <script src="https://unpkg.com/docute-evanyou"></script> | ||||||
|   <script src="https://unpkg.com/docute/dist/docute.js"></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> |   <script src="./config.js"></script> | ||||||
|   <!-- don't remove this part end --> |   <!-- don't remove this part end --> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user