Re enable search 🔎 (#417)

* 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
This commit is contained in:
Tom Brien 2020-02-20 09:25:11 +00:00 committed by GitHub
parent 9f4ff838e7
commit 5a132e215e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,11 @@ module.exports = {
], ],
copyright: `Copyright © ${new Date().getFullYear()} Home Assistant, Inc. Built with Docusaurus.`, copyright: `Copyright © ${new Date().getFullYear()} Home Assistant, Inc. Built with Docusaurus.`,
}, },
algolia: {
apiKey: 'd0245452c36b10cec4b8b5bad04e06fc',
indexName: 'home-assistant-dev',
algoliaOptions: {}
},
}, },
presets: [ presets: [
[ [

View File

@ -14,6 +14,12 @@
# Default build command. # Default build command.
command = "yarn build" command = "yarn build"
[[redirects]]
from = "/docs/en/next/*"
to = "/docs/:splat"
status = 301
force = true
[[redirects]] [[redirects]]
from = "/docs/en/*" from = "/docs/en/*"
to = "/docs/:splat" to = "/docs/:splat"