doco 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.textile +22 -1
  2. metadata +2 -2
data/README.textile CHANGED
@@ -4,7 +4,28 @@ Is a simple piece of rack middleware[1] which allows me to write stuff in textil
4
4
 
5
5
  h2. Usage
6
6
 
7
- It's pretty simple to use, just clone this repository, and edit your layout in the layouts directory, write your content in the pages directory, and put anything else you want available in the public directory.
7
+ # Install the gem:
8
+ <pre><code>gem install doco</code></pre>
9
+ # Create your file structure, here's an example:
10
+ <pre><code>dir/
11
+ |-- config.ru
12
+ |-- layouts
13
+ | `-- default.mustache
14
+ `-- pages
15
+ `-- index.textile
16
+ </code></pre>
17
+ # Add Doco to your @config.ru@:
18
+ <pre><code>require 'doco'
19
+ use Rack::Doco
20
+ </code></pre>
21
+ # Serve it up using your favourite rack server!
22
+
23
+ h2. Middleware Options
24
+
25
+ Doco's middleware can have a few options passed to it, these are:
26
+ <pre><code>:url => '/' # path at which to mount Doco
27
+ :root => Dir.pwd # path in which to locate the `layouts` and `pages` directories.
28
+ </code></pre>
8
29
 
9
30
  h2. Patches & Feedback
10
31
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
+ - 1
7
8
  - 0
8
- - 0
9
- version: 1.0.0
9
+ version: 1.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Micheil Smith