Skip to content

Commit

Permalink
docs: update search settings and redirects
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rsmitty committed Mar 23, 2022
1 parent 883d401 commit 0ae7174
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions website/static/_redirects
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0ae7174

Please sign in to comment.