]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add Algolia to docs (#7329)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Tue, 12 May 2020 20:43:00 +0000 (13:43 -0700)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 20:43:00 +0000 (16:43 -0400)
docs/docusaurus.config.js

index e5efeaf7ceed7aec7e16e7220044c324d404fd06..4831d4e17d93dec3565f69eec6b55aa18d171710 100644 (file)
@@ -10,6 +10,13 @@ module.exports = {
   plugins: ['@docusaurus/plugin-google-analytics'],
   scripts: ['https://www.chartjs.org/dist/VERSION/Chart.min.js'],
   themeConfig: {
+    algolia: {
+      apiKey: 'd7ee00a3cbaaf3c33e28ad1c274e7ba6',
+      indexName: 'chartjs',
+      algoliaOptions: {
+        facetFilters: [`version:VERSION`],
+      }
+    },
     googleAnalytics: {
       trackingID: 'UA-28909194-3',
       // Optional fields.