adding search to docs (#8906)

This commit is contained in:
Vadim Ogievetsky 2019-11-19 07:04:40 -08:00 committed by Fangjin Yang
parent 4bdb890f1b
commit 98580ffe71
2 changed files with 18 additions and 0 deletions

View File

@ -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');

View File

@ -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,