Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve version selector & rename "master" to "latest" #3863

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 20 additions & 30 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,23 @@ enable = true
# Google Custom Search Engine ID.
gcs_engine_id = "007239566369470735695:624rglujm-w"

# Text label for the version menu in the top bar of the website.
version_menu = "Version"
# Text label for the version menu in the top bar of the website, depends on the branch:
# - master -> "Latest"
# - v1.0-branch -> "Archive: 1.0"
version_menu = "Latest"

# The major.minor version tag for the version of the docs represented in this
# branch of the repository. Used in the "version-banner" partial to display a
# version number for this doc set.
version = "master"
version = "REPLACE_WITH_VERSION_ON_ARCHIVE"

# 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.
archived_version = false

# 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 = "https://kubeflow.org/docs/"
url_latest_version = "https://www.kubeflow.org/docs/"

# A variable used in various docs to determine URLs for config files etc.
# To find occurrences, search the repo for 'params "githubbranch"'.
Expand All @@ -169,69 +171,57 @@ enable = true

# These entries appear in the drop-down menu at the top of the website.
[[params.versions]]
version = "master"
version = "Latest"
githubbranch = "master"
url = "https://master.kubeflow.org"
url = "https://www.kubeflow.org"
[[params.versions]]
version = "v1.9"
version = "Archive: 1.9"
githubbranch = "v1.9-branch"
url = "https://v1-9-branch.kubeflow.org"
[[params.versions]]
version = "v1.8"
version = "Archive: 1.8"
githubbranch = "v1.8-branch"
url = "https://v1-8-branch.kubeflow.org"
[[params.versions]]
version = "v1.7"
version = "Archive: 1.7"
githubbranch = "v1.7-branch"
url = "https://v1-7-branch.kubeflow.org"
[[params.versions]]
version = "v1.6"
version = "Archive: 1.6"
githubbranch = "v1.6-branch"
url = "https://v1-6-branch.kubeflow.org"
[[params.versions]]
version = "v1.5"
version = "Archive: 1.5"
githubbranch = "v1.5-branch"
url = "https://v1-5-branch.kubeflow.org"
[[params.versions]]
version = "v1.4"
version = "Archive: 1.4"
githubbranch = "v1.4-branch"
url = "https://v1-4-branch.kubeflow.org"
[[params.versions]]
version = "v1.3"
version = "Archive: 1.3"
githubbranch = "v1.3-branch"
url = "https://v1-3-branch.kubeflow.org"
[[params.versions]]
version = "v1.2"
version = "Archive: 1.2"
githubbranch = "v1.2-branch"
url = "https://v1-2-branch.kubeflow.org"
[[params.versions]]
version = "v1.1"
version = "Archive: 1.1"
githubbranch = "v1.1-branch"
url = "https://v1-1-branch.kubeflow.org"
[[params.versions]]
version = "v1.0"
version = "Archive: 1.0"
githubbranch = "v1.0-branch"
url = "https://v1-0-branch.kubeflow.org"
[[params.versions]]
version = "v0.7"
version = "Archive: 0.7"
githubbranch = "v0.7-branch"
url = "https://v0-7.kubeflow.org"
[[params.versions]]
version = "v0.6"
version = "Archive: 0.6"
githubbranch = "v0.6-branch"
url = "https://v0-6.kubeflow.org"
[[params.versions]]
version = "v0.5"
githubbranch = "v0.5-branch"
url = "https://v0-5.kubeflow.org"
[[params.versions]]
version = "v0.4"
githubbranch = "v0.4-branch"
url = "https://v0-4.kubeflow.org"
[[params.versions]]
version = "v0.3"
githubbranch = "v0.3-branch"
url = "https://v0-3.kubeflow.org"

# User interface configuration
[params.ui]
Expand Down