From 5a132e215e7ecef173fd1ed3afbe1658118247e2 Mon Sep 17 00:00:00 2001 From: Tom Brien Date: Thu, 20 Feb 2020 09:25:11 +0000 Subject: [PATCH] =?UTF-8?q?Re=20enable=20search=20=F0=9F=94=8E=20(#417)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Re enable search 🔎 Site should have been re scrapped by now and redirects all seem to be working nicely. Closes #416 * Add additional redirects Some old results still in the mix * Tidy un-needed redirects After quick testing only one of the last three redirects was needed so purge the two redundant ones --- docusaurus.config.js | 5 +++++ netlify.toml | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index a97049db..148ea7a9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -52,6 +52,11 @@ module.exports = { ], copyright: `Copyright © ${new Date().getFullYear()} Home Assistant, Inc. Built with Docusaurus.`, }, + algolia: { + apiKey: 'd0245452c36b10cec4b8b5bad04e06fc', + indexName: 'home-assistant-dev', + algoliaOptions: {} + }, }, presets: [ [ diff --git a/netlify.toml b/netlify.toml index 2039f0b9..9d36ada3 100644 --- a/netlify.toml +++ b/netlify.toml @@ -14,6 +14,12 @@ # Default build command. command = "yarn build" +[[redirects]] + from = "/docs/en/next/*" + to = "/docs/:splat" + status = 301 + force = true + [[redirects]] from = "/docs/en/*" to = "/docs/:splat"