Ensure you have installed everything listed in the dependencies section before following the instructions.
-
Install packages needed to generate the site
-
On Linux:
$ apt-get install ruby-dev make autoconf nodejs nodejs-legacy python-dev
-
On Mac OS X:
$ brew install node
-
-
Clone the Chronos repository
-
Change into the "docs" directory where docs live
$ cd docs
-
Install Bundler
$ gem install bundler
-
Install the bundle's dependencies
$ bundle install
-
Start the web server
$ bundle exec jekyll serve --watch
-
Visit the site at http://localhost:4000/chronos/
-
Clone a separate copy of the Chronos repo as a sibling of your normal Chronos project directory and name it "chronos-gh-pages".
$ git clone git@github.com:mesos/chronos.git chronos-gh-pages
-
Check out the "gh-pages" branch.
$ cd /path/to/chronos-gh-pages $ git checkout gh-pages
-
Copy the contents of the "docs" directory in master to the root of your chronos-gh-pages directory.
$ cd /path/to/chronos $ cp -r docs/** ../chronos-gh-pages
-
Change to the chronos-gh-pages directory, commit, and push the changes
$ cd /path/to/chronos-gh-pages $ git commit . -m "Syncing docs with master branch" $ git push