You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by cw...@apache.org on 2019/11/20 07:26:17 UTC

[incubator-druid] branch 0.16.0-incubating updated: adding search to docs (#8906) (#8910)

This is an automated email from the ASF dual-hosted git repository.

cwylie pushed a commit to branch 0.16.0-incubating
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/0.16.0-incubating by this push:
     new 731d135  adding search to docs (#8906) (#8910)
731d135 is described below

commit 731d1352679938a118bc8db6ee8cc61054076880
Author: Clint Wylie <cw...@apache.org>
AuthorDate: Tue Nov 19 23:26:09 2019 -0800

    adding search to docs (#8906) (#8910)
---
 website/script/fix-path.js |  7 +++++++
 website/siteConfig.js      | 11 +++++++++++
 2 files changed, 18 insertions(+)

diff --git a/website/script/fix-path.js b/website/script/fix-path.js
index af239e8..2f27cba2 100644
--- a/website/script/fix-path.js
+++ b/website/script/fix-path.js
@@ -60,6 +60,13 @@ try {
       return match + `<meta name="docsearch:version" content="${druidVersion}" />`;
     },
   });
+  replace.sync({
+    files: './build/ApacheDruid/docs/**/*.html',
+    from: /"version:druidVersion"/g,
+    to: (match, fullText) => {
+      return `"version:${druidVersion}"`;
+    },
+  });
 
   console.log('Fixed versions');
 
diff --git a/website/siteConfig.js b/website/siteConfig.js
index 62345b6..361b603 100644
--- a/website/siteConfig.js
+++ b/website/siteConfig.js
@@ -102,6 +102,17 @@ const siteConfig = {
 
   editUrl: 'https://github.com/apache/incubator-druid/edit/master/docs/',
 
+  algolia: {
+    apiKey: '2de99082a9f38e49dfaa059bbe4c901d',
+    indexName: 'apache_druid',
+    algoliaOptions: {
+      facetFilters: [
+        "language:LANGUAGE",
+        "version:druidVersion",
+      ]
+    },
+  },
+
   // Show documentation's last contributor's name.
   // enableUpdateBy: true,
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org