“The best revenge is massive success.”
HTML CSS Ruby
Latest commit 349e065 May 19, 2016 @kgrz kgrz Merge pull request #178 from onebree/book-link
Use herokuapp link for sinatra book
Failed to load latest commit information.
_includes Regenerate Website Jan 22, 2016
_layouts slackin widget Mar 16, 2015
_posts mention release on blog Mar 15, 2013
api API docs are at railsapi.com now Mar 7, 2010
contrib Fix some typos Feb 25, 2014
css gittip, take 2 Aug 19, 2013
images update logo Mar 29, 2012
.gitignore add rake tasks to pull sinatra-contrib docs Sep 10, 2011
CNAME Fix whitespace error in CNAME file :) Jan 29, 2009
Gemfile Use bundler for gem management Sep 12, 2013
Gemfile.lock Use bundler for gem management Sep 11, 2013
README.md Use bundler for gem management Sep 11, 2013
Rakefile Change 'jp' code to 'ja' Mar 25, 2014
Thorfile better editor handling for blog:new; fixes #65 Oct 19, 2012
_config.yml use Kramdown instead of Maruku for parsing .md Sep 12, 2013
about.markdown add links to actual GitHub profiles in about page Apr 29, 2014
blog.html Blog the FAQ Jan 29, 2009
book.html Use herokuapp link for sinatra book May 18, 2016
changes.html CHANGES is on github now Mar 7, 2010
configuration.markdown Updated links from Rubyforge to Rubydoc Oct 21, 2014
contributing.markdown Use herokuapp link for sinatra book May 19, 2016
documentation.markdown Update documentation to include 1.4.6 and 1.4.7 release notes Feb 19, 2016
example.markdown Add example markdown page Jan 19, 2009
extensions-wild.markdown Shakedown whole bunch of links and repo URLs Dec 13, 2012
extensions.markdown Fixed a typo in the extensions doc Apr 16, 2015
faq.markdown Update FAQ to fix typo in partials answer Mar 28, 2016
feed.xml Atom feed for blog Jan 22, 2009
index.html added .html suffixes to the layout templates Feb 26, 2013
intro-de.html update documentation and release history Apr 8, 2014
intro-es.html update documentation and release history Apr 8, 2014
intro-fr.html update documentation and release history Apr 8, 2014
intro-hu.html update documentation and release history Apr 8, 2014
intro-ja.html update documentation and release history Apr 8, 2014
intro-ko.html update documentation and release history Apr 8, 2014
intro-pt-br.html update documentation and release history Apr 8, 2014
intro-pt-pt.html update documentation and release history Apr 8, 2014
intro-ru.html update documentation and release history Apr 8, 2014
intro-zh.html update documentation and release history Apr 8, 2014
intro.html update documentation and release history Apr 8, 2014
one-oh-faq.markdown Minor fixes for one-oh-faq Apr 2, 2010
testing.markdown fix a couple of broken links Jun 9, 2014
wild.markdown Added magnetic HTML Mar 22, 2016

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

Make sure you have the bundler gem installed on your machine:

$ gem install bundler

Install dependencies:

$ bundle install

Run the test server:

$ rake server

Changes are immediately available at:

http://localhost:4000

Contributing

See GitHub's "Fork A Repo" 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