mirror of https://github.com/kubeflow/website.git
Block web crawlers on `v0.5-branch` (#3850)
* Block web crawlers on `v0.5-branch` Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Update Hugo to 0.81.0 Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com> * Add missing `package.json` for Netlify 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> * 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
98a7bc459c
commit
1f1b247f9c
55
OWNERS
55
OWNERS
|
|
@ -1,50 +1,7 @@
|
||||||
approvers:
|
approvers:
|
||||||
- abhi-g
|
- andreyvelich
|
||||||
- aronchick
|
- james-jwu
|
||||||
- dansanche
|
- jbottum
|
||||||
- ewilderj
|
- johnugeorge
|
||||||
- jlewi
|
- terrytangyuan
|
||||||
- kunmingg
|
- zijianjoy
|
||||||
- lluunn
|
|
||||||
- nickchase
|
|
||||||
- pdmack
|
|
||||||
- richardsliu
|
|
||||||
- sarahmaddox
|
|
||||||
- texasmichelle
|
|
||||||
- willingc
|
|
||||||
- dsdinter
|
|
||||||
- Ark-kun
|
|
||||||
- gaoning777
|
|
||||||
- hongye-sun
|
|
||||||
- IronPan
|
|
||||||
- neuromage
|
|
||||||
- paveldournov
|
|
||||||
- qimingj
|
|
||||||
- rileyjbauer
|
|
||||||
- vicaire
|
|
||||||
- yebrahim
|
|
||||||
reviewers:
|
|
||||||
- abhi-g
|
|
||||||
- aronchick
|
|
||||||
- dansanche
|
|
||||||
- inc0
|
|
||||||
- jlewi
|
|
||||||
- kunmingg
|
|
||||||
- lluunn
|
|
||||||
- nickchase
|
|
||||||
- pdmack
|
|
||||||
- richardsliu
|
|
||||||
- sarahmaddox
|
|
||||||
- texasmichelle
|
|
||||||
- willingc
|
|
||||||
- dsdinter
|
|
||||||
- Ark-kun
|
|
||||||
- gaoning777
|
|
||||||
- hongye-sun
|
|
||||||
- IronPan
|
|
||||||
- neuromage
|
|
||||||
- paveldournov
|
|
||||||
- qimingj
|
|
||||||
- rileyjbauer
|
|
||||||
- vicaire
|
|
||||||
- yebrahim
|
|
||||||
27
config.toml
27
config.toml
|
|
@ -119,7 +119,7 @@ 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"'.
|
||||||
|
|
@ -128,24 +128,25 @@ githubbranch = "v0.5-branch"
|
||||||
# Add new release versions here. These entries appear in the drop-down menu
|
# Add new release versions here. These entries appear in the drop-down menu
|
||||||
# at the top of the website.
|
# 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 = "v0.2"
|
version = "v0.5"
|
||||||
githubbranch = "v0.2-branch"
|
githubbranch = "v0.5-branch"
|
||||||
url = "https://v0-2.kubeflow.org"
|
url = "https://v0-5.kubeflow.org"
|
||||||
|
|
||||||
[[params.versions]]
|
|
||||||
version = "v0.3"
|
|
||||||
githubbranch = "v0.3-branch"
|
|
||||||
url = "https://v0-3.kubeflow.org"
|
|
||||||
|
|
||||||
[[params.versions]]
|
[[params.versions]]
|
||||||
version = "v0.4"
|
version = "v0.4"
|
||||||
githubbranch = "v0.4-branch"
|
githubbranch = "v0.4-branch"
|
||||||
url = "https://v0-4.kubeflow.org"
|
url = "https://v0-4.kubeflow.org"
|
||||||
|
[[params.versions]]
|
||||||
|
version = "v0.3"
|
||||||
|
githubbranch = "v0.3-branch"
|
||||||
|
url = "https://v0-3.kubeflow.org"
|
||||||
|
[[params.versions]]
|
||||||
|
version = "v0.2"
|
||||||
|
githubbranch = "v0.2-branch"
|
||||||
|
url = "https://v0-2.kubeflow.org"
|
||||||
|
|
||||||
# Docsy: User interface configuration
|
# Docsy: User interface configuration
|
||||||
[params.ui]
|
[params.ui]
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
{{ .Hugo.Generator }}
|
{{ .Hugo.Generator }}
|
||||||
{{ if eq (getenv "HUGO_ENV") "production" }}
|
<!-- Prevent search engines from indexing this old site -->
|
||||||
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
|
<meta name="robots" content="noindex">
|
||||||
{{ else }}
|
|
||||||
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
|
|
||||||
{{ end }}
|
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
{{ .Site.Params.version }}
|
{{ .Site.Params.version_menu }}
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||||
{{ range .Site.Params.versions }}
|
{{ range .Site.Params.versions }}
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,33 @@
|
||||||
<!-- Check the variable that indicates whether this is an archived doc set.
|
<!-- Check the variable that indicates whether this is an archived doc set. If yes, display a banner. -->
|
||||||
If yes, display a banner. -->
|
{{- $latest_version_url := .Site.Params.url_latest_version }}
|
||||||
{{ if .Site.Params.archived_version }}
|
{{- $current_version := replace .Site.Params.version "v" "" | markdownify }}
|
||||||
{{ $color := "primary" }}
|
{{- if .Site.Params.archived_version }}
|
||||||
{{ $latest := .Site.Params.url_latest_version }}
|
<style>
|
||||||
<div style="font-weight: $font-weight-medium;
|
.version-banner {
|
||||||
background: $gray-100;
|
padding: 1.5rem;
|
||||||
color: inherit;
|
margin: 2rem 0;
|
||||||
border-radius: 0;
|
max-width: 40rem;
|
||||||
margin: 2rem;
|
border-style: solid;
|
||||||
padding: 1.5rem;
|
border-color: #f0ad4e;
|
||||||
padding-bottom: 0.5rem;
|
background-color: #faf5b6;
|
||||||
border-style: solid;
|
border-radius: 0.25rem;
|
||||||
border-color: $color;">
|
}
|
||||||
{{ with .Site.Params.version }}<p>Version {{ . | markdownify }} of the
|
.version-banner h3 {
|
||||||
documentation is no longer actively maintained. The site that you are
|
margin-top: 0;
|
||||||
currently viewing is an archived snapshot. For up-to-date documentation,
|
margin-bottom: 0.6em;
|
||||||
see the
|
font-size: 1.25em;
|
||||||
<a href="{{ $latest | safeURL }}" target="_blank">latest version</a>.</p>
|
}
|
||||||
{{ end }}
|
.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>
|
</div>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,10 @@
|
||||||
command = "hugo"
|
command = "hugo"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.51"
|
HUGO_VERSION = "0.81.0"
|
||||||
|
NODE_VERSION = "10"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.51"
|
HUGO_VERSION = "0.81.0"
|
||||||
|
NODE_VERSION = "10"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "website",
|
||||||
|
"devDependencies": {
|
||||||
|
"autoprefixer": "^9.4.3",
|
||||||
|
"postcss": "^7.0.6",
|
||||||
|
"postcss-cli": "^6.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue