Docs: Add docsearch version (#8850)

* Add docsearch version

* remove open snas stylesheet
This commit is contained in:
Vadim Ogievetsky 2019-11-09 19:51:06 -08:00 committed by Fangjin Yang
parent 75ea0d592a
commit e9e1625e96
3 changed files with 15 additions and 2 deletions

View File

@ -321,6 +321,9 @@
"operations/insert-segment-to-db": {
"title": "insert-segment-to-db tool"
},
"operations/kubernetes": {
"title": "kubernetes"
},
"operations/management-uis": {
"title": "Management UIs"
},

View File

@ -51,6 +51,16 @@ try {
},
});
// Add docusearch version meta
// ref: https://community.algolia.com/docsearch/required-configuration.html#introduces-global-information-as-meta-tags
replace.sync({
files: './build/ApacheDruid/docs/**/*.html',
from: /<meta name="docsearch:language"[^>]+\/>/g,
to: (match, fullText) => {
return match + `<meta name="docsearch:version" content="${druidVersion}" />`;
},
});
console.log('Fixed versions');
} catch (error) {

View File

@ -85,7 +85,7 @@ const siteConfig = {
stylesheets: [
'https://use.fontawesome.com/releases/v5.7.2/css/all.css',
'/css/code-block-buttons.css'
'/css/code-block-buttons.css',
],
// On page navigation for the current documentation page.