forked from sinatra/sinatra.github.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
65 lines (41 loc) · 1.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 instal rdoc -v 2.3.0
Run the test server:
$ rake server
Changes are immediately available at:
http://sinatrarb.smackaho.st:4000/
Contributing
------------
http://github.com/guides/fork-a-project-and-submit-your-modifications
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