-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block web crawlers on
v0.6-branch
(#3851)
* Block web crawlers on `v0.6-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> * Use correct site parameter for version selector name 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> * Improve archived_version banner 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> --------- Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
- Loading branch information
1 parent
5a92636
commit e1e03c1
Showing
7 changed files
with
69 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,7 @@ | ||
approvers: | ||
- abhi-g | ||
- aronchick | ||
- dansanche | ||
- ewilderj | ||
- jlewi | ||
- kunmingg | ||
- lluunn | ||
- nickchase | ||
- pdmack | ||
- richardsliu | ||
- sarahmaddox | ||
- texasmichelle | ||
- willingc | ||
- dsdinter | ||
- Ark-kun | ||
- gaoning777 | ||
- hongye-sun | ||
- IronPan | ||
- neuromage | ||
- paveldournov | ||
- qimingj | ||
- rileyjbauer | ||
- vicaire | ||
- joeliedtke | ||
reviewers: | ||
- abhi-g | ||
- aronchick | ||
- carmine | ||
- dansanche | ||
- inc0 | ||
- jlewi | ||
- kunmingg | ||
- lluunn | ||
- nickchase | ||
- pdmack | ||
- richardsliu | ||
- sarahmaddox | ||
- texasmichelle | ||
- willingc | ||
- dsdinter | ||
- Ark-kun | ||
- gaoning777 | ||
- hongye-sun | ||
- IronPan | ||
- neuromage | ||
- paveldournov | ||
- qimingj | ||
- rileyjbauer | ||
- thedriftofwords | ||
- vicaire | ||
- andreyvelich | ||
- james-jwu | ||
- jbottum | ||
- johnugeorge | ||
- terrytangyuan | ||
- zijianjoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
<!-- Check the variable that indicates whether this is an archived doc set. | ||
If yes, display a banner. --> | ||
{{ if .Site.Params.archived_version }} | ||
{{ $color := "primary" }} | ||
{{ $latest := .Site.Params.url_latest_version }} | ||
<div class="pageinfo pageinfo-{{ $color }}"> | ||
{{ with .Site.Params.version }}<p>Version {{ . | markdownify }} of the | ||
documentation is no longer actively maintained. The site that you are | ||
currently viewing is an archived snapshot. For up-to-date documentation, | ||
see the | ||
<a href="{{ $latest | safeURL }}" target="_blank">latest version</a>.</p> | ||
{{ end }} | ||
<!-- 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 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "website", | ||
"devDependencies": { | ||
"autoprefixer": "^9.4.3", | ||
"postcss": "^7.0.6", | ||
"postcss-cli": "^6.1.0" | ||
} | ||
} |