mirror of https://github.com/istio/istio.io.git
Next batch of archive-related updates.
This commit is contained in:
parent
ef9c246951
commit
24d972fd7a
14
README.md
14
README.md
|
|
@ -112,8 +112,6 @@ of the next Istio release. In this case, you would set the fields to "0.8" and "
|
|||
|
||||
#### Updating archive.istio.io
|
||||
|
||||
1. Switch to the istio/istio.io repo and make sure everything is up to date.
|
||||
|
||||
1. Go to the [Google Custom Search Engine](https://cse.google.com) and do the following:
|
||||
|
||||
- Download the archive.istio.io CSE context file from the Advanced tab.
|
||||
|
|
@ -127,21 +125,23 @@ of the next Istio release. In this case, you would set the fields to "0.8" and "
|
|||
case, the site URL would be archive.istio.io/v0.6/*. Set the label of this site to the name of the
|
||||
facet item created above (V0.6 in this case).
|
||||
|
||||
1. Switch to the istio/istio.io repo and make sure everything is up to date.
|
||||
|
||||
1. In the **previous release's** branch (in this case release-0.6), edit the file `data/args.yml`. Set the
|
||||
`archive` field to true and the `archive_date` field to the current date.
|
||||
|
||||
1. In the **previous release's** branch (in this case release-0.6), edit the file `config.toml`. Set the
|
||||
`disableAliases` field to `false`.
|
||||
|
||||
1. Commit the previous edits to your local git repo and push the **previous release's* branch to GitHub.
|
||||
1. Commit the previous edits to your local git repo and push the **previous release's** branch to GitHub.
|
||||
|
||||
1. Go to the archive.istio.io project on [Netlify](https://netlify.com)
|
||||
1. Switch to the **archive** branch.
|
||||
|
||||
1. Change the branch that is built from the previous release's branch to the new release branch, in this case release-0.7.
|
||||
1. Rebase the archive branch to the current master
|
||||
|
||||
1. Select the option to trigger an immediate rebuild and redeployment.
|
||||
1. Commit the previous edits to your local git repo and push the **archive** branch to GitHub.
|
||||
|
||||
1. Once deployment is done, browse archive.istio.io and make sure everything looks good.
|
||||
1. Wait ~15 minutes, then browse archive.istio.io and make sure everything looks good.
|
||||
|
||||
### Creating a patch release
|
||||
|
||||
|
|
|
|||
|
|
@ -1,67 +0,0 @@
|
|||
defaultContentLanguage = "en"
|
||||
languageCode = "en-us"
|
||||
metaDataFormat = "yaml"
|
||||
title = "Istio"
|
||||
uglyURLs = false
|
||||
enableRobotsTXT = true
|
||||
pluralizeListTitles = false
|
||||
canonifyURLs = true
|
||||
disableKinds = ["taxonomy", "taxonomyTerm"]
|
||||
anchor = "smart"
|
||||
enableGitInfo = true
|
||||
enableEmoji = false
|
||||
buildFuture = true
|
||||
ignoreFiles = [ "OWNERS" ]
|
||||
staticDir = ["static", "generated"]
|
||||
|
||||
# MARKDOWN
|
||||
## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
|
||||
[blackfriday]
|
||||
plainIDAnchors = true
|
||||
# See https://github.com/gohugoio/hugo/issues/2424
|
||||
hrefTargetBlank = false
|
||||
angledQuotes = false
|
||||
latexDashes = true
|
||||
extensions = [""]
|
||||
|
||||
[outputs]
|
||||
home = ["HTML"]
|
||||
section = ["HTML"]
|
||||
|
||||
[mediaTypes]
|
||||
[mediaTypes."text/netlify"]
|
||||
delimiter = ""
|
||||
|
||||
[outputFormats]
|
||||
[outputFormats.RSS]
|
||||
baseName = "feed"
|
||||
[outputFormats.REDIR]
|
||||
mediatype = "text/netlify"
|
||||
baseName = "_redirects"
|
||||
isPlainText = true
|
||||
notAlternative = true
|
||||
|
||||
[related]
|
||||
# Only include matches with rank >= threshold. This is a normalized rank between 0 and 100.
|
||||
threshold = 80
|
||||
|
||||
# To get stable "See also" sections we, by default, exclude newer related pages.
|
||||
includeNewer = true
|
||||
|
||||
# Will lower case keywords in both queries and in the indexes.
|
||||
toLower = false
|
||||
|
||||
[[related.indices]]
|
||||
name = "keywords"
|
||||
weight = 150
|
||||
|
||||
[[related.indices]]
|
||||
name = "tags"
|
||||
weight = 100
|
||||
|
||||
# internationalization
|
||||
[languages]
|
||||
[languages.zh]
|
||||
contentDir = "content_zh"
|
||||
[languages.en]
|
||||
contentDir = "content"
|
||||
|
|
@ -1,18 +1,18 @@
|
|||
{{ define "main" }}
|
||||
{{ if .Site.Data.args.archive_landing }}
|
||||
<main class="primary notoc">
|
||||
<div id="sidebar-container" class="sidebar-container sidebar-offcanvas"></div>
|
||||
<div id="sidebar-container" class="sidebar-container sidebar-offcanvas">
|
||||
</div>
|
||||
<div class="article-container">
|
||||
<h1>istio.io Archives</h1>
|
||||
<p>Snapshots of the <a href="https://istio.io">istio.io</a> website for each release.</p>
|
||||
|
||||
<h1>istio.io Archives</h1>
|
||||
<p>Snapshots of the <a href="https://istio.io">istio.io</a> website for each release.</p>
|
||||
|
||||
<ul>
|
||||
{{ range $archive := .Site.Data.archives }}
|
||||
<li><a href="./{{ $archive.name }}">{{ $archive.name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<ul>
|
||||
{{ range $archive := .Site.Data.archives }}
|
||||
<li><a href="./{{ $archive.name }}">{{ $archive.name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
{{ else }}
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -61,12 +61,10 @@
|
|||
</button>
|
||||
|
||||
<div id="gearDropdownContent" class="menu-content" aria-labelledby="gearDropdownButton" role="menu">
|
||||
{{ if not .Site.Data.args.archive_landing }}
|
||||
<a tabindex="-1" role="menuitem" lang="en" id="switch-lang-en" {{ if eq $home.Lang "en" }}class="active"{{ end }}>English</a>
|
||||
<a tabindex="-1" role="menuitem" lang="zh" id="switch-lang-zh" {{ if eq $home.Lang "zh" }}class="active"{{ end }}>中文</a>
|
||||
<a tabindex="-1" role="menuitem" lang="en" id="switch-lang-en" {{ if eq $home.Lang "en" }}class="active"{{ end }}>English</a>
|
||||
<a tabindex="-1" role="menuitem" lang="zh" id="switch-lang-zh" {{ if eq $home.Lang "zh" }}class="active"{{ end }}>中文</a>
|
||||
|
||||
<div role="separator"></div>
|
||||
{{ end }}
|
||||
<div role="separator"></div>
|
||||
|
||||
<a tabindex="-1" role="menuitem" class="active" id="light-theme-item">{{ i18n "light_theme" }}</a>
|
||||
<a tabindex="-1" role="menuitem" id="dark-theme-item">{{ i18n "dark_theme" }}</a>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
[build]
|
||||
publish = "public"
|
||||
command = "make netlify"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.54.0"
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ TOBUILD=(
|
|||
)
|
||||
|
||||
TOBUILD_JEKYLL=(
|
||||
# v0.7:release-0.7
|
||||
# v0.6:release-0.6
|
||||
# v0.5:release-0.5
|
||||
# v0.4:release-0.4
|
||||
# v0.3:release-0.3
|
||||
# v0.2:release-0.2
|
||||
# v0.1:release-0.1
|
||||
v0.7:release-0.7
|
||||
v0.6:release-0.6
|
||||
v0.5:release-0.5
|
||||
v0.4:release-0.4
|
||||
v0.3:release-0.3
|
||||
v0.2:release-0.2
|
||||
v0.1:release-0.1
|
||||
)
|
||||
|
||||
# Prepare
|
||||
|
|
|
|||
Loading…
Reference in New Issue