Source for the istio.io site
Go to file
Christian Posta 6ee1907d89 added some instructions to help non-linux users build the website (#206) 2017-05-19 12:07:49 -04:00
_data Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
_docs Updated traffic management concepts docs (#247) 2017-05-19 06:58:04 -07:00
_faq A couple corrections. 2017-05-18 15:54:54 -07:00
_glossary Fix a couple broken glossary entries. 2017-05-18 10:16:01 -07:00
_includes Fix formatting issues introduced by the use of the figure.html include. 2017-05-17 16:29:40 -07:00
_layouts Spruce up our code blocks. 2017-05-18 07:08:36 -07:00
_posts Fixing remaining bad links and html errors (#236) 2017-05-16 15:09:03 -07:00
_sass Improve list formatting 2017-05-19 08:30:56 -07:00
about Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
blog Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
bugs fixing link to user submitted bugs (#277) 2017-05-18 15:01:08 -04:00
community Update index.md (#265) 2017-05-17 15:46:42 -07:00
css Describe support for fancy preformatted block stuff. 2017-05-18 21:15:55 -07:00
faq Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
favicons Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
img Describe support for fancy preformatted block stuff. 2017-05-18 21:15:55 -07:00
js Describe support for fancy preformatted block stuff. 2017-05-18 21:15:55 -07:00
repos Describe support for fancy preformatted block stuff. 2017-05-18 21:15:55 -07:00
scripts Refresh auto-generated command line reference docs (#141) 2017-05-09 18:15:03 -04:00
search Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
troubleshooting Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
.gitignore New doc nav (#47) 2017-04-21 21:46:12 -07:00
.gitmodules Describe support for fancy preformatted block stuff. 2017-05-18 21:15:55 -07:00
CNAME update CNAME 2017-03-15 14:43:09 -04:00
CONTRIBUTING.md Update the community page. 2017-04-06 14:32:09 -07:00
Gemfile Fixing remaining bad links and html errors (#236) 2017-05-16 15:09:03 -07:00
Gemfile.lock Fixing remaining bad links and html errors (#236) 2017-05-16 15:09:03 -07:00
Jenkinsfile Adds check (#243) 2017-05-16 15:59:06 -07:00
LICENSE Fix copyright. 2017-05-18 12:40:46 -07:00
README.md added some instructions to help non-linux users build the website (#206) 2017-05-19 12:07:49 -04:00
Rakefile Fixing remaining bad links and html errors (#236) 2017-05-16 15:09:03 -07:00
_config.yml Describe support for fancy preformatted block stuff. 2017-05-18 21:15:55 -07:00
feed.xml Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
index.html Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
robots.txt Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
sitemap.xml Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00
true-index.html Move everything back out of the src directory since its make GitHub Pages unhappy. 2017-05-15 21:53:10 -07:00

README.md

istio.github.io

This repository contains the source code for the istio.io web site.

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.

The website uses Jekyll templates and is hosted on GitHub Pages. Please make sure you are familiar with these before editing.

To run the site locally with Docker, use the following command:

docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll  -it -p 127.0.0.1:4000:4000 jekyll/jekyll jekyll serve

Make sure you are not introducing html errors or bad links:

docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll  -it  jekyll/jekyll sh -c "bundle install && rake test"
HTML-Proofer finished successfully.

Side note for those on non-linux machines

If you're developing locally but not on a Linux machine, you have a couple options. You can opt to use Docker for Mac / Docker for Windows. This will give you a docker environment from which to run the above docker container (which has all the of the correct Jekyll dependencies and Ruby versions installed). Alternatively, you could use minikube.

If doing Istio development on Kubernetes locally with minikube and native virtualization (for example, on Mac OS X withxhyve driver, then bootstrap like this:

minikube start --vm-driver=xhyve

You can see more about this command and how to install the xhyve drivers by taking a look at the xhyve driver documentation

Then build and run the website with minikube and bind to your minikube ip like this:

docker run --rm --label=jekyll  --volume=$(pwd):/srv/jekyll  -it -p $(minikube ip):4000:4000 jekyll/jekyll jekyll serve 

To see the web page locally on localhost:4000, you can port-forward the minikube port 4000 to your local machine. Run this command in a separate tab/window:

minikube ssh -- -vnNTL *:4000:$(minikube ip):4000 

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
$ brew install ruby
$ sudo gem install bundler
$ sudo gem install jekyll
$ cd istio.github.io
$ bundle install
$ bundle exec jekyll build
$ bundle exec jekyll serve