Source for the istio.io site
Go to file
Martin Taillefer 33bdfdc942
Fix a few bugs and add a feature. (#1111)
- Link injection for document headers has been broken for a while due to my
misunderstanding of the "for in" syntax in JavaScript. This now works as expected.

- Same problem also prevented the feature that causes every link to outside of istio.io
to be opened in a separate window. This now works as intended.

- Made the gear dropdown menu be right-aligned such that it doesn't go off-screen on
portrait mode tablets.

- Stop importing Popper.js since it's only needed for dropdown menus that aren't in the
nav bar. Ours is in a nav bar...

- Added link injection for <dt> terms, which makes it easy to create links to individual glossary entries.
2018-03-28 09:00:14 -07:00
.circleci Attempt at fixing circleci failure (#756) 2017-12-07 10:40:06 -08:00
_about Update intro.md (#1110) 2018-03-27 16:49:07 -07:00
_blog Fix some newly broken links. (#1082) 2018-03-21 07:09:42 -07:00
_data Forgot to update releases.yml. 2018-03-15 10:03:36 -07:00
_docs fix small grammar issue (#1112) 2018-03-28 06:29:43 -07:00
_faq Add one more faq for secret encryption (#1096) 2018-03-26 13:04:10 -07:00
_glossary Add support for a dark color theme. (#966) 2018-02-11 18:10:12 -08:00
_help Add missing .html suffix on some links. (#1080) 2018-03-19 12:20:27 -07:00
_includes Fix a few bugs and add a feature. (#1111) 2018-03-28 09:00:14 -07:00
_layouts Fix a few bugs and add a feature. (#1111) 2018-03-28 09:00:14 -07:00
_sass Fix a few bugs and add a feature. (#1111) 2018-03-28 09:00:14 -07:00
css Introduce support for building the site in "preliminary" mode. (#1052) 2018-03-05 11:05:26 -08:00
favicons [ImgBot] optimizes images (#804) 2017-12-17 12:02:37 -08:00
img Fix broken SVGs (#1027) 2018-02-24 06:48:28 -08:00
js Fix a few bugs and add a feature. (#1111) 2018-03-28 09:00:14 -07:00
scripts Update reference docs. 2018-03-26 22:02:39 -07:00
talks Rename Istio-Manager to Pilot (#360) 2017-06-08 16:46:36 -04:00
.gitignore Make the rake test ensure that we use {{home}} consistently. (#1053) 2018-03-04 14:04:01 -08:00
404.md Major update of the web site's infrastructure. (#826) 2018-01-03 08:16:28 -08:00
BingSiteAuth.xml Bing ownership validation. 2017-06-19 12:20:59 -07:00
CNAME master branch is now server from preliminary.istio.io (#1075) 2018-03-15 09:44:25 -07:00
CONTRIBUTING.md Delete some old stuff we don't need anymore. 2018-03-26 15:38:03 -07:00
Gemfile Fix to run new htmlproofer from docker (https instead of ssh url needed) (#779) 2017-12-07 17:23:30 -08:00
Gemfile.lock Fix to run new htmlproofer from docker (https instead of ssh url needed) (#779) 2017-12-07 17:23:30 -08:00
LICENSE extend copyright to 2018 (#843) 2018-01-06 12:28:55 -08:00
README.md Update README 2018-03-15 11:00:46 -07:00
Rakefile Make the rake test ensure that we use {{home}} consistently. (#1053) 2018-03-04 14:04:01 -08:00
_config.yml Eliminate flickering on page load. (#1068) 2018-03-12 09:46:07 -07:00
_rake_config_override.yml Make the rake test ensure that we use {{home}} consistently. (#1053) 2018-03-04 14:04:01 -08:00
browserconfig.xml Site cleanup 2017-11-26 13:37:14 -08:00
community.md Major update of the web site's infrastructure. (#826) 2018-01-03 08:16:28 -08:00
feed.xml Fix feed.xml generation. (#813) 2017-12-20 11:27:52 -08:00
googled6057396539986c3.html Add Google Search Console verification file. 2018-02-15 06:56:06 -08:00
index.html Fix links. (#1073) 2018-03-14 19:49:14 -07:00
manifest.json Site cleanup 2017-11-26 13:37:14 -08:00
robots.txt Delete *.old files (#635) 2017-10-05 17:05:33 -07:00
search.md Add support for archiving istio.io contents. (#833) 2018-02-06 21:02:08 -08:00

README.md

istio.github.io

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

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.

Working with the site

The website uses Jekyll templates Please make sure you are familiar with these before editing.

To run the site locally with Docker, use the following command from the toplevel directory for this git repo (e.g. pwd must be ~/github/istio.github.io if you were in ~/github when you issued git clone https://github.com/istio/istio.github.io.git)

# First time: (slow)
docker run --name istio-jekyll --volume=$(pwd):/srv/jekyll  -it -p 4000:4000 jekyll/jekyll:3.5.2 sh -c "bundle install && rake test && bundle exec jekyll serve --incremental --host 0.0.0.0"
# Then open browser with url 127.0.0.1:4000 to see the change.
# Subsequent, each time you want to see a new change and you stopped the previous run by ctrl+c: (much faster)
docker start istio-jekyll -a -i
# Clean up, only needed if you won't be previewing website changes for a long time or you want to start over:
docker rm istio-jekyll

The rake test part is to make sure you are not introducing html errors or bad links, you should see

HTML-Proofer finished successfully.

in the output

In some cases the --incremental may not work properly and you might have to remove it.

Alternatively, if you just want to develop locally w/o Docker/Kubernetes/Minikube, you can try installing Jekyll locally. You may need to install other prerequisites manually (which is where using the docker image shines). Here's an example of doing so for Mac OS X:

xcode-select --install
sudo xcodebuild -license
brew install ruby
gem update --system
gem install bundler
gem install jekyll
cd istio.github.io
bundle install
bundle exec rake test
bundle exec jekyll serve

Versions and releases

Istio maintains three variations of its public website:

  • istio.io is the main site, showing documentation for the current release of the product. This site is currently hosted on Firebase.

  • archive.istio.io contains snapshots of the documentation for previous releases of the product. This is useful for customers still using these older releases. This site is currently hosted on Firebase.

  • preliminary.istio.io contains the actively updated documentation for the next release of the product. This site is hosted by GitHub Pages.

The user can trivially navigate between the different variations of the site using the gear menu in the top right of each page.

How versioning works

  • Documentation changes are primarily committed to the master branch of istio.github.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 BRANCH variable in this script

  • The content of archive.istio.io is taken from the older release-XXX branches. The set of branches that are included on archive.istio.io is determined by the TOBUILD variable in this script

The above means that if you want to do a change to the main istio.io site, you will need to make the change in the master branch of istio.github.io and then merge that change into the release branch.

Creating a version

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

  1. Create a new release branch off of master, named as release-major.minor, which in this case would be release-0.7. There is one such branch for every release.

  2. In the master branch, edit the file _data/istio.yml and update the version field to have the version of the next release of Istio. In this case, you would set the field to 0.8.

  3. In the master branch, edit the file _data/releases.yml and add a new entry at the top of the file for version 0.8. You'll need to make sure the URLs are updated for the first few entries. The top entry (0.8) should point to preliminary.istio.io. The second entry (0.7) should point to istio.io. The third and subsequent entries should point to archive.istio.io.

  4. Commit the previous two edits to GitHub.

  5. In the release branch you created, edit the file _data/istio.yml. Set the preliminary field to false.

  6. Commit the previous edit to GitHub.

  7. Go to the Google Search Console and create a new search engine that searches the archive.istio.io/V. directory. This search engine will be used to perform version-specific searches on archive.istio.io.

  8. In the previous release's branch (in this case release-0.6), edit the file _data/istio.yml. Set the archive field to true, the archive_date field to the current date, and the search_engine_id field to the ID of the search engine you created in the prior step.

  9. Switch to the istio/admin-sites repo. In this repo, navigate to the archive.istio.io directory and run the build.sh script. Once the script completes, run 'firebase deploy'. Running the script and deploying the results will update archive.istio.io to contain the right set of archives, based on the above steps.

  10. Still in the istio/admin-sites repo, navigate to the current.istio.io directory, run the build.sh script, followed by firebase deploy This will update the content of istio.io to reflect what in the new release branch you created.

Once all this is done, browse the three sites (preliminary.istio.io, istio.io, and archive.istio.io) to make sure everything looks good.