public
Fork of mattetti/merb-book
Description: Open Source Merb book
Homepage:
Clone URL: git://github.com/dsparling/merb-book.git
mattetti (author)
Fri Dec 05 17:45:02 -0800 2008
commit  469469182683f4b94e45f204a94b2f4052aa3f1c
tree    c0caa40a9a82ee87955827d911f699288494c936
parent  cbe143f7db1c1055fdd4802bcb5f4d6d8cf63cb2
name age message
file .gitignore Thu Dec 04 16:06:56 -0800 2008 update gitignore [Matthew Ford]
file README.markdown Loading commit data...
file Rakefile Wed Dec 03 19:12:08 -0800 2008 added more contributors [mattetti]
directory app/
directory autotest/ Mon Dec 01 20:50:55 -0800 2008 added the fundations of the Merb Open Source Book [mattetti]
directory bin/ Mon Dec 01 20:50:55 -0800 2008 added the fundations of the Merb Open Source Book [mattetti]
directory book-content/
directory config/
directory doc/ Mon Dec 01 20:50:55 -0800 2008 added the fundations of the Merb Open Source Book [mattetti]
directory gems/ Mon Dec 01 23:44:32 -0800 2008 added i18n to the merb book [mattetti]
directory log/ Mon Dec 01 23:44:32 -0800 2008 added i18n to the merb book [mattetti]
file merb.thor Mon Dec 01 20:50:55 -0800 2008 added the fundations of the Merb Open Source Book [mattetti]
directory public/
directory spec/ Fri Dec 05 13:57:52 -0800 2008 adding specs for english chapters [Dale Campbell]
README.markdown

The Merb Open Source Book

This book is an open source book written for and by the Merb community.

To run the book locally, just clone this repo and start bundled Merb:

    $ ./bin/merb

And open http://localhost:4000/ in your browser

Note that you might have to "redeploy" the native gems if the merb app server doesn't start:

    $ thor merb:gem:redeploy

A static HTML and a PDF version will soon be available online.

How to contribute

  • Fork this project
  • Modify, fix, add content
  • send me a pull request

For the moment, the content of the book is located inside ./book-content/ and is organized by languages, chapters and pages.

Chapters and pages must be lowercase and start by a digit followed by a dash and the chapter/page title without spaces or any non ascii characters.

All content files are markdown files and the merb app uses maruku to render the markdown files. Check the supported syntax or check ./book-content/en/1-introduction/1-ruby.markdown for a good example of how to use images, quotes and css selectors.

The book supports multiple languages, each language needs to replicate the English folder structure with the same file names.

If you are copying a page or chapter to your language folder and want to mark a section of your text as requiring translation, just add the to-translate class to the css selector of your content as shown below:

    {: .to-translate}

Translation leaders

French: http://github.com/pointcom (Mathieu Fosse) Portuguese: http://github.com/akitaonrails (Fabio Akita) Japanese: http://github.com/kwatch (Makoto Kuwata) German: http://github.com/cypher (Markus Prinz) Chinese: http://github.com/zhhz (Zhonghai Zuo) Spanish: (pending)

Legal

The content of this book is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 license

The source code of the application is dual licensed under the MIT and GPL licenses: