Skip to content

Premier destination to learn and master the Elixir programming language

License

Notifications You must be signed in to change notification settings

waxave/elixirschool

Repository files navigation

Elixir School

Lessons about the Elixir programming language, 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 about the Elixir programming language
baseurl: /
url: http:https://localhost:4000
  1. Run Jekyll:

    $ bundle exec jekyll s
  2. Read it at http:https://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. ja, en, es, etc) with lesson subfolders:
$ cd elixirschool
$ mkdir -p ja/lessons/{basics,advanced,specifics,libraries}
$ touch ja/lessons/{basics,advanced,specifics,libraries}/.gitignore
  1. Update _config.yml by including the 2 character code in languages and adding translations to sections, description and toc:
languages: ['en', 'ja']
default_lang: en
exclude_from_localization: []
sections:
  - tag: basics
    label:
      en: Basics
      ja: 基本

description:
  en: Lessons about the Elixir programming language
  ja: プログラミング言語Elixirのレッスン

toc:
  en: Table of Contents
  ja: 目次
  1. If the new language is RTL (right-to-left) it should also be added to the rtl_languages list:
rtl_languages: ['ar']
  1. Add it to list in index.md:
Available in [Việt ngữ][vi], [汉语][cn], [Español][es], [Slovenčina][sk], [日本語][ja], [Polski][pl] [Português][pt], [Русском][ru] and [Bahasa Melayu][ms] and other.

Translated Lesson

  1. Translated lessons must include the page metadata.

    • title should be a translation of the original lesson's title.
    • version should consist of three digits: major.minor.patch, so:
      • if this is a initial lesson translation, the version should be set to 1.0.0;
      • if you apply the original lesson updates to the translation, the version should be copied from the corresponding state of the original lesson;
      • else bump one of the version numbers depending on how important is your change.
    • redirect_from should be removed since it is used only for English lessons that earlier were hosted in a separate folder without a language prefix.

    For example /ja/lessons/basics/basics.md:

---
title: 基本
version: 1.0.0
---

About

Premier destination to learn and master the Elixir programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • CSS 51.4%
  • JavaScript 19.5%
  • HTML 18.1%
  • Ruby 11.0%