CSS JavaScript HTML Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_assets Improve lists appearance Jun 1, 2018
_data Move redirect to data Jun 1, 2018
_includes Translation reports page: use existing url data instead of forming it… Jun 1, 2018
_layouts Fix missed renamed files May 6, 2018
_plugins/elixir_school Translation reports page: use existing url data instead of forming it… Jun 1, 2018
_posts Update 2018-04-03-a-look-at-16.md (#1430) May 3, 2018
ar Add a version to the index (#1435) May 6, 2018
bg Add a version to the index (#1435) May 6, 2018
bn Add a version to the index (#1435) May 6, 2018
de Add a version to the index (#1435) May 6, 2018
en Create redirect pages for old location of English lessons Jun 1, 2018
es Add a version to the index (#1435) May 6, 2018
fr Add a version to the index (#1435) May 6, 2018
gr Add a version to the index (#1435) May 6, 2018
id Add a version to the index (#1435) May 6, 2018
it Add a version to the index (#1435) May 6, 2018
ja Custom redirect plugin Jun 1, 2018
ko [KO] Bump up specifics/ecto to 1.2.0 (#1438) May 10, 2018
ms Custom redirect plugin Jun 1, 2018
no Add a version to the index (#1435) May 6, 2018
pl Add a version to the index (#1435) May 6, 2018
pt [PT] Translation: specifics/ets (#1447) May 26, 2018
ru [RU] Bump version for gen stage, no need to apply changes as in #1164 May 29, 2018
sk Add a version to the index (#1435) May 6, 2018
ta Fix broken markdown in TA translation index page May 30, 2018
th Add a version to the index (#1435) May 6, 2018
tr Add a version to the index (#1435) May 6, 2018
uk Add a version to the index (#1435) May 6, 2018
vi Add a version to the index (#1435) May 6, 2018
zh-hans Move cn -> zh-hans, tw -> zh-hant Jun 1, 2018
zh-hant Move cn -> zh-hans, tw -> zh-hant Jun 1, 2018
.gitignore [TR] Turkish language translations (#1393) Apr 22, 2018
CONTRIBUTING.md Update references to repo (#1150) Aug 21, 2017
GLOSSARY.md [RU] Add the 'libraries/poolboy' lesson translation (#892) Jan 5, 2017
Gemfile Specify support ruby version May 29, 2018
Gemfile.lock Specify support ruby version May 29, 2018
LICENSE Initial commit May 31, 2015
Procfile Setup Jekyll on Heroku Nov 26, 2015
README.md Move redirect to data Jun 1, 2018
Rakefile Setup Jekyll on Heroku Nov 26, 2015
_config.yml Rename Appendix to Blog to clear up confusion (#1431) May 6, 2018
_config_dev.yml Leverage `jekyll-assets` capabilities (#1162) Sep 23, 2017
app.json Update references to repo (#1150) Aug 21, 2017
blog.html fixes bogus link to /blog in layout (#1441) May 8, 2018
config.ru Setup Jekyll on Heroku Nov 26, 2015
contributors.html Create a page dedicated to contributors Apr 27, 2018
robots.txt Add Sitemap.xml and Robots.txt Mar 16, 2016

README.md

Elixir School

Elixir School is the premier destination for people looking to learn and master the Elixir programming language.

Lessons can now be viewed at ElixirSchool.com.

Feedback and participation is strongly encouraged! 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. Run Jekyll:

    $ bundle exec jekyll s
  3. 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 ISO language code (e.g. ja, zh-hans, es, et al) with lesson subfolders. Not sure which language code to use? Check here for the official list.
$ cd elixirschool
$ mkdir -p ja/lessons/{basics,advanced,specifics,libraries}
$ touch ja/lessons/{basics,advanced,specifics,libraries}/.gitkeep
  1. Add your language code to _data/interlang.yml and translate the language names:
ja:
 ar: アラビア語
 bg: ブルガリア語
 bn: ベンガル語
 cn: 中国語
 de: ドイツ語
 en: 英語
 es: スペイン語
 fr: フランス語
 gr: ギリシャ語
 id: インドネシア語
 it: イタリア語
 ja: 日本語
 ko: 韓国語
 ms: マレーシア語
 "no": ノルウェー語
 pl: ポーランド語
 pt: ポルトガル語
 ru: ロシア語
 sk: スロバキア語
 ta: ターミル語
 tr: トルコ語
 uk: ウクライナ語
 vi: ベトナム語
 th: タイ語
  1. Create a locale file for your new language using _data/locales/en.yml as a guide:
$ touch _data/locales/ja.yml
  1. If the new language is RTL (right-to-left) it should be added to the rtl_languages list in config.yml:
script_direction: rtl

Translated Lesson

  1. Translated lessons must include the page metadata.

    • title should be a translation of the original lesson's title.
    • version should be set to the original English version

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

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

New Lessons

Contributing a new lesson? Wonderful! In addition to creating the new lesson be sure to add it to _data/contents.yml.