Coder Social home page Coder Social logo

dyhpoon / elixir-school Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elixirschool/elixirschool

0.0 2.0 0.0 4.7 MB

Lessons about the Elixir programming language

Home Page: https://elixirschool.com

License: Apache License 2.0

Ruby 16.59% JavaScript 8.21% CSS 56.61% HTML 18.59%

elixir-school's Introduction

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://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,libraries}
$ touch jp/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', 'jp']
default_lang: en
exclude_from_localization: []
sections:
  - tag: basics
    label:
      en: Basics
      jp: 基本

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

toc:
  en: Table of Contents
  jp: 目次
  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], [日本語][jp], [Polski][pl] [Português][pt], [Русском][ru] and [Bahasa Melayu][my] and other.

Translated Lesson

  1. Translated lessons must include the page metadata.

    • layout, category and order should be copied from the original lesson.
    • lang should be a 2 character code previously selected on the folder creation step.
    • 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.

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

---
layout: page
title: 基本
category: basics
order: 1
lang: jp
version: 1.0.0
---

elixir-school's People

Contributors

doomspork avatar nscyclone avatar koziolek avatar pragmaticivan avatar gemantzu avatar eksperimental avatar fabon-f avatar stompy-bot avatar marocchino avatar michalvalasek avatar rezaprima avatar riseshia avatar pjhampton avatar 3100 avatar yosangwon avatar cizixs avatar milmazz avatar andreapavoni avatar brain-geek avatar malkog avatar ybur-yug avatar scouten avatar erickgnavar avatar jinyeow avatar devalo avatar rafalbig avatar anderkonzen avatar julienxx avatar edwinallenz avatar ybod avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.