mirror of https://github.com/kubeflow/website.git
Block web crawlers on `v1.8-branch` (#3861)
* Block web crawlers on `v1.8-branch` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Enable archived version header Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Backport changes from #3863 Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Align OWNERS to `master` branch Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Remove `Archive: ` version dropdown prefix Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Improve archived_version banner Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> --------- Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
This commit is contained in:
parent
746e719b69
commit
a14df765b8
19
OWNERS
19
OWNERS
|
@ -1,18 +1,7 @@
|
||||||
approvers:
|
approvers:
|
||||||
- animeshsingh
|
- andreyvelich
|
||||||
- chensun
|
|
||||||
- james-jwu
|
- james-jwu
|
||||||
- knkski
|
- jbottum
|
||||||
- shannonbradshaw
|
- johnugeorge
|
||||||
- zijianjoy
|
|
||||||
reviewers:
|
|
||||||
- 8bitmp3
|
|
||||||
- aronchick
|
|
||||||
- berndverst
|
|
||||||
- dansanche
|
|
||||||
- dsdinter
|
|
||||||
- Jeffwan
|
|
||||||
- jinchihe
|
|
||||||
- nickchase
|
|
||||||
- pdmack
|
|
||||||
- terrytangyuan
|
- terrytangyuan
|
||||||
|
- zijianjoy
|
14
config.toml
14
config.toml
|
@ -113,30 +113,30 @@ enable = true
|
||||||
gcs_engine_id = "007239566369470735695:624rglujm-w"
|
gcs_engine_id = "007239566369470735695:624rglujm-w"
|
||||||
|
|
||||||
# Text label for the version menu in the top bar of the website.
|
# Text label for the version menu in the top bar of the website.
|
||||||
version_menu = "Kubeflow Version"
|
version_menu = "v1.8"
|
||||||
|
|
||||||
# The major.minor version tag for the version of the docs represented in this
|
# 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
|
# branch of the repository. Used in the "version-banner" partial to display a
|
||||||
# version number for this doc set.
|
# version number for this doc set.
|
||||||
version = "master"
|
version = "v1.8"
|
||||||
|
|
||||||
# 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.
|
# banner on every page indicating that this is an archived version of the docs.
|
||||||
archived_version = false
|
archived_version = true
|
||||||
|
|
||||||
# A link to latest version of the docs. Used in the "version-banner" partial to
|
# A link to latest version of the docs. Used in the "version-banner" partial to
|
||||||
# point people to the main doc site.
|
# 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.
|
# A variable used in various docs to determine URLs for config files etc.
|
||||||
# To find occurrences, search the repo for 'params "githubbranch"'.
|
# To find occurrences, search the repo for 'params "githubbranch"'.
|
||||||
githubbranch = "master"
|
githubbranch = "v1.8-branch"
|
||||||
|
|
||||||
# These entries appear in the drop-down menu at the top of the website.
|
# These entries appear in the drop-down menu at the top of the website.
|
||||||
[[params.versions]]
|
[[params.versions]]
|
||||||
version = "master"
|
version = "Latest"
|
||||||
githubbranch = "master"
|
githubbranch = "master"
|
||||||
url = "https://master.kubeflow.org"
|
url = "https://www.kubeflow.org"
|
||||||
[[params.versions]]
|
[[params.versions]]
|
||||||
version = "v1.8"
|
version = "v1.8"
|
||||||
githubbranch = "v1.8-branch"
|
githubbranch = "v1.8-branch"
|
||||||
|
|
|
@ -5,12 +5,8 @@
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{ $outputFormat := partial "outputformat.html" . -}}
|
<!-- Prevent search engines from indexing this old site -->
|
||||||
{{ if and hugo.IsProduction (ne $outputFormat "print") -}}
|
<meta name="robots" content="noindex">
|
||||||
<meta name="robots" content="index, follow">
|
|
||||||
{{ else -}}
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
<!-- include our custom Kubeflow "seo_schema" partial -->
|
<!-- include our custom Kubeflow "seo_schema" partial -->
|
||||||
{{ partial "seo_schema" . }}
|
{{ partial "seo_schema" . }}
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
<!-- Check the variable that indicates whether this is an archived doc set. If yes, display a banner. -->
|
||||||
|
{{- $latest_version_url := .Site.Params.url_latest_version }}
|
||||||
|
{{- $current_version := replace .Site.Params.version "v" "" | markdownify }}
|
||||||
|
{{- if .Site.Params.archived_version }}
|
||||||
|
<style>
|
||||||
|
.version-banner {
|
||||||
|
padding: 1.5rem;
|
||||||
|
margin: 2rem 0;
|
||||||
|
max-width: 40rem;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: #f0ad4e;
|
||||||
|
background-color: #faf5b6;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
.version-banner h3 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.6em;
|
||||||
|
font-size: 1.25em;
|
||||||
|
}
|
||||||
|
.version-banner p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="version-banner">
|
||||||
|
<h3>You are viewing documentation for <strong>Kubeflow {{ $current_version }}</strong></h3>
|
||||||
|
<p>
|
||||||
|
This is a static snapshot from the time of the Kubeflow {{ $current_version }} release.
|
||||||
|
<br>
|
||||||
|
For up-to-date information, see the <a href="{{ $latest_version_url | safeURL }}">latest version</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue