istio.io

2025-12-11 0 690
Site Status
istio.io
preliminary.istio.io
archive.istio.io

istio.io

This repository contains the source code for istio.io and
preliminary.istio.io.

Please see the main Istio README
file to learn about the overall Istio project and how to get in touch with us. To learn how you can
contribute to any of the Istio components, please
see the Istio contribution guidelines.

  • Editing and building
  • Versions and releases
    • How versioning works
    • Publishing content immediately
    • Creating a major/minor release
    • Creating a patch release
  • Testing document content
  • Multi-language support
  • Regular maintenance
  • Custom Pages

Editing and building

To learn how to edit and build this repo\’s content, please refer to
Creating and Editing Pages.

Versions and releases

Istio maintains two variations of its public site.

  • istio.io is the main site, showing documentation for the current release of the product.
    istio.io/archive contains snapshots of the documentation for previous releases of the product. This is useful for customers still using these older releases.

  • preliminary.istio.io contains the actively updated documentation for the next release of the product.

The user can trivially navigate between the different variations of the site using the gear menu in the top right
of each page. Both sites are hosted on Netlify.

How versioning works

  • Documentation changes are primarily committed to the master branch of istio.io. Changes committed to this branch
    are automatically reflected on preliminary.istio.io.

  • The content of istio.io is taken from the latest release-XXX branch. The specific branch that
    is used is determined by the istio.io Netlify project\’s configuration.

Publishing content immediately

Checking in updates to the master branch will automatically update preliminary.istio.io, and will only be reflected on
istio.io the next time a release is created, which can be several weeks in the future. If you\’d like some changes to be
immediately reflected on istio.io, you need to check your changes both to the master branch and to the
current release branch (named release-<MAJOR>.<MINOR> such as release-1.7).

This process can be taken care of automatically by our infrastructure. If you submit a PR
to the master branch and annotate the PR with the cherrypick/release-<MAJOR>.<MINOR> label,
then as soon as your PR is merged into master, it will be merged into the specified release branch.

Creating a major/minor release

Here are the steps necessary to create a new documentation version. Let\’s assume the current
version of Istio is 1.6 and you wish to introduce 1.7 which has been under development.

When Istio source code is branched

Run make prepare-1.7.0, and that\’s it. This will grab the latest reference docs from the new istio source branch into the content/en/docs/reference folder.

Approaching the day of the release

The script scripts/create_minor_version.sh is used to automate the branch cutting process of the istio.io documentation. The script will:

  • Archive the previous minor version of the documentation (e.g. archive/v1.25)
  • Create a new branch for the new minor version (e.g. release-1.26)
  • Create a PR for master to add the archived documentation and to bump to the next minor version (e.g. 1.27)
  • Create a PR for the release branch to add the archived documentation

This script replaces the old process where an admin needed to run to commit directly to branches. The runner of this script must have enough permissions to create
a release branch, but this should be doable for anyone on the docs team and parallels the process of branch cutting done by the release managers for minor versions in
the other repositories.

This script requires the gh command line tool to be installed and authenticated. Please note that due to a limitation in the gh tool\’s PR creation ability, the forked
repository must be created by a user and not an organization. See this issue for more details.

  1. The script takes a single argument, the new minor version. For example, if the new minor version is 1.26, run
    ./scripts/create_minor_version.sh 1.26. The script requires the FORKED_REPO_SOURCE environment variable to be set to the source of the forked repo. This is used
    to do the work and to create PRs from

  2. Do a dry run before the official release to ensure everything is working as expected. This is done by specifying DRY_RUN=1 in the command line. For example:
    DRY_RUN=1 FORKED_REPO_SOURCE=git@github.com:dhawton/istio-istio.io ./scripts/create_minor_version.sh 1.26. This will do all the work in a /tmp directory (or TMP_DIR) and will not
    push any changes to the repos

  3. On the day of .0 release, the docs team will need to run the script but leave off the DRY_RUN environment variable. This will be the live publishing.
    FORKED_REPO_SOURCE=git@github.com:dhawton/istio-istio.io ./scripts/create_minor_version.sh 1.26

  4. Go to the istio.io project on Netlify and set the staging environment to the new release branch and deploy. Navigate to https://istio-staging.n*e**tlify.app and
    verify that the new release branch is being used and the documentation looks correct

  5. The release managers should, at this time, merge the publish trigger PR in the release-builder repository

  6. Once the release is published, or very close to being completed, the docs WG should migrate the https://is*tio*.*io Netlify deployment to use this new release branch

  7. Go to the Google Custom Search Engine and do the following:

    • Download the istio.io CSE context file from the Advanced tab.

    • Add a new FacetItem at the top of the file containing the previous release\’s version number. In
      this case, this would be V1.6.

    • Upload the updated CSE context file to the site.

    • In the Setup section, add a new site that covers the previous release\’s archive directory. In this
      case, the site URL would be istio.io/v1.6/*. Set the label of this site to the name of the
      facet item created above (V1.6 in this case).

Creating a patch release

A few days before the patch release, the release managers should notify the Doc WG that the release
is built and is starting it\’s long running qualification test. At this time, move the doc automation
tests to use the new release to verify automated doc testing passes.

To move to a new release (make sure you are in the patch\’s release branch):

  1. Run go get istio.io/istio@A.X.Y && go mod tidy.

  2. Create a PR with the go.* changes.

Creating a new patch release involves modifying a few files:

  1. Edit data/args.yml and change the full_version field to \"A.X.Y\". This is only needed for a patch of the current release.

  2. Complete the release note for the release by editing the markdown file content/en/news/releases/A.X.x/announcing-A.X.Y/index.md. This is where you describe the changes in the release. Please look at other existing files for example content and layout.

  3. Run make update_ref_docs to get the latest reference docs. Normally, this is only needed for a patch of the current release. If needed in an earlier release, see Updating an archive.

Updating an archive

If the archived version in a newer branch (e.g., release-1.7:archive/v1.6) needs to be updated due to changes in the old release branch (release-1.6 in this case), you can run make build-old-archive-1.6.0 in the master branch, which will re-archive release-1.6 and substitute it for the previous archive in the master branch. If this update needs to be reflected in istio.io, the PR may be cherry-picked to the branch for the current release.

Updating the test reference for a given release stream

The release streams starting with release-1.6 contain tests for the test content. Each release tests against
a particular istio version/commit. When the release team has a build, 1.x.y, ready for their long running
tests, they should come to the docs team to have the testing for that release run start running against the
build.

There are two types of builds, public and private. The normal dev and release builds are built from our
public repos and have images in a publicly accessible repository and are considered public. Private builds
are those where we can\’t reveal much before release. Typically it\’s an advance notice that a release will
happen in two weeks for CVEs. Since we can\’t reveal anything before the actual release, the source and built
images are in private repos. As the source and images are private, we can\’t actually move to them until they
are publicly released, and thus there is no early testing of the release in istio.io. The difference for
private builds is that the images we test against were never created in the public gcr.io repository, so
in that case we use the docker.io images. One may ask why we don\’t always use the release images from
docker.io. Since we want to test public builds before they are released, the images don\’t yet exist on
docker.io.

For public builds:

  1. Get the istio/istio commit that was used for the build from https://gcsweb.**is*tio.io/gcs/istio-release/releases/1.x.y/manifest.yaml file.
  2. In the release branch: Run go get istio.io/istio@commit && go mod tidy.

For private builds (this is done after the build is released):

  1. In the release branch: Run go get istio.io/istio@1.x.y && go mod tidy.

For both builds, we want to verify that the HUB/TAG are correct in the Makefile.core.mk (they change depending on if using the private or public builds). Look for the section similar to:

# If one needs to test before a docker.io build is available (using a public test build),
# the export HUB and TAG can be commented out, and the initial HUB un-commented
HUB ?= gcr.io/istio-testing
# export HUB ?= docker.io/istio
# export TAG ?= 1.7.3

For public builds, the export HUB/TAGs would be uncommented and have correct values. For private builds,
or the master branch, the HUB would be uncommented.

Finally, create and submit a PR with the changes and one can see the test results in the PR. Normally,
the PR won\’t actually merge until the release is released (sometimes there are multiple builds for a
release).

Testing document content

Many documents on the Istio site demonstrate features using commands that may or may not continue to work as
Istio evolves from release to release. To ensure the documented instructions stay up to date with as little
continuous manual testing as possible, we have created a framework to automate the testing of these documents.

Every page on istio.io that can be tested includes a PAGE TEST indication under
the page title. For example:

PAGE TEST

A green checkmark indicates an automated test is available for the page. The page is up to date and working as
documented.

A grey X, on the other hand, means that there is no automated test available for the page, yet.
We\’d appreciate it if you\’d like to help create one! Our goal is to eventually have an automated test in place
for every testable document published on the Istio site.

See the tests README for more information.

Multi-language support

The site is translated into multiple languages. Source of truth is the English content, while other languages are
derived and so tend to lag behind slightly. Each site language gets its own fully self-contained content directory
and translation table file. Languages are identified using their international 2-letter language code. The main
site content is located in content/<language code> (e.g. content/en), and the translation table is a TOML-format
file in i18n\\<language code>.toml (e.g. i18n/en.toml).

Getting started with translation is fairly simple:

  • Create a full copy of the content/en directory for your language. For example, you\’d copy content/en to content/fr if you
    were doing a French translation.

  • Update all the links in your new content directory to point to your content directory instead of to the English content.
    For example, if you were doing a French translation you would change links such as [a doc](/docs/a/b/c) to
    [a doc](/fr/docs/a/b/c).

  • Remove all the aliases directives in the front-matter of all content pages. Aliases are used when moving a page
    to a new location, so they\’re not desirable for brand new content.

  • Create a copy of the i18n/en.toml file for your language. For example, you\’d copy i18n/en.toml to i18n/fr.toml if you were doing
    a French translation. This file contains the text that is displayed by the site infrastructure for things like menus, and other
    standard material.

  • Edit the file hugo.toml to list your new language. Search for the [languages] entry and just add a new entry. This
    tells the Hugo site generator to process your content.

  • Edit the file scripts/lint_site.sh and search for check_content. Add another call to check_content for your
    new content directory. This ensures that the linting rules apply to your new content.

  • Edit the file src/ts/lang.ts and add your new language. This will add your language to the language toggle button that is
    available on preliminary.istio.io and will make it so your language will be supported in the language selection menu.

  • Get an Istio GitHub administrator to create a new maintainer team for your language. For French, this would be
    WG - Docs Maintainers/French.

  • Edit the file CODEOWNERS and add entries for your language to give the new team you\’ve created ownership over
    the translated content and translation table file.

You can then commit all of these changes and you can start translating the content and the translation file in a purely
incremental fashion. When you build the site, you\’ll find your content at <url>/<language code>. For example, once you\’ve
checked everything in, you should be able to get to your content at https://preliminary.*ist**io.io/fr if you were doing a
French translation.

Once your translation is complete and you\’re ready to publish it to the world, there are a few other changes you need to make:

  • Edit the file layouts/index.redir. Search for translated sites and add a line for your language. This will cause
    users coming to the site for the first time to be automatically redirected to the translated content suitable for them.
    For French, this would be:

    /  /fr   302  Language=fr
    
  • Edit fhe file layouts/partials/headers.html. Search for switch-lang and you\’ll find the definitions for the language selection
    menu. Add a line for your new language.

And that\’s it.

Regular maintenance

We have a number of checks in place to ensure a number of invariants are maintained in order to
help the site\’s overall quality. For example, we disallow checking in broken links and we do spell
checking. There are some things which are hard to systematically check through automation and instead
require a human to review on in a while to ensure everything\’s doing well.

It\’s a good idea to run through this list before every major release of the site:

  • Ensure that references to the Istio repos on GitHub don\’t hardcode branch names. Search for any uses of /release-1 or /master
    throughout all the markdown files and replace those with {{< source_branch_name >}} instead, which produces a version-appropriate
    branch name.

  • Review the .spelling file for words that shouldn\’t be in there. Type names in particular tend to creep in here. Type names should
    not be in the dictionary and should instead be shown with backticks. Remove the entries from the dictionary and fix any spell
    checking errors that emerge.

  • Ensure proper capitalization. Document titles need to be fully capitalized (e.g. \”This is a Valid Title\”),
    while section headings should use first letter capitalization only (e.g. \”This is a valid heading\”).

  • Ensure that preformatted text blocks that reference files from the Istio GitHub repos use the @@ syntax
    to produce links to the content. See here
    for context.

下载源码

通过命令行克隆项目:

git clone https://github.com/istio/istio.io.git

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

申明:本文由第三方发布,内容仅代表作者观点,与本网站无关。对本文以及其中全部或者部分内容的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。本网发布或转载文章出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,也不代表本网对其真实性负责。

左子网 建站资源 istio.io https://www.zuozi.net/34896.html

Hack
上一篇: Hack
FiraCode
下一篇: FiraCode
常见问题
  • 1、自动:拍下后,点击(下载)链接即可下载;2、手动:拍下后,联系卖家发放即可或者联系官方找开发者发货。
查看详情
  • 1、源码默认交易周期:手动发货商品为1-3天,并且用户付款金额将会进入平台担保直到交易完成或者3-7天即可发放,如遇纠纷无限期延长收款金额直至纠纷解决或者退款!;
查看详情
  • 1、描述:源码描述(含标题)与实际源码不一致的(例:货不对板); 2、演示:有演示站时,与实际源码小于95%一致的(但描述中有”不保证完全一样、有变化的可能性”类似显著声明的除外); 3、发货:不发货可无理由退款; 4、安装:免费提供安装服务的源码但卖家不履行的; 5、收费:价格虚标,额外收取其他费用的(但描述中有显著声明或双方交易前有商定的除外); 6、其他:如质量方面的硬性常规问题BUG等。 注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。
查看详情
  • 1、左子会对双方交易的过程及交易商品的快照进行永久存档,以确保交易的真实、有效、安全! 2、左子无法对如“永久包更新”、“永久技术支持”等类似交易之后的商家承诺做担保,请买家自行鉴别; 3、在源码同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外); 4、在没有”无任何正当退款依据”的前提下,商品写有”一旦售出,概不支持退款”等类似的声明,视为无效声明; 5、在未拍下前,双方在QQ上所商定的交易内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准); 6、因聊天记录可作为纠纷评判依据,故双方联系时,只与对方在左子上所留的QQ、手机号沟通,以防对方不承认自我承诺。 7、虽然交易产生纠纷的几率很小,但一定要保留如聊天记录、手机短信等这样的重要信息,以防产生纠纷时便于左子介入快速处理。
查看详情

相关文章

猜你喜欢
发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务