docs: update search settings and redirects

This gives us doc searches, as well as redirects for latest and
docs/latest to the actual v0.14 version (until we cut 1.0).

Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
This commit is contained in:
Spencer Smith 2022-03-22 20:38:17 -04:00
parent 883d401f9f
commit 0ae7174ba3
No known key found for this signature in database
GPG Key ID: 036C4E711644C223
2 changed files with 11 additions and 1 deletions

View File

@ -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

10
website/static/_redirects Normal file
View File

@ -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