diff --git a/website/config.toml b/website/config.toml index c2329740df..17480b2e29 100644 --- a/website/config.toml +++ b/website/config.toml @@ -116,7 +116,7 @@ url_latest_version = "/v0.14" # gcs_engine_id = "d72aa9b2712488cc3" # Enable Algolia DocSearch -algolia_docsearch = false +algolia_docsearch = true # Enable Lunr.js offline search offlineSearch = false diff --git a/website/static/_redirects b/website/static/_redirects new file mode 100644 index 0000000000..929b39c7e0 --- /dev/null +++ b/website/static/_redirects @@ -0,0 +1,10 @@ +## TODO: we should templatize this so hugo spits it out and it always points to latest from config.toml. +## There's a way to do it, but I couldn't get it to work quickly. +## See https://dev.to/faraixyz/setting-a-custom-output-format-in-hugo-for-netlify-or-gitlab-page-s-redirects-file-4dcf +## for what I'm talking about +/docs /v0.14 302 +/docs/latest /v0.14 302 +/docs/latest/* /v0.14/:splat 302 + +/latest /v0.14 302 +/latest/* /v0.14/:splat 302