Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
“The best revenge is massive success.”
branch: master

Merge pull request #152 from sivers/patch-1

fixed broken link to old rubyforge link
latest commit fb0fc88e47
Konstantin Haase rkh authored
Failed to load latest commit information.
_includes Merge pull request #134 from sinatrasapporo/remove-jp
_layouts Increase gratipay iframe width
_posts mention release on blog
api API docs are at railsapi.com now
contrib Fix some typos
css gittip, take 2
images update logo
.gitignore add rake tasks to pull sinatra-contrib docs
CNAME Fix whitespace error in CNAME file :)
Gemfile Use bundler for gem management
Gemfile.lock Use bundler for gem management
README.md Use bundler for gem management
Rakefile Change 'jp' code to 'ja'
Thorfile better editor handling for blog:new; fixes #65
_config.yml use Kramdown instead of Maruku for parsing .md
about.markdown add links to actual GitHub profiles in about page
blog.html Blog the FAQ
book.html book.html redirects to sinatra-book.gittr.com now
changes.html CHANGES is on github now
configuration.markdown Updated links from Rubyforge to Rubydoc
contributing.markdown update documentation and release history
documentation.markdown Fix link to CHANGES file for 1.4.4 and 1.4.5
example.markdown Add example markdown page
extensions-wild.markdown Shakedown whole bunch of links and repo URLs
extensions.markdown Keep linkblocker filename in all examples in extensions.markdown.
faq.markdown fixed broken link to old rubyforge link
feed.xml Atom feed for blog
index.html added .html suffixes to the layout templates
intro-de.html update documentation and release history
intro-es.html update documentation and release history
intro-fr.html update documentation and release history
intro-hu.html update documentation and release history
intro-ja.html update documentation and release history
intro-ko.html update documentation and release history
intro-pt-br.html update documentation and release history
intro-pt-pt.html update documentation and release history
intro-ru.html update documentation and release history
intro-zh.html update documentation and release history
intro.html update documentation and release history
one-oh-faq.markdown Minor fixes for one-oh-faq
testing.markdown fix a couple of broken links
wild.markdown Update 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

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
Something went wrong with that request. Please try again.