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.
ElixirSchool.com is generated using Jekyll. To run locally you need both Ruby and Bundler installed.
-
Install dependencies:
$ bundle install
-
Run Jekyll:
$ bundle exec jekyll s
-
Read it at http://localhost:4000
In addition to the steps above there are a few addition steps required for translation.
- 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
- 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: タイ語
- Create a locale file for your new language using
_data/locales/en.yml
as a guide:
$ touch _data/locales/ja.yml
- If the new language is RTL (right-to-left) it should be added to the
rtl_languages
list inconfig.yml
:
script_direction: rtl
-
Translated lessons must include the page metadata.
title
should be a translation of the original lesson'stitle
.version
should be set to the original Englishversion
For example
/ja/lessons/basics/basics.md
:
---
title: 基本
version: 1.0.0
---
Contributing a new lesson?
Wonderful!
In addition to creating the new lesson be sure to add it to _data/contents.yml
.