mirror of https://github.com/apache/druid.git
adding search to docs (#8906)
This commit is contained in:
parent
4bdb890f1b
commit
98580ffe71
|
@ -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');
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
Loading…
Reference in New Issue