百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

merb-book

> 编程语言
开源

开源 Merb 书

185 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

开源 Merb 书

The Merb Open Source Book

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

Preview:

To run the book locally, just clone this repo and start the bundled copy of 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:

	$ ./bin/thor merb:gem:redeploy

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

How to contribute

  • Install the github gem from .

     $ gem install defunkt-github -s http://gems.github.com
    
  • Fork the mattetti/merb-book project by clicking the fork button at .

  • Clone a copy of the repository to the local machine.

     $ git clone [email protected]:YOUR_GITHUB_USERNAME/merb-book.git
    
  • Choosing from the branches in Mattetti’s repo (i.e., ‘english’), select the LANGUAGE you're going to contribute to.

  • Enter the merb-book directory.

     $ cd merb-book
    
  • Checkout the remote branch for the LANGUAGE that you're working on.

     $ gh pull mattetti LANGUAGE
    
  • Checkout a local copy of your language branch.

     $ gh checkout -b LANGUAGE
    
  • Do a sanity check.

     $ git branch
     * LANGUAGE
     master
     mattetti/LANGUAGE
    
  • Set up a remote branch on github for your language.

     $ git push origin LANGUAGE
    
  • Modify, fix, and add content in your local LANGUAGE branch.

  • Commit your changes into your local Git repository.

     $ git commit -a
    
  • Merge in the upstream changes.

     $ gh pull --merge mattetti LANGUAGE
    
  • Push your changes back to github.

     $ git push
    
  • Send Mattetti 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; the merb app uses maruku to render these 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, using 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}

Please follow our editor guidelines, especially:

  • use a language branch (so you can see what changed in the English content)
  • one sentence per line (so merging is easier)

Translation leaders

  • Bosnian: http://github.com/sidonath (Damir Zekić)
  • Chinese: http://github.com/zhhz (Zhonghai Zuo)
  • French: http://github.com/pointcom (Mathieu Fosse)
  • German: http://github.com/cypher (Markus Prinz)
  • Italian: http://github.com/carlopecchia (Carlo Pecchia)
  • Japanese: http://github.com/kwatch (Makoto Kuwata)
  • Portuguese: http://github.com/akitaonrails (Fabio Akita)
  • Russian: http://github.com/cheba (Alex Mankuta)
  • Spanish: http://github.com/joahking (Joaquin Rivera Padron)
  • Dutch: http://github.com/pvelder (Peter De Velder)
  • Arabic http://github.com/khelll (Khaled AlHabache)
  • Indonesian (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:

  • MIT
  • GPL

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言