CSS HTML Ruby JavaScript
Latest commit a9ec831 Dec 23, 2016 @rafaeleyng rafaeleyng improve cabot post
Permalink
Failed to load latest commit information.
_data Remove placeholder data Jan 27, 2016
_includes Add link to github repo Feb 2, 2016
_layouts Remove .html extension for authors page Jan 27, 2016
_posts improve cabot post Dec 23, 2016
_sass Fix fonts URL so it don't break in author page Feb 2, 2016
_templates Let there be light Jun 25, 2015
assets Add babel and webpack support. Migrate scripts to package.json Jan 19, 2016
authors Remove .html extension for authors page Jan 27, 2016
pt Add multi-language support Jun 27, 2015
.babelrc Add babel and webpack support. Migrate scripts to package.json Jan 19, 2016
.gitignore Add node-debug.log to gitignore Jan 19, 2016
.ruby-gemset Added ruby gemset and version Jun 26, 2015
.ruby-version Added ruby gemset and version Jun 26, 2015
.travis.yml Run npm build automatically before running the test Jan 19, 2016
Gemfile Add html-proofer and fix errors Jan 18, 2016
Gemfile.lock Commit auto-generated file Jan 25, 2016
LICENSE.md Create LICENSE.md Dec 23, 2015
README.md Remove rake task and _ci/ folder. Update installation instructions on… Jan 19, 2016
_config.yml Add babel and webpack support. Migrate scripts to package.json Jan 19, 2016
authors.md Add authors page link in nav Jun 28, 2015
feed.xml Let there be light Jun 25, 2015
index.html Add multi-language support Jun 27, 2015
package.json Add deploy script skipping tests Feb 2, 2016
robots.txt Added robots.txt Jun 26, 2015
s3_website.yml Compress js using gzip Jan 16, 2016
talks.md Create new 'talks' page Dec 18, 2015
webpack.config.js Add babel and webpack support. Migrate scripts to package.json Jan 19, 2016

README.md

CodeHeaven.io

Build Status

Requirements

Make sure you have rvm installed, and run:

rvm install ruby-2.1.2

Installation

gem install s3_website
git clone https://github.com/codeheaven-io/codeheaven.io.git
cd codeheaven.io
bundle install
npm install -g webpack
npm install
jekyll serve

Create a post

octopress new post 'How to codez'

Create a multilingual a post

We use Octopress Multilingual for this. Our default language is English. Please follow this standard when creating a multilingual post:

  • language definition: if your post is in English, don't use the lang attribute. If your post is in another language, use it like this: lang: pt.

  • post title: create translations with the same name of your original English post. If you create create your English post with octopress new post 'My Awesome Post', create the translation as octopress new post 'My Awesome Post pt'. You can edit the post title manually after this, we're just interested in that -pt in the end of the file name.

  • once you've created your original post and its translations, create the link between the translated posts:

$ octopress id _posts/my_awesome_post.markdown _posts/my_awesome_post-pt.markdown [other posts...]

Deploying to production

  1. Create a .env file in the root folder of your project with the following contents:

    S3_ID: <Your AWS Access Key ID>
    S3_SECRET: <Your AWS Secret Access Key>
  2. Run npm run deploy