Skip to content
Tomo Suzuki edited this page Sep 25, 2019 · 7 revisions

Code Formatting

google-java-format-diff.py helps to identify any code formatting gap between current HEAD and origin/master in Git. To run formatting in-place (-i):

~/cloud-opensource-java$ git fetch; git diff -U0 origin/master...HEAD | google-java-format-diff.py -p1 --skip-sorting-imports -i

Jekyll for GitHub Pages

Installing Jekyll.

$ cd cloud-opensource-java/docs
$ sudo apt-get install ruby-dev
$ sudo gem install bundler
$ bundle install --path vendor/bundle

Run Jekyll to serve GitHub pages locally.

# In docs directory
$ bundle exec jekyll serve

Then access http://localhost:4000.

Jekyll serving GitHub Pages