Built with nanoc, a static website generation tool.
- Ruby
- RubyGems
- Bundler
Install the dependencies with bundler
. I like to install them under the
project root:
$ bundle install --path vendor/bundle
Once the deps are installed, you should be able to accomplish what you need to with the included Rake tasks.
$ bundle exec rake compile
$ bundle exec rake view
$ bundle exec rake autocompile
I recommend disabling the syntax highlighting if you run the server with autocompile since it's slow. In Rules
:
filter :erb
filter :kramdown
# filter :colorize_syntax,
# :colorizers => {:javascript => :pygmentize}
layout 'default'
In order for this to work, you need to have the
static site repo checked out
next to this one (i.e. from the root of this repo, the static site should be
located at ../datadog.github.com/
):
$ git clone [email protected]:DataDog/datadog.github.com.git
Then run the release
Rake task, which should do a clean compile of the site
and then copy all the new files over to the static repo and create a new commit.
WARNING! This task will wipe out any uncommitted changes in the static repo.
$ bundle exec rake release