Skip to content

Commit

Permalink
docs: mark 1.0 docs as latest
Browse files Browse the repository at this point in the history
Just moving pointers to 1.0.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
  • Loading branch information
smira committed Mar 29, 2022
1 parent e97433c commit 741c048
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ copyright = "Sidero Labs, Inc."
# This menu appears only if you have at least one [params.versions] set.
version_menu = "Releases"

# Flag used in the "version-banner" partial to decide whether to display a
# Flag used in the "version-banner" partial to decide whether to display a
# banner on every page indicating that this is an archived version of the docs.
# Set this flag to "true" if you want to display the banner.
# archived_version = false

# The version number for the version of the docs represented in this doc set.
# Used in the "version-banner" partial to display a version number for the
# Used in the "version-banner" partial to display a version number for the
# current doc set.
# version = "0.6"

# A link to latest version of the docs. Used in the "version-banner" partial to
# point people to the main doc site.
url_latest_version = "/v0.14"
url_latest_version = "/v1.0"

# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
# github_repo = "https://github.com/googley-example"
Expand Down Expand Up @@ -126,11 +126,11 @@ prism_syntax_highlighting = false

[[params.versions]]
url = "/v1.0"
version = "v1.0 (pre-release)"
version = "v1.0 (latest)"

[[params.versions]]
url = "/v0.14"
version = "v0.14 (latest)"
version = "v0.14"

[[params.versions]]
url = "/v0.13"
Expand Down Expand Up @@ -190,7 +190,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
yes = 'Glad to hear it! Please <a href="https://github.com/USERNAME/REPOSITORY/issues/new">tell us how we can improve</a>.'

# Adds a reading time to the top of each doc.
# If you want this feature, but occasionally need to remove the Reading time from a single page,
# If you want this feature, but occasionally need to remove the Reading time from a single page,
# add "hide_readingtime: true" to the page's front matter
[params.ui.readingtime]
enable = false
Expand Down
1 change: 0 additions & 1 deletion website/content/v0.14/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ no_list: true
linkTitle: "Documentation"
cascade:
type: docs
menu: main
---

## Welcome
Expand Down
5 changes: 3 additions & 2 deletions website/content/v1.0/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ no_list: true
linkTitle: "Documentation"
cascade:
type: docs
preRelease: true
lastRelease: v1.0.0-beta.3
preRelease: false
lastRelease: v1.0.0
kubernetesRelease: "1.23.5"
prevKubernetesRelease: "1.23.1"
menu: main
---

## Welcome
Expand Down
6 changes: 3 additions & 3 deletions website/static/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
## 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 /v1.0 302
/docs/* /:splat 302

/latest /v0.14 302
/latest/* /v0.14/:splat 302
/latest /v1.0 302
/latest/* /v1.0/:splat 302

0 comments on commit 741c048

Please sign in to comment.