Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
“The best revenge is massive success.”
HTML CSS Ruby
tree: 2c3d055473

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_includes
_layouts
_posts
api
contrib
css
images
.gitignore
CNAME
README.md
Rakefile
Thorfile
about.markdown
blog.html
book.html
changes.html
configuration.markdown
contributing.markdown
documentation.markdown
example.markdown
extensions-wild.markdown
extensions.markdown
faq.markdown
feed.xml
index.html
intro-de.html
intro-es.html
intro-fr.html
intro-hu.html
intro-jp.html
intro-ko.html
intro-pt-br.html
intro-pt-pt.html
intro-ru.html
intro-zh.html
intro.html
one-oh-faq.markdown
testing.markdown
wild.markdown

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.