Skip to content
“The best revenge is massive success.”
Ruby
Pull request Compare This branch is 256 commits behind sinatra:master.
Latest commit 5f28a1e Oct 14, 2011 @zzak book-contrib is now recipes
Failed to load latest commit information.
_includes Regenerate READMEs Sep 30, 2011
_layouts add blog link back to menu Feb 28, 2011
_posts blog post about 1.3.0 Sep 30, 2011
api API docs are at railsapi.com now Mar 7, 2010
contrib add sinatra-contrib docs Sep 11, 2011
css improve toc formatting Jan 10, 2011
images Mark external links (class="out") with 'new window' graphics Feb 1, 2009
.gitignore add rake tasks to pull sinatra-contrib docs Sep 10, 2011
CNAME Fix whitespace error in CNAME file :) Jan 29, 2009
README.md Nicer text for Contributing section in README.md Jan 10, 2011
Rakefile add rake tasks to pull sinatra-contrib docs Sep 11, 2011
Thorfile Thor is a sucky build tool; use Rake instead Jan 29, 2009
about.markdown Frank Sinatra has more than enough class to deserve a link to his Off… Jun 21, 2011
blog.html Blog the FAQ Jan 29, 2009
book.html book.html redirects to sinatra-book.gittr.com now Mar 7, 2010
changes.html CHANGES is on github now Mar 7, 2010
configuration.markdown remove clean_trace from configuration section (no longer supported) Dec 24, 2010
contributing.markdown book-contrib is now recipes Oct 14, 2011
documentation.markdown book-contrib is now recipes Oct 14, 2011
example.markdown Add example markdown page Jan 19, 2009
extensions-wild.markdown adding sinatra-simple-navigation to extensions-wild.markdown Sep 2, 2010
extensions.markdown rid extensions doc of Sinatra::Default references Mar 7, 2010
faq.markdown Expand on automatic html escaping with erubis. May 12, 2011
feed.xml Atom feed for blog Jan 22, 2009
index.html add empty line in code example Apr 28, 2011
intro-de.html add PT-PT readme Apr 11, 2011
intro-es.html add PT-PT readme Apr 11, 2011
intro-fr.html add PT-PT readme Apr 11, 2011
intro-hu.html add PT-PT readme Apr 11, 2011
intro-jp.html add PT-PT readme Apr 11, 2011
intro-pt-br.html add PT-PT readme Apr 11, 2011
intro-pt-pt.html add PT-PT readme Apr 11, 2011
intro-ru.html add PT-PT readme Apr 11, 2011
intro-zh.html add PT-PT readme Apr 11, 2011
intro.html add PT-PT readme Apr 11, 2011
one-oh-faq.markdown Minor fixes for one-oh-faq Apr 2, 2010
testing.markdown Update for RSpec 2 Jul 25, 2011
wild.markdown Add Similander Sep 17, 2011

README.md

Sinatra Website / Documentation

This repo contains the Sinatra website and documentation sources published at http://sinatra.github.com/.

Working Locally

Grab the sources from github:

$ git clone git://github.com/sinatra/sinatra.github.com.git
$ cd sinatra.github.com

Install dependencies:

$ gem install jekyll
$ gem install rdoc -v 2.3.0

Run the test server:

$ rake server

Changes are immediately available at:

http://sinatrarb.smackaho.st:4000/

Contributing

See GitHub's "Forking a project" for more information.

Creating Blog Posts

Blog posts are stored under the _posts directory. To create a new blog post and open your $EDITOR, use:

thor blog:new 'Blog Post Title'

This requires Thor:

$ gem install thor

Prebuilt Files

You will need thor, rdoc, haml and mislav's hanna gem to rebuild static files and the API docs:

$ gem install thor
$ gem install rdoc -v 2.3.0
$ gem install haml -v 2.0.4
$ gem install mislav-hanna --source=http://gems.github.com/

The prebuilt file sources are maintained under the sinatra and sinatra-book projects. To pull in the latest versions and build them:

rake pull build

The generated files under the "_includes" and "api" directories need to be committed after building. To regenerate and add those files to your index for the next commit:

rake regen
Something went wrong with that request. Please try again.