From e9e1625e961eac2d8237657e5914430e2c4aa070 Mon Sep 17 00:00:00 2001 From: Vadim Ogievetsky Date: Sat, 9 Nov 2019 19:51:06 -0800 Subject: [PATCH] Docs: Add docsearch version (#8850) * Add docsearch version * remove open snas stylesheet --- website/i18n/en.json | 3 +++ website/script/fix-path.js | 10 ++++++++++ website/siteConfig.js | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/website/i18n/en.json b/website/i18n/en.json index 4abced10640..9d4075e7bef 100644 --- a/website/i18n/en.json +++ b/website/i18n/en.json @@ -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" }, diff --git a/website/script/fix-path.js b/website/script/fix-path.js index f7267b48c59..af239e8ee4e 100644 --- a/website/script/fix-path.js +++ b/website/script/fix-path.js @@ -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: /]+\/>/g, + to: (match, fullText) => { + return match + ``; + }, + }); + console.log('Fixed versions'); } catch (error) { diff --git a/website/siteConfig.js b/website/siteConfig.js index 1967842bd83..62345b6963f 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -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,