mirror of https://github.com/apache/druid.git
Docs: Add docsearch version (#8850)
* Add docsearch version * remove open snas stylesheet
This commit is contained in:
parent
75ea0d592a
commit
e9e1625e96
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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.
|
||||
|
@ -100,7 +100,7 @@ const siteConfig = {
|
|||
gaGtag: true,
|
||||
gaTrackingId: 'UA-131010415-1',
|
||||
|
||||
editUrl: 'https://github.com/apache/incubator-druid/edit/master/docs/',
|
||||
editUrl: 'https://github.com/apache/incubator-druid/edit/master/docs/',
|
||||
|
||||
// Show documentation's last contributor's name.
|
||||
// enableUpdateBy: true,
|
||||
|
|
Loading…
Reference in New Issue