diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-10 17:39:23 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:53 -0700 |
commit | d771ff341d8fa586bae3cd10cf9e82991c5f4417 (patch) | |
tree | 833bccd927d35fba6cb2cfea163e9b6a2a00566c /README.md | |
parent | 8171241666d68976970543b9a5ca4920c133c07e (diff) | |
download | gitbook-d771ff341d8fa586bae3cd10cf9e82991c5f4417.zip gitbook-d771ff341d8fa586bae3cd10cf9e82991c5f4417.tar.gz gitbook-d771ff341d8fa586bae3cd10cf9e82991c5f4417.tar.bz2 |
Improve spacing between titles
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 39 |
1 files changed, 0 insertions, 39 deletions
@@ -172,45 +172,6 @@ This is the summary of my book. Files that are not included in `SUMMARY.md` will not be processed by `gitbook`. -#### Exercises - -A book can contain interactive exercises (currently only in Javascript but Python and Ruby are coming soon ;) ). An exercise is a code challenge provided to the reader, who is given a code editor to write a solution which is checked against the book author's validation code. - -An exercise is defined by 4 simple parts: - -* Exercise **Message**/Goals (in markdown/text) -* **Initial** code to show to the user, providing a starting point -* **Solution** code, being a correct solution to the exercise -* **Validation** code that tests the correctness of the user's input - -Exercises need to start and finish with a separation bar (```---``` or ```***```). It should contain 3 code elements (**base**, **solution** and **validation**). It can contain a 4th element that provides **context** code (functions, imports of libraries, etc which shouldn't be displayed to the user). - - --- - - Define a variable `x` equal to 10. - - ```js - var x = - ``` - - ```js - var x = 10; - ``` - - ```js - assert(x == 10); - ``` - - ```js - // This is context code available everywhere - // The user will be able to call magicFunc in his code - function magicFunc() { - return 3; - } - ``` - - --- - #### Multi-Languages GitBook supports building books written in multiple languages. Each language should be a sub-directory following the normal GitBook format, and a file named `LANGS.md` should be present at the root of the repository with the following format: |