upamune / elixir-school

Lessons in the Fundamentals of Elixir

Home Page:http://elixirschool.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elixir School License

Lessons in the Fundamentals of Elixir, inspired by Twitter's Scala School.

Lessons can now be viewed on ElixirSchool.com.

Feedback and participation is welcome. Please see Contributing for more details on how to get involved.

Running

ElixirSchool.com is generated using Jekyll. To run locally you need both Ruby and Bundler installed.

  1. Install dependencies:

    $ bundle install
  2. Update url in _config.yml to match your machine:

title: Elixir School
description: Lessons in the Fundamentals of Elixir
baseurl: /
url: http://localhost:4000
  1. Run Jekyll:

    $ bundle exec jekyll s
  2. Read it at http://localhost:4000

Translating

In addition to the steps above there are a few addition steps required for translation.

New Language

  1. Create a folder using the 2 character code (e.g. jp, en, es, etc) with lesson subfolders:
$ cd elixir_school
$ mkdir -p jp/lessons/{basics,advanced,specifics}
  1. Update _config.yml by including the 2 character code in languages and adding translations to sections:
languages: ['en', 'jp']
default_lang: en
exclude_from_localization: []
sections:
  - tag: basics
    label:
      en: Basics
      jp: 基本

Translated Lesson

  1. Translated lessons must include lang: XX in the page meta data. For example /jp/lessons/basics/basics.md:
---
layout: page
title: 基本
category: basics
order: 1
lang: jp
---

About

Lessons in the Fundamentals of Elixir

http://elixirschool.com

License:Apache License 2.0


Languages

Language:CSS 78.2%Language:HTML 14.5%Language:Ruby 6.0%Language:JavaScript 1.3%